Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#21407 closed defect (fixed)

AIOOBE at GpxDrawHelper.selectColorMap - trying to customize .pos track drawing for more than one time

Reported by: StephaneP Owned by: team
Priority: normal Milestone: 21.10
Component: Core Version:
Keywords: template_report, RTKlib, Positioning Solution File, pos Cc:

Description

What steps will reproduce the problem?

  1. Open a .pos file https://josm.openstreetmap.de/attachment/ticket/17829/example.pos
  2. Open the customize track drawing window and set "RTKLib" and "large gps point" then click ok
  3. Open the customize track drawing window another time

What happens instead?

An unexpected exception occured

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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-10-05 23:47:54 +0200 (Tue, 05 Oct 2021)
Revision:18252
Build-Date:2021-10-06 01:31:01
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18252 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19043)
Memory Usage: 2616 MB / 16384 MB (1300 MB allocated, but free)
Java version: 18-ea+17-1015, Oracle Corporation, OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 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: UTF-8
System property sun.jnu.encoding: Cp1252
Locale info: en_FR
Numbers with default locale: 1234567890 -> 1234567890
Dataset consistency test: No problems found

Plugins:
+ DxfImport (1014)
+ Mapillary (2.0.0-alpha.36-dirty)
+ OpeningHoursEditor (35640)
+ PicLayer (1.0.1)
+ apache-commons (35524)
+ apache-http (35589)
+ areaselector (368)
+ austriaaddresshelper (1597341117)
+ cadastre-fr (35797)
+ continuosDownload (99)
+ contourmerge (v0.1.8)
+ ejml (35458)
+ geotools (35458)
+ jaxb (35543)
+ jna (35662)
+ jts (35458)
+ log4j (35458)
+ measurement (35640)
+ opendata (35803)
+ photo_geotagging (35783)
+ photoadjust (35770)
+ reverter (35732)
+ shrinkwrap (v1.0.4)
+ tageditor (35640)
+ todo (30306)
+ turnlanes-tagging (288)
+ turnrestrictions (35640)
+ undelete (35640)
+ utilsplugin2 (35792)

Tagging presets:
+ H:\Gares21\gares21\JOSM\Gares21-preset.xml

Map paint styles:
+ H:\Gares21\gares21\JOSM\railway-station.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://raw.githubusercontent.com/species/josm-preset-traffic_sign_direction/master/direction.mapcss
- %UserProfile%\Documents\GitHub\MapCSS-JOSM-Bicycle\cycleway.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/iD&zip=1
- https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/NewHighwayColors&zip=1

Validator rules:
+ H:\Gares21\gares21\JOSM\railway-station.validator.mapcss

Last errors/warnings:
- 00119.439 W: Unable to convert property fill-extent to type float: found  of type class java.lang.String!
- 00156.389 E: java.lang.ArrayIndexOutOfBoundsException: Index 1100 out of bounds for length 881
- 00156.422 E: java.lang.ArrayIndexOutOfBoundsException: Index 1100 out of bounds for length 881
- 00721.871 W: Unable to convert property fill-extent to type float: found  of type class java.lang.String!
- 00721.873 W: Unable to convert property fill-extent to type float: found  of type class java.lang.String!
- 00721.874 W: Unable to convert property fill-extent to type float: found  of type class java.lang.String!
- 00721.875 W: Unable to convert property fill-extent to type float: found  of type class java.lang.String!
- 00721.876 W: Unable to convert property fill-extent to type float: found  of type class java.lang.String!
- 00721.877 W: Unable to convert property fill-extent to type float: found  of type class java.lang.String!
- 00745.661 E: Handled by bug report queue: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 7



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (23) of main
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 7
	at org.openstreetmap.josm.gui.layer.gpx.GpxDrawHelper.selectColorMap(GpxDrawHelper.java:1088)
	at org.openstreetmap.josm.gui.layer.gpx.GpxDrawHelper.getColorMapImageIcon(GpxDrawHelper.java:1104)
	at org.openstreetmap.josm.gui.preferences.display.GPXSettingsPanel.lambda$initComponents$5(GPXSettingsPanel.java:508)
	at java.desktop/javax.swing.JComboBox.fireActionEvent(JComboBox.java:1294)
	at java.desktop/javax.swing.JComboBox.setSelectedItem(JComboBox.java:619)
	at java.desktop/javax.swing.JComboBox.setSelectedIndex(JComboBox.java:650)
	at org.openstreetmap.josm.gui.preferences.display.GPXSettingsPanel.loadPreferences(GPXSettingsPanel.java:615)
	at org.openstreetmap.josm.gui.preferences.display.GPXSettingsPanel.<init>(GPXSettingsPanel.java:154)
	at org.openstreetmap.josm.gui.layer.gpx.CustomizeDrawingAction.actionPerformed(CustomizeDrawingAction.java:79)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
	at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:374)
	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1028)
	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1072)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6626)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3399)
	at java.desktop/java.awt.Component.processEvent(Component.java:6391)
	at java.desktop/java.awt.Container.processEvent(Container.java:2266)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Attachments (0)

Change History (4)

comment:1 by Don-vip, 3 years ago

Summary: Crash when trying to customize .pos track drawing for more than one timeAIOOBE at GpxDrawHelper.selectColorMap - trying to customize .pos track drawing for more than one time

comment:2 by Don-vip, 3 years ago

Resolution: fixed
Status: newclosed

In 18253/josm:

fix #21407 - AIOOBE

comment:3 by Don-vip, 3 years ago

Milestone: 21.09

comment:4 by Don-vip, 3 years ago

Milestone: 21.0921.10

Milestone renamed

Modify Ticket

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