Modify

Opened 2 years ago

Closed 2 years ago

#21694 closed defect (fixed)

IOOBE: Index -1 out of bounds for length 2 (MapPaintStyles.toggleStyleActive)

Reported by: anonymous Owned by: Don-vip
Priority: normal Milestone: 21.12
Component: Core mappaint Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

What is the expected result?

What happens instead?

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

Revision:18303
Build-Date:2021-11-01 22:53:13

Identification: JOSM/1.5 (18303 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19042)
Memory Usage: 1447 MB / 1512 MB (703 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 1366×768 (scaling 1.00×1.00) \Display1 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1256
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18303, --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:
+ Mapillary (2.0.0-alpha.50)
+ apache-commons (35524)
+ apache-http (35589)
+ jna (35872)
+ measurement (35640)

Last errors/warnings:
- 00000.750 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF'
- 00000.754 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00003.919 E: java.security.KeyStoreException: Windows-ROOT not found. Cause: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available
- 03910.034 E: Region [mapillary:image:fullImage_BLOCK_v2] : Problem storing keys.
- 03910.515 E: {"error":{"message":"Unsupported get request","type":"MLYApiException","code":100,"error_subcode":33,"fbtrace_id":"AdV-wK7KcHhz0SVt6SIInva"}}
- 03910.537 E: Mapillary API error: {"error":{"message":"Unsupported get request","type":"MLYApiException","code":100,"error_subcode":33,"fbtrace_id":"AdV-wK7KcHhz0SVt6SIInva"}}
- 03910.580 E: java.io.IOException: java.lang.NullPointerException: Returned image should not be null. Cause: java.lang.NullPointerException: Returned image should not be null
- 03937.419 E: java.io.IOException: java.lang.NullPointerException: Returned image should not be null. Cause: java.lang.NullPointerException: Returned image should not be null
- 06021.693 E: Handled by bug report queue: java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 2



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (24) of main
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 2
	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 java.base/java.util.Collections$SynchronizedList.get(Unknown Source)
	at java.base/java.util.Collections$UnmodifiableList.get(Unknown Source)
	at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.toggleStyleActive(MapPaintStyles.java:397)
	at org.openstreetmap.josm.gui.mappaint.MapPaintMenu$MapPaintAction.toggleStyle(MapPaintMenu.java:48)
	at org.openstreetmap.josm.gui.mappaint.MapPaintMenu$MapPaintAction.actionPerformed(MapPaintMenu.java:54)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
	at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.Component.processEvent(Unknown Source)
	at java.desktop/java.awt.Container.processEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(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.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.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 (7)

comment:1 by skyper, 2 years ago

Component: CorePlugin mapillary
Owner: changed from team to taylor.smock
Summary: Mapillary doesn't workIOOBE: Index -1 out of bounds for length 2 (Mapillary)

comment:2 by taylor.smock, 2 years ago

@skyper: Are you certain this is a Mapillary bug? It looks like a core bug to me.

@anonymous: What were you doing? It looks like you were enabling/disabling paint styles.

comment:3 by skyper, 2 years ago

Component: Plugin mapillaryCore
Owner: changed from taylor.smock to team

No, sorry, I did follow the user mentioning mapillary instead of the log.

in reply to:  3 comment:4 by taylor.smock, 2 years ago

Replying to skyper:

No, sorry, I did follow the user mentioning mapillary instead of the log.

No worries. I just wanted to check before I moved it from Plugin mapillary to Core, just in case I had missed something.

comment:5 by Don-vip, 2 years ago

Component: CoreCore mappaint
Summary: IOOBE: Index -1 out of bounds for length 2 (Mapillary)IOOBE: Index -1 out of bounds for length 2 (MapPaintStyles.toggleStyleActive)

comment:6 by Don-vip, 2 years ago

Milestone: 21.12
Owner: changed from team to Don-vip
Status: newassigned

comment:7 by Don-vip, 2 years ago

Resolution: fixed
Status: assignedclosed

In 18354/josm:

fix #21694 - fix IOOBE in MapPaintMenu.toggleStyle

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
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.