Modify ↓

Opened 7 days ago

Last modified 3 days ago

#24967 new defect

DataIntegrityProblemException: Deleted node referenced: (ChangePropertyCommand)

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

Description (last modified by skyper)

What steps will reproduce the problem?

  1. Dragged a node quite a long way then it appeared to stop existing - just the lines between where it should have been and the adjacent 2 nodes in that way. Then came up with error messages. When I changed the tagging it wouldn't let me undo changes with ctrl+Y anymore. I have a screenshot though not sure how to upload it here.

What is the expected result?

What happens instead?

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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2026-08-11 15:36:21 +0200 (Tue, 11 Aug 2026)
Revision:19613
Build-Date:2026-08-12 01:30:51
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (19613 en_GB) Windows 11 64-Bit
OS Build number: Windows 10 Home 26H2 (26300)
Memory Usage: 644 MB / 4022 MB (113 MB allocated, but free)
Java version: 26.0.1+8-34, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920x1200x32bpp@60Hz (scaling 1.50×1.50)
Maximum Screen Size: 1920×1200
Best cursor sizes: 16×16→48×48, 32×32→48×48
System property file.encoding: UTF-8
System property sun.jnu.encoding: Cp1252
Locale info: en_GB
Numbers with default locale: 1234567890 -> 1234567890

Dataset consistency test:
[DELETED REFERENCED] {Way id=1501173639 version=1 MV nodes=[{Node id=13743435399 version=1 V lat=50.791873,lon=0.2733158}, {Node id=-26188 version=0 MV lat=50.7911924,lon=0.273732}, {Node id=13743436504 version=1 V lat=50.7910903,lon=0.2739315}, {Node id=13743436505 version=1 VD lat=50.79184973049332,lon=0.27348533173828127}, {Node id=13743436506 version=1 V lat=50.7918059,lon=0.2763254}, {Node id=13743436507 version=1 V lat=50.7920764,lon=0.2773402}]} refers to deleted primitive {Node id=13743436505 version=1 VD lat=50.79184973049332,lon=0.27348533173828127}


Plugins:
+ buildings_tools (36503)
+ reverter (36503)
+ terracer (36503)
+ utilsplugin2 (36503)

Last errors/warnings:
- 00608.993 W: Not downloading all tiles because there are more than 40 tiles on an axis!
- 00608.994 W: Not downloading all tiles because there are more than 40 tiles on an axis!
- 00609.083 W: Not downloading all tiles because there are more than 40 tiles on an axis!
- 00609.083 W: Not downloading all tiles because there are more than 40 tiles on an axis!
- 00609.187 W: Not downloading all tiles because there are more than 40 tiles on an axis!
- 00609.187 W: Not downloading all tiles because there are more than 40 tiles on an axis!
- 00633.564 E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted node referenced: {Way id=1501173639 version=1 MV nodes=[{Node id=13743435399 version=1 V lat=50.791873,lon=0.2733158}, {Node id=-26188 version=0 MV lat=50.7911924,lon=0.273732}, {Node id=13743436504 version=1 V lat=50.7910903,lon=0.2739315}, {Node id=13743436505 version=1 VD lat=50.79184973049332,lon=0.27348533173828127}, {Node id=13743436506 version=1 V lat=50.7918059,lon=0.2763254}, {Node id=13743436507 version=1 V lat=50.7920764,lon=0.2773402}]} (changed by the following commands: [Sequence: Dupe into 3 nodes], [Move 1 node], [Sequence: Merge 2 nodes], [Sequence: Dupe into 2 nodes])
- 00638.010 E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted node referenced: {Way id=1501173639 version=1 MV nodes=[{Node id=13743435399 version=1 V lat=50.791873,lon=0.2733158}, {Node id=-26188 version=0 MV lat=50.7911924,lon=0.273732}, {Node id=13743436504 version=1 V lat=50.7910903,lon=0.2739315}, {Node id=13743436505 version=1 VD lat=50.79184973049332,lon=0.27348533173828127}, {Node id=13743436506 version=1 V lat=50.7918059,lon=0.2763254}, {Node id=13743436507 version=1 V lat=50.7920764,lon=0.2773402}]} (changed by the following commands: [Sequence: Dupe into 3 nodes], [Move 1 node], [Sequence: Merge 2 nodes], [Sequence: Dupe into 2 nodes])
- 00641.984 E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted node referenced: {Way id=1501173639 version=1 MV nodes=[{Node id=13743435399 version=1 V lat=50.791873,lon=0.2733158}, {Node id=-26188 version=0 MV lat=50.7911924,lon=0.273732}, {Node id=13743436504 version=1 V lat=50.7910903,lon=0.2739315}, {Node id=13743436505 version=1 VD lat=50.79184973049332,lon=0.27348533173828127}, {Node id=13743436506 version=1 V lat=50.7918059,lon=0.2763254}, {Node id=13743436507 version=1 V lat=50.7920764,lon=0.2773402}]} (changed by the following commands: [Sequence: Dupe into 3 nodes], [Move 1 node], [Sequence: Merge 2 nodes], [Sequence: Dupe into 2 nodes])
- 00646.889 E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted node referenced: {Way id=1501173639 version=1 MV nodes=[{Node id=13743435399 version=1 V lat=50.791873,lon=0.2733158}, {Node id=-26188 version=0 MV lat=50.7911924,lon=0.273732}, {Node id=13743436504 version=1 V lat=50.7910903,lon=0.2739315}, {Node id=13743436505 version=1 VD lat=50.79184973049332,lon=0.27348533173828127}, {Node id=13743436506 version=1 V lat=50.7918059,lon=0.2763254}, {Node id=13743436507 version=1 V lat=50.7920764,lon=0.2773402}]} (changed by the following commands: [Sequence: Dupe into 3 nodes], [Move 1 node], [Sequence: Merge 2 nodes], [Sequence: Dupe into 2 nodes])



=== REPORTED CRASH DATA ===
sequence_information:
 - sequence_name: Sequence: Change properties of up to 1 object
 - sequence_command: Set natural=tree_row for way '‎1501173639‎ (6 nodes)‌'
 - sequence_index: 1
 - sequence_commands: [org.openstreetmap.josm.command.ChangePropertyCommand;org.openstreetmap.josm.command.ChangePropertyCommand]
 - sequence_commands_descriptions: [Remove "barrier" for way '‎1501173639‎ (6 nodes)‌';Set natural=tree_row for way '‎1501173639‎ (6 nodes)‌']

BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (42) of main
org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted node referenced: {Way id=1501173639 version=1 MV nodes=[{Node id=13743435399 version=1 V lat=50.791873,lon=0.2733158}, {Node id=-26188 version=0 MV lat=50.7911924,lon=0.273732}, {Node id=13743436504 version=1 V lat=50.7910903,lon=0.2739315}, {Node id=13743436505 version=1 VD lat=50.79184973049332,lon=0.27348533173828127}, {Node id=13743436506 version=1 V lat=50.7918059,lon=0.2763254}, {Node id=13743436507 version=1 V lat=50.7920764,lon=0.2773402}]} (changed by the following commands: [Sequence: Dupe into 3 nodes], [Move 1 node], [Sequence: Merge 2 nodes], [Sequence: Dupe into 2 nodes])
	at org.openstreetmap.josm.data.osm.Way.checkNodes(Way.java:555)
	at org.openstreetmap.josm.data.osm.Way.fireNodesChanged(Way.java:573)
	at org.openstreetmap.josm.data.osm.Way.setDeleted(Way.java:475)
	at org.openstreetmap.josm.data.osm.OsmPrimitive.load(OsmPrimitive.java:882)
	at org.openstreetmap.josm.data.osm.Way.load(Way.java:267)
	at org.openstreetmap.josm.command.Command.undoCommand(Command.java:171)
	at org.openstreetmap.josm.command.SequenceCommand.undoCommands(SequenceCommand.java:138)
	at org.openstreetmap.josm.command.SequenceCommand.undoCommand(SequenceCommand.java:167)
	at org.openstreetmap.josm.data.UndoRedoHandler.lambda$undo$0(UndoRedoHandler.java:381)
	at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWait(GuiHelper.java:225)
	at org.openstreetmap.josm.data.UndoRedoHandler.undo(UndoRedoHandler.java:372)
	at org.openstreetmap.josm.data.UndoRedoHandler.undo(UndoRedoHandler.java:362)
	at org.openstreetmap.josm.actions.UndoAction.actionPerformed(UndoAction.java:39)
	at java.desktop/javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1787)
	at java.desktop/javax.swing.JComponent.processKeyBinding(JComponent.java:2949)
	at java.desktop/javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:295)
	at java.desktop/javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:254)
	at java.desktop/javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:3041)
	at java.desktop/javax.swing.JComponent.processKeyBindings(JComponent.java:3033)
	at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2911)
	at java.desktop/java.awt.Component.processEvent(Component.java:6347)
	at java.desktop/java.awt.Container.processEvent(Container.java:2260)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4952)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2318)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4784)
	at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1819)
	at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:874)
	at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1136)
	at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1011)
	at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:839)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4833)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2318)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2667)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4784)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:716)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
	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)

Attachments (1)

Screenshot 2026-10-22 085131.png​ (1.7 MB ) - added by anonymous 7 days ago.
Screenshot of screen with error

Download all attachments as: .zip

Change History (5)

by anonymous, 7 days ago

Screenshot of screen with error

comment:1 by GerdP, 5 days ago

Are you able to reproduce this? If yes, please try to describe more exactly how.

in reply to:  description comment:2 by skyper, 3 days ago

Description: modified (diff)
Summary: Dragged a node quite a long way then it appeared to stop existing - just the lines between where it should have been and the adjacent 2 nodes in that way. Then came up with error messages. When I changed the tagging it wouldn't let me undo changes with ctrl+Y anymore. I have a screenshot though not sure how to upload it here. → DataIntegrityProblemException: Deleted node referenced: (ChangePropertyCommand)

Replying to anonymous:

Dataset consistency test:
[DELETED REFERENCED] {Way id=1501173639 version=1 MV nodes=[{Node id=13743435399 version=1 V lat=50.791873,lon=0.2733158}, {Node id=-26188 version=0 MV lat=50.7911924,lon=0.273732}, {Node id=13743436504 version=1 V lat=50.7910903,lon=0.2739315}, {Node id=13743436505 version=1 VD lat=50.79184973049332,lon=0.27348533173828127}, {Node id=13743436506 version=1 V lat=50.7918059,lon=0.2763254}, {Node id=13743436507 version=1 V lat=50.7920764,lon=0.2773402}]} refers to deleted primitive {Node id=13743436505 version=1 VD lat=50.79184973049332,lon=0.27348533173828127}

I believe the data inconsistency existed already prior to the actions in the description but I could be wrong and dragging a node a long way with a certain combinations of answers to the warning dialogs leads to a data inconsistency.

Last edited 3 days ago by skyper (previous) (diff)

comment:3 by GerdP, 3 days ago

That's what I fear as well. Also only a few plugins are used, so it is more likely a problem in the sources which are maintained by the JOSM team.

in reply to:  3 comment:4 by skyper, 3 days ago

Replying to GerdP:

That's what I fear as well. Also only a few plugins are used, so it is more likely a problem in the sources which are maintained by the JOSM team.

Yes, I have this fear for quite some time but never told about it. There are far to many tickets with only few plugins installed and these few plugins are often different ones.
I hoped the changes to the conflict resolution would have fixed the problems in core but likely there are more.

Would it help to make data inconsistencies better visible to the user (right now you have to dig deep an look at the layer infos) or even directly create a bug report window in order to better fetch the last made actions which lead to the inconsistency.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to anonymous.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


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