Menu

#232 Exception when deleting waypoint of GPX track

outdated_version
open
nobody
None
1
2014-08-13
2012-11-22
habanut
No

When deleting a waypoint of a GPX track, I got:
`
Version: Mobile Atlas Creator (MOBAC) 1.9.8
Platform: Linux (2.6.32-32-generic)
Distribution name: Ubuntu 10.04.2 LT
Java VM: OpenJDK 64-Bit Server VM (1.6.0_20-b20)
Max heap size: 910,25 MiB
CPU cores: 4

Thread: AWT-EventQueue-1

Error hierarchy:
IllegalArgumentException: node does not have a parent.

java.lang.IllegalArgumentException: node does not have a parent.
at javax.swing.tree.DefaultTreeModel.removeNodeFromParent(DefaultTreeModel.java:252)
at mobac.gui.panels.JGpxPanel.removeWpt(JGpxPanel.java:226)
at mobac.gui.actions.GpxElementListener.removeEntry(GpxElementListener.java:110)
at mobac.gui.actions.GpxElementListener.handleClick(GpxElementListener.java:81)
at mobac.gui.actions.GpxElementListener.mousePressed(GpxElementListener.java:67)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
at java.awt.Component.processMouseEvent(Component.java:6200)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5968)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4564)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4390)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4122)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4390)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$2.run(EventQueue.java:622)
at java.awt.EventQueue$2.run(EventQueue.java:620)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
at mobac.utilities.GUIExceptionHandler$EventQueueProxy.dispatchEvent(GUIExceptionHandler.java:299)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

`
I have no idea if 1 or 9 is "high" priority, so I took something in the middle.

Discussion

  • r_x

    r_x - 2012-11-23

    Was the GPX created in MOBAC or just loaded? Can you provide the GPX file?

     
  • habanut

    habanut - 2012-11-23

    I now recreated the same error with 1.9.9. What I do: I load (the attached) GPX file (Location: Tenerife) and then delete waypoints from the end. Sometimes, the confirmation dialog (do you really want to delete this waypoint) appears TWICE for a deletion. If I OK the duplicate dialog, then the exception occurs, So I think the error is earlier in the duplication of the delete dialog. The GPX file was created with TrekBuddy on a Ericsson Elm phone.

    Harald.

    PS: It would be nice to have some graphical feedback in the map display before deleting a WP, but that's more a feature request,

     

    Last edit: habanut 2012-11-23

Log in to post a comment.