Modify

Opened 15 years ago

Closed 15 years ago

#5178 closed defect (fixed)

Exception with tracer plugin

Reported by: bilbo Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

When using tracer plugin to trace buildings and using undo, it often ends up with exception, similar to this one.

The tracer have feature, that it snap the newly created building to existing buildings. If you use tracer to create new building, you cvan use CTRL+Z to undo it (like if you accidentally clicked somewhere else and ended up with tracing something that is not a building.) However, if newly created building is snapped to already existing building and you use CTRL+Z to undo the trace, this exception almost always appears.

You can reproduce it by loading attached OSM file, activating trace tool (you should have tracer server beta 5 or 6 with default config or config close to default) and clicking inside the red rectangle. New building at "bad" place is created. Then press CTRL+Z to undo it-> exception.

Unfortunately, it is not exception you can just ignore, as this will leave the objects in some limbo state (they are there but you cannot manipulate them and you can't undo/redo it ...)

Build-Date: 2010-06-17 17:08:17
Revision: 3334
Is-Local-Build: true

Identification: JOSM/1.5 (3334 SVN en)
Memory Usage: 783 MB / 783 MB (148 MB allocated, but free)
Java version: 1.6.0_20, Sun Microsystems Inc., Java HotSpot(TM) 64-Bit Server VM
Operating system: Linux

Dataset consistency test:
[DELETED REFERENCED] {Way id=-258631 version=0 VT nodes=[{Node id=-258632 version=0 V lat=49.735823,lon=13.403481}, {Node id=-258633 version=0 V lat=49.735763,lon=13.40354}, {Node id=-258634 version=0 V lat=49.735746,lon=13.40351}, {Node id=-258635 version=0 V lat=49.735721,lon=13.40352}, {Node id=-258636 version=0 MVD lat=49.735743,lon=13.403496}, {Node id=-258637 version=0 MVD lat=49.735689,lon=13.403364}, {Node id=-258638 version=0 MVD lat=49.735618,lon=13.403436}, {Node id=-258639 version=0 V lat=49.735595,lon=13.403376}, {Node id=-258640 version=0 V lat=49.735728,lon=13.403246}, {Node id=-258632 version=0 V lat=49.735823,lon=13.403481}]} refers to deleted primitive {Node id=-258636 version=0 MVD lat=49.735743,lon=13.403496}
[DELETED REFERENCED] {Way id=-258631 version=0 VT nodes=[{Node id=-258632 version=0 V lat=49.735823,lon=13.403481}, {Node id=-258633 version=0 V lat=49.735763,lon=13.40354}, {Node id=-258634 version=0 V lat=49.735746,lon=13.40351}, {Node id=-258635 version=0 V lat=49.735721,lon=13.40352}, {Node id=-258636 version=0 MVD lat=49.735743,lon=13.403496}, {Node id=-258637 version=0 MVD lat=49.735689,lon=13.403364}, {Node id=-258638 version=0 MVD lat=49.735618,lon=13.403436}, {Node id=-258639 version=0 V lat=49.735595,lon=13.403376}, {Node id=-258640 version=0 V lat=49.735728,lon=13.403246}, {Node id=-258632 version=0 V lat=49.735823,lon=13.403481}]} refers to deleted primitive {Node id=-258637 version=0 MVD lat=49.735689,lon=13.403364}
[DELETED REFERENCED] {Way id=-258631 version=0 VT nodes=[{Node id=-258632 version=0 V lat=49.735823,lon=13.403481}, {Node id=-258633 version=0 V lat=49.735763,lon=13.40354}, {Node id=-258634 version=0 V lat=49.735746,lon=13.40351}, {Node id=-258635 version=0 V lat=49.735721,lon=13.40352}, {Node id=-258636 version=0 MVD lat=49.735743,lon=13.403496}, {Node id=-258637 version=0 MVD lat=49.735689,lon=13.403364}, {Node id=-258638 version=0 MVD lat=49.735618,lon=13.403436}, {Node id=-258639 version=0 V lat=49.735595,lon=13.403376}, {Node id=-258640 version=0 V lat=49.735728,lon=13.403246}, {Node id=-258632 version=0 V lat=49.735823,lon=13.403481}]} refers to deleted primitive {Node id=-258638 version=0 MVD lat=49.735618,lon=13.403436}


Plugin: buildings_tools (21706)
Plugin: graphview (21706)
Plugin: measurement (21706)
Plugin: multipoly (21706)
Plugin: openstreetbugs (21706)
Plugin: remotecontrol (21706)
Plugin: reverter (21745)
Plugin: terracer2 (${version.entry.commit.revision})
Plugin: tracer (20251)
Plugin: undelete (21186)
Plugin: validator (21667)
Plugin: wmsplugin (21667)

org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted node referenced: {Way id=-258631 version=0 VT nodes=[{Node id=-258632 version=0 V lat=49.735823,lon=13.403481}, {Node id=-258633 version=0 V lat=49.735763,lon=13.40354}, {Node id=-258634 version=0 V lat=49.735746,lon=13.40351}, {Node id=-258635 version=0 V lat=49.735721,lon=13.40352}, {Node id=-258636 version=0 MVD lat=49.735743,lon=13.403496}, {Node id=-258637 version=0 MVD lat=49.735689,lon=13.403364}, {Node id=-258638 version=0 MVD lat=49.735618,lon=13.403436}, {Node id=-258639 version=0 V lat=49.735595,lon=13.403376}, {Node id=-258640 version=0 V lat=49.735728,lon=13.403246}, {Node id=-258632 version=0 V lat=49.735823,lon=13.403481}]}
	at org.openstreetmap.josm.data.osm.Way.checkNodes(Way.java:374)
	at org.openstreetmap.josm.data.osm.Way.fireNodesChanged(Way.java:386)
	at org.openstreetmap.josm.data.osm.Way.setNodes(Way.java:63)
	at org.openstreetmap.josm.data.osm.Way.load(Way.java:212)
	at org.openstreetmap.josm.command.Command.undoCommand(Command.java:96)
	at org.openstreetmap.josm.command.SequenceCommand.undoCommands(SequenceCommand.java:78)
	at org.openstreetmap.josm.command.SequenceCommand.undoCommand(SequenceCommand.java:83)
	at org.openstreetmap.josm.command.SequenceCommand.undoCommands(SequenceCommand.java:78)
	at org.openstreetmap.josm.command.SequenceCommand.undoCommand(SequenceCommand.java:83)
	at org.openstreetmap.josm.data.UndoRedoHandler.undo(UndoRedoHandler.java:79)
	at org.openstreetmap.josm.data.UndoRedoHandler.undo(UndoRedoHandler.java:67)
	at org.openstreetmap.josm.actions.UndoAction.actionPerformed(UndoAction.java:34)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1633)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)
	at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
	at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:216)
	at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2928)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2920)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2814)
	at java.awt.Component.processEvent(Component.java:6040)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676)
	at java.awt.Component.dispatchEventImpl(Component.java:4502)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Attachments (1)

tracer_crash.osm (6.0 KB ) - added by bilbo 15 years ago.
An example usable to trigger the exception

Download all attachments as: .zip

Change History (2)

by bilbo, 15 years ago

Attachment: tracer_crash.osm added

An example usable to trigger the exception

comment:1 by jttt, 15 years ago

Resolution: fixed
Status: newclosed

Seems to be already fixed by Petr Dlouhy in [o21852]

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.