Modify

Opened 14 months ago

Last modified 11 months ago

#19749 new defect

ElevationProfile crash when a gpx file open and a mouse is over the elevation window

Reported by: anonymous Owned by: OliverW
Priority: normal Milestone:
Component: Plugin elevationprofile 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.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-07-30 12:44:04 +0200 (Thu, 30 Jul 2020)
Revision:16812
Build-Date:2020-07-31 01:30:49
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (16812 de) Linux openSUSE Leap 15.2
Memory Usage: 1473 MB / 3641 MB (1044 MB allocated, but free)
Java version: 11.0.8+10-suse-lp152.2.3.1-x8664, N/A, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920x1080 (scaling 1.0x1.0)
Maximum Screen Size: 1920x1080
Best cursor sizes: 16x16 -> 16x16, 32x32 -> 32x32
Java package: java-11-openjdk:x86_64-11.0.8.0
apache-commons-logging: apache-commons-logging:noarch-1.2

Plugins:
+ ElevationProfile (35444)
+ FastDraw (35499)
+ ImproveWay (29)
+ apache-commons (35524)
+ editgpx (35248)
+ ejml (35313)
+ geotools (35169)
+ jts (35122)
+ measurement (35405)
+ openvisible (35248)

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/Cycleways&zip=1

Validator rules:
+ https://josm.openstreetmap.de/josmfile?page=Rules/GermanySpecific&zip=1

Last errors/warnings:
- E: java.nio.file.NoSuchFileException: /group/daten/dokumente/Download/gpx/olfen-radtour.gpx
- E: Fehler - <html>Die Datei 'olfen-radtour.gpx' konnte nicht gelesen werden.<br>Fehlermeldung: <br>/group/daten/dokumente/Download/gpx/olfen-radtour.gpx</html>
- W: Waypoints without date: WayPoint (51.765576,7.417316, LatLon[lat=51.765575,lon=7.417301], {name=51.765576,7.417316, ele=56.8}) / WayPoint (51.766513,7.419722, LatLon[lat=51.766513,lon=7.419722], {name=51.766513,7.419722, ele=55.7})
- E: Handled by bug report queue: java.lang.NullPointerException
- E: Handled by bug report queue: java.lang.NullPointerException


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (20) of main
java.lang.NullPointerException
	at java.base/java.util.Calendar.setTime(Calendar.java:1800)
	at org.openstreetmap.josm.plugins.elevation.ElevationHelper.getHourOfWayPoint(ElevationHelper.java:254)
	at org.openstreetmap.josm.plugins.elevation.ElevationHelper.getTimeText(ElevationHelper.java:155)
	at org.openstreetmap.josm.plugins.elevation.gui.DefaultElevationProfileRenderer.renderRegularWayPoint(DefaultElevationProfileRenderer.java:210)
	at org.openstreetmap.josm.plugins.elevation.gui.DefaultElevationProfileRenderer.renderWayPoint(DefaultElevationProfileRenderer.java:129)
	at org.openstreetmap.josm.plugins.elevation.gui.ElevationProfileLayer.paint(ElevationProfileLayer.java:146)
	at org.openstreetmap.josm.gui.layer.AbstractMapViewPaintable$CompatibilityModeLayerPainter.paint(AbstractMapViewPaintable.java:27)
	at org.openstreetmap.josm.gui.MapView.paintLayer(MapView.java:466)
	at org.openstreetmap.josm.gui.MapView.drawMapContent(MapView.java:581)
	at org.openstreetmap.josm.gui.MapView.paint(MapView.java:488)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
	at java.desktop/javax.swing.JComponent.paintToOffscreen(JComponent.java:5255)
	at java.desktop/javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:246)
	at java.desktop/javax.swing.RepaintManager.paint(RepaintManager.java:1323)
	at java.desktop/javax.swing.JComponent._paintImmediately(JComponent.java:5203)
	at java.desktop/javax.swing.JComponent.paintImmediately(JComponent.java:5013)
	at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:865)
	at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:848)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:848)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:823)
	at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:772)
	at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1890)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	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 Changed 14 months ago by simon04

Component: CorePlugin elevationprofile
Owner: changed from team to OliverW

comment:2 Changed 14 months ago by skyper

Ticket #19766 has been marked as a duplicate of this ticket.

comment:3 Changed 14 months ago by skyper

#19766 has an example gpx file.

comment:4 Changed 11 months ago by anonymous

I can confirm. The same happened to me. Below you can find my debug information.

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-11-21 14:56:29 +0100 (Sat, 21 Nov 2020)
Build-Date:2020-11-22 02:30:52
Revision:17329
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17329 en_GB) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2004 (19041)
Memory Usage: 810 MB / 1820 MB (275 MB allocated, but free)
Java version: 1.8.0_271-b09, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920x1080 (scaling 1.0x1.0), \Display1 1280x1024 (scaling 1.0x1.0)
Maximum Screen Size: 1920x1080
Best cursor sizes: 16x16 -> 32x32, 32x32 -> 32x32
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-78b6126d, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Djnlpx.splashport=52413, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe]

Plugins:
+ ElevationProfile (35640)

Last errors/warnings:
- 01482.987 E: Error - <html>Could not read file 'KrimmlAscend.gpx'.<br>Error is:<br>D:\Temp\KrimmlAscend.gpx</html>
- 01515.157 W: Waypoints without date: WayPoint (LatLon[lat=47.061615289,lon=15.082597727], {ele=448.0}) / WayPoint (LatLon[lat=47.215326954,lon=14.837513563], {ele=627.177})
- 01517.117 E: Handled by bug report queue: java.lang.NullPointerException
- 01517.245 E: Handled by bug report queue: java.lang.NullPointerException
- 01523.695 W: Warning - <html>JOSM could not find information about the following plug-in:<ul><li>ElevationProfile</li></ul>The plug-in is not going to be loaded.</html>
- 01584.884 E: Handled by bug report queue: java.lang.NullPointerException
- 01586.315 E: Handled by bug report queue: java.lang.NullPointerException
- 01595.514 E: Handled by bug report queue: java.lang.NullPointerException
- 01762.740 E: Handled by bug report queue: java.lang.NullPointerException
- 01764.957 E: Handled by bug report queue: java.lang.NullPointerException


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-2 (54) of javawsApplicationThreadGroup
java.lang.NullPointerException
	at java.util.Calendar.setTime(Unknown Source)
	at org.openstreetmap.josm.plugins.elevation.ElevationHelper.getHourOfWayPoint(ElevationHelper.java:254)
	at org.openstreetmap.josm.plugins.elevation.ElevationHelper.getTimeText(ElevationHelper.java:155)
	at org.openstreetmap.josm.plugins.elevation.gui.DefaultElevationProfileRenderer.renderRegularWayPoint(DefaultElevationProfileRenderer.java:210)
	at org.openstreetmap.josm.plugins.elevation.gui.DefaultElevationProfileRenderer.renderWayPoint(DefaultElevationProfileRenderer.java:129)
	at org.openstreetmap.josm.plugins.elevation.gui.ElevationProfileLayer.paint(ElevationProfileLayer.java:146)
	at org.openstreetmap.josm.gui.layer.AbstractMapViewPaintable$CompatibilityModeLayerPainter.paint(AbstractMapViewPaintable.java:27)
	at org.openstreetmap.josm.gui.MapView.paintLayer(MapView.java:466)
	at org.openstreetmap.josm.gui.MapView.drawMapContent(MapView.java:564)
	at org.openstreetmap.josm.gui.MapView.paint(MapView.java:488)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JSplitPane.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JLayeredPane.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JComponent.paintToOffscreen(Unknown Source)
	at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
	at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
	at javax.swing.RepaintManager.paint(Unknown Source)
	at javax.swing.JComponent._paintImmediately(Unknown Source)
	at javax.swing.JComponent.paintImmediately(Unknown Source)
	at javax.swing.RepaintManager$4.run(Unknown Source)
	at javax.swing.RepaintManager$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
	at javax.swing.RepaintManager.access$1200(Unknown Source)
	at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain OliverW.
as The resolution will be set.
to The owner will be changed from OliverW to the specified user.
The owner will change to anonymous
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from OliverW to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.