Modify

Opened 3 years ago

Closed 3 years ago

#21869 closed defect (fixed)

IOOBE: Index 0 out of bounds for length 0

Reported by: wanderruderer Owned by: wanderruderer
Priority: normal Milestone:
Component: Plugin piclayer Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Tried to use pic layer calibration.
  2. Not sure what I did as I am trying the plugin the first time.

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

Revision:18360
Build-Date:2022-01-02 23:53:33

Identification: JOSM/1.5 (18360 de) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19044)
Memory Usage: 296 MB / 7996 MB (140 MB allocated, but free)
Java version: 17.0.1+12-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00) \Display1 1920×1200 (scaling 1.00×1.00) \Display2 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1200
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: de_DE
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18360, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\JOSM.exe]
Dataset consistency test: No problems found

Plugins:
+ ColorPlugin (1537115529)
+ ColumbusCSV (${version.entry.commit.revision})
+ CustomizePublicTransportStop (35760)
+ DirectDownload (35893)
+ DirectUpload (35893)
+ DxfImport (1014)
+ ElevationProfile (35893)
+ FastDraw (35893)
+ FixAddresses (35893)
+ HouseNumberTaggingTool (35893)
+ ImageWayPoint (35893)
+ ImportImagePlugin (35893)
+ ImproveOsm (215)
+ ImproveWay (32)
+ InfoMode (35893)
+ OpeningHoursEditor (35893)
+ PicLayer (1.0.1)
+ QuickLabel (23)
+ RoadSigns (35893)
+ SeaChart (35840)
+ SeaMapEditor (35893)
+ apache-commons (35893)
+ changessum (v0.1.1)
+ continuosDownload (99)
+ editgpx (35893)
+ ejml (35893)
+ geochat (35893)
+ geotools (35906)
+ imagery_offset_db (35893)
+ importvec (35893)
+ jaxb (35893)
+ jts (35893)
+ livegps (35893)
+ log4j (35893)
+ opendata (35910)
+ openvisible (35893)
+ osm-obj-info (66)
+ photo_geotagging (35893)
+ print (35893)
+ public_transport (35893)
+ routing (35893)
+ surveyor (35893)
+ tageditor (35893)
+ undelete (35893)
+ utilsplugin2 (35893)
+ wikipedia (605)

Last errors/warnings:
- 00000.388 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF'
- 00000.390 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00002.492 E: java.security.KeyStoreException: Windows-ROOT not found. Ursache: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available
- 00233.034 E: Invalid setting (Icon missing): org.openstreetmap.josm.plugins.fixAddresses.FixAddressesPreferences
- 00233.038 E: Invalid setting (Icon missing): org.openstreetmap.josm.plugins.columbusCSV.ColumbusCSVPreferences
- 00698.541 E: Handled by bug report queue: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
- 00698.646 E: Handled by bug report queue: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (32) of main
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
	at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source)
	at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source)
	at java.base/java.util.Objects.checkIndex(Unknown Source)
	at java.base/java.util.ArrayList.get(Unknown Source)
	at org.openstreetmap.josm.plugins.piclayer.layer.PicLayerAbstract.paint(PicLayerAbstract.java:353)
	at org.openstreetmap.josm.gui.layer.AbstractMapViewPaintable$CompatibilityModeLayerPainter.paint(AbstractMapViewPaintable.java:27)
	at org.openstreetmap.josm.gui.MapView.paintLayer(MapView.java:469)
	at org.openstreetmap.josm.gui.MapView.drawMapContent(MapView.java:584)
	at org.openstreetmap.josm.gui.MapView.paint(MapView.java:491)
	at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
	at java.desktop/javax.swing.JComponent.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintToOffscreen(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent._paintImmediately(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintImmediately(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$4.run(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (5)

comment:1 by stoecker, 3 years ago

Component: CorePlugin piclayer
Owner: changed from team to rebsc

comment:2 by skyper, 3 years ago

Milestone: 22.02
Summary: Unexcpected ErrorIOOBE: Index 0 out of bounds for length 0
Version: latest

comment:3 by rebsc, 3 years ago

Owner: changed from rebsc to wanderruderer
Status: newneedinfo

Commit 6cba7f1 should prevent the error but probably does not fix it properly. For better error handling please provide a more detailed way to reproduce the error.

in reply to:  3 ; comment:4 by wanderruderer, 3 years ago

Replying to rebsc:

Commit 6cba7f1 should prevent the error but probably does not fix it properly. For better error handling please provide a more detailed way to reproduce the error.

I have no clue what exactly I did to cause the error. In the end I wanted to import a picture as a layer to draw the waymarks on there in OSM. Please close for now. I will re-open if the error occurs again. Thanks for the really fast solution.

in reply to:  4 comment:5 by rebsc, 3 years ago

Resolution: fixed
Status: needinfoclosed

Replying to wanderruderer:

Replying to rebsc:

Commit 6cba7f1 should prevent the error but probably does not fix it properly. For better error handling please provide a more detailed way to reproduce the error.

I have no clue what exactly I did to cause the error. In the end I wanted to import a picture as a layer to draw the waymarks on there in OSM. Please close for now. I will re-open if the error occurs again. Thanks for the really fast solution.

Okay. For more information about how to use the PicLayer see OSM wiki PicLayer or the how-to-gif.
Please note that the code changes will take affect in the next release and not right now.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain wanderruderer.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.