Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Unexpected exception when trying to load gpx file with invalid lat value #228

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: miki
[Submitted to the original trac issue database at 9.48pm, Wednesday, 17th May 2006]

The attached gpx file with an invalid lat value (-1.#QNAN0000) in its first trackpoint (and some weird dates in the first few points too) gives an unexpected exception. The file is from a Gpsbabel conversion from nmea output captured by VisualGPSce, so I better file a bug report or two more :)

Seen on both Windows 98 and Windows Server 2003 using java version "1.5.0_06", Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05), Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode).


Please send this to josm[at]eigenheimstrasse.de

Path: josm
URL: http://www.eigenheimstrasse.de/svn/josm
Repository Root: http://www.eigenheimstrasse.de/svn/josm
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 101
Node Kind: directory
Last Changed Author: imi
Last Changed Rev: 101
Last Changed Date: 2006-05-03 22:21:02 +0200 (Wed, 03 May 2006)

java.lang.NumberFormatException: For input string: "-1.#QNAN0000"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at org.openstreetmap.josm.io.RawGpsReader.parseDouble(RawGpsReader.java:94)
at org.openstreetmap.josm.io.RawGpsReader.parseData(RawGpsReader.java:74)
at org.openstreetmap.josm.io.RawGpsReader.parse(RawGpsReader.java:48)
at org.openstreetmap.josm.actions.OpenAction.openFile(OpenAction.java:62)
at org.openstreetmap.josm.actions.OpenAction.actionPerformed(OpenAction.java:50)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)

--

Mikkel,

@openstreetmap-trac
Copy link
Author

Author: miki
[Added to the original trac issue at 10.15pm, Wednesday, 17th May 2006]

Hmm, couldn't attach that large a file.

Find it here http://www.mikini.dk/misc/20060516%20Etk.gpx

Mikkel,

@openstreetmap-trac
Copy link
Author

Author: immanuel.scholz[at]gmx.de
[Added to the original trac issue at 8.28pm, Monday, 10th July 2006]

JOSM now gives a (somewhat) sane error message.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant