Opened 5 years ago

Last modified 5 years ago

#20592 closed defect

Download data along the GPX track does not work — at Version 2

Reported by: Strubbl Owned by: Strubbl
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report Cc:

Description (last modified by Strubbl)

What steps will reproduce the problem?

  1. Open JOSM
  2. Load a GPX track and a lot of georeferenced images (couple of thousands) which align to the GPX track
  3. Add Bing and Bayern (80cm) as background
  4. open menu File
  5. select option "Download data along..." (Alt+Shift+D)

What is the expected result?

It shows a dialog or downloads data.

What happens instead?

Error message popup and no data is downloaded

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-12-28 22:03:23 +0100 (Mon, 28 Dec 2020)
Revision:17428
Build-Date:2020-12-29 02:30:53
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (17428 de) Linux Arch Linux
Memory Usage: 1148 MB / 8012 MB (196 MB allocated, but free)
Java version: 15.0.2+7, N/A, OpenJDK 64-Bit Server VM
Look and Feel: com.formdev.flatlaf.FlatDarkLaf
Screen: :0.0 2560×1440 (scaling 1,00×1,00) :0.1 2560×1440 (scaling 1,00×1,00)
Maximum Screen Size: 2560×1440
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: de_DE.utf8
VM arguments: [-Djosm.restart=true]

Plugins:
+ FastDraw (35640)
+ Mapillary (1.5.36.4)
+ OpenStreetCam (356)
+ apache-commons (35524)
+ apache-http (35589)
+ buildings_tools (35669)
+ continuosDownload (91)
+ editgpx (35562)
+ flatlaf (35703)
+ jna (35662)
+ reverter (35688)
+ terracer (35640)
+ undelete (35640)
+ utilsplugin2 (35691)
+ waydownloader (35640)

Tagging presets:
+ ${HOME}/osm/presets/grundstueckszufahrt.xml

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

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

Last errors/warnings:
- 00096,062 E: Fehler beim Laden des Bildes 'regulatory--texts--g1'
- 00096,062 E: Fehler beim Laden des Bildes 'regulatory--texts--g2'
- 00096,122 E: Fehler beim Laden des Bildes 'void--car-mount'
- 00096,122 E: Fehler beim Laden des Bildes 'void--dynamic'
- 00096,122 E: Fehler beim Laden des Bildes 'void--ego-vehicle'
- 00096,123 E: Fehler beim Laden des Bildes 'void--ground'
- 00096,123 E: Fehler beim Laden des Bildes 'void--static'
- 00096,204 E: Fehler beim Laden des Bildes 'warning--kangaroo-crossing--g1'
- 00189,920 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "org.openstreetmap.josm.data.osm.DataSet.getSelectedWays()" because the return value of "org.openstreetmap.josm.gui.layer.MainLayerManager.getActiveDataSet()" is null
- 00196,020 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "org.openstreetmap.josm.data.osm.DataSet.getSelectedWays()" because the return value of "org.openstreetmap.josm.gui.layer.MainLayerManager.getActiveDataSet()" is null



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (19) of main
java.lang.NullPointerException: Cannot invoke "org.openstreetmap.josm.data.osm.DataSet.getSelectedWays()" because the return value of "org.openstreetmap.josm.gui.layer.MainLayerManager.getActiveDataSet()" is null
	at org.openstreetmap.josm.actions.DownloadAlongWayAction.createTask(DownloadAlongWayAction.java:45)
	at org.openstreetmap.josm.actions.DownloadAlongAction.actionPerformed(DownloadAlongAction.java:307)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
	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:369)
	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1012)
	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1056)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6614)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
	at java.desktop/java.awt.Component.processEvent(Component.java:6379)
	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4990)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4919)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4548)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4489)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2769)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
	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(AccessController.java:391)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
	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)

Change History (2)

comment:1 by Don-vip, 5 years ago

Owner: changed from team to Strubbl
Status: newneedinfo

I can't reproduce. The stacktrace indicates you downloaded data along a selected OSM way, not a GPX track, do you confirm? I need more information in order to reproduce it (complete step by step scenario with screenshots)

comment:2 by Strubbl, 5 years ago

Description: modified (diff)

I reworked the steps to reproduce the error. I am not sure, what is expected to be downloaded with the menu entry. But JOSM shouldn't get an exception if i open that menu.

To download the data along the GPX track i found out, that i shall right click on GPX track in the layers window and select the download option there.

Note: See TracTickets for help on using tickets.