Modify

Opened 13 days ago

Closed 13 days ago

Last modified 10 days ago

#15634 closed defect (fixed)

Problem loading gpx track in JOSM

Reported by: oharriso@… Owned by: team
Priority: normal Milestone: 17.12
Component: Core Version:
Keywords: template_report gpx Cc:

Description

NOTE - first time user of JOSM

What steps will reproduce the problem?

  1. Load local map from osm (standard b&w)
  2. Load local gpx track file (file was already uploaded to osm as trace and displays as expected)
  3. JOSM stops with error dialogue which generates this status

What is the expected result?

What happens instead?

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

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-11-26 14:31:59 +0100 (Sun, 26 Nov 2017)
Build-Date:2017-11-26 13:34:54
Revision:13170
Relative:URL: ^/trunk

Identification: JOSM/1.5 (13170 en_GB) Windows 10 64-Bit
OS Build number: Windows 10 Home 1703 (15063)
Memory Usage: 493 MB / 910 MB (390 MB allocated, but free)
Java version: 1.8.0_151-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1366x768
Maximum Screen Size: 1366x768
Dataset consistency test: No problems found

Plugins:
+ imagery_offset_db (33774)
+ turnrestrictions (33780)

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: Handled by bug report queue: java.lang.NullPointerException
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<You requested too many nodes (limit is 50000). Either request a smaller area, or use planet.osm>
- E: Bad Request - <html>The OSM server 'api.openstreetmap.org' reported a bad request.<br><br>The area you tried to download is too big or your request was too large.<br>Either request a smaller area or use an export file provided by the OSM community.</html>
- 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: main-worker-0 (43) of main
java.lang.NullPointerException
	at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
	at sun.misc.FloatingDecimal.parseDouble(Unknown Source)
	at java.lang.Double.parseDouble(Unknown Source)
	at org.openstreetmap.josm.io.GpxReader$Parser.parseCoord(GpxReader.java:94)
	at org.openstreetmap.josm.io.GpxReader$Parser.startElement(GpxReader.java:180)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
	at org.openstreetmap.josm.tools.Utils.parseSafeSAX(Utils.java:1355)
	at org.openstreetmap.josm.io.GpxReader.parse(GpxReader.java:571)
	at org.openstreetmap.josm.gui.io.importexport.GpxImporter.importData(GpxImporter.java:107)
	at org.openstreetmap.josm.gui.io.importexport.FileImporter.importDataHandleExceptions(FileImporter.java:95)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:361)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:314)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:95)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:143)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Attachments (2)

drumlish.gpx (86.0 KB) - added by anonymous 13 days ago.
screenshot
Snip.PNG (221.9 KB) - added by anonymous 13 days ago.
gpx file (descriptions reversed)

Download all attachments as: .zip

Change History (6)

Changed 13 days ago by anonymous

Attachment: drumlish.gpx added

screenshot

Changed 13 days ago by anonymous

Attachment: Snip.PNG added

gpx file (descriptions reversed)

comment:1 Changed 13 days ago by Don-vip

Keywords: gpx added
Milestone: 17.12

comment:2 Changed 13 days ago by Don-vip

The GPX defines attribute with an uppercase letter:

<bounds minLat="53.7229357" minLon="-7.9135019" maxLat="53.9301103" maxLon="-7.59656"/>

while JOSM expects only lowercase:

                    data.put(META_BOUNDS, new Bounds(
                                parseCoord(atts.getValue("minlat")),
                                parseCoord(atts.getValue("minlon")),
                                parseCoord(atts.getValue("maxlat")),
                                parseCoord(atts.getValue("maxlon"))));

comment:3 Changed 13 days ago by Don-vip

Resolution: fixed
Status: newclosed

In 13194/josm:

fix #15634 - add robustness against invalid GPX files

comment:4 Changed 10 days ago by SeanMcA

Thanks Don!
Sean

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.

Add Comment


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

 
Note: See TracTickets for help on using tickets.