Modify

Opened 10 years ago

Closed 10 years ago

#7706 closed defect (duplicate)

purge + merge +undo

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

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. download some data
  2. purge some data
  3. download some more data to other layer
  4. purge some
  5. merge
  6. undo

What is the expected result?

No undo possible

What happens instead?

"java.lang.AssertionError: Primitive <X> was removed when purging, but is still there on undo"

Happened trying to reproduce #7700.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2012-05-15 01:31:01
Last Changed Author: simon04
Revision: 5240
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2012-05-14 15:04:43 +0200 (Mon, 14 May 2012)
Last Changed Rev: 5240

Identification: JOSM/1.5 (5240 en)
Memory Usage: 205 MB / 592 MB (30 MB allocated, but free)
Java version: 1.6.0_24, Sun Microsystems Inc., OpenJDK 64-Bit Server VM
Operating system: Linux

Dataset consistency test:
[DELETED REFERENCED] {Way id=28175937 version=4 MVDT nodes=[{Node id=309477899 version=3 MVD lat=48.001623,lon=7.9032373}, {Node id=309477910 version=1 MVD lat=48.0038139,lon=7.9037719}, {Node id=309477913 version=1 MVD lat=48.0041066,lon=7.9036741}, {Node id=309477918 version=1 MVD lat=48.0044326,lon=7.9033795}, {Node id=309477921 version=1 MVD lat=48.0045871,lon=7.9033601}, {Node id=309477926 version=1 MVD lat=48.0050037,lon=7.9034828}, {Node id=309477928 version=3 V lat=48.0050618,lon=7.9035748}]} refers to deleted primitive {Node id=309477899 version=3 MVD lat=48.001623,lon=7.9032373}
[DELETED REFERENCED] {Way id=28175937 version=4 MVDT nodes=[{Node id=309477899 version=3 MVD lat=48.001623,lon=7.9032373}, {Node id=309477910 version=1 MVD lat=48.0038139,lon=7.9037719}, {Node id=309477913 version=1 MVD lat=48.0041066,lon=7.9036741}, {Node id=309477918 version=1 MVD lat=48.0044326,lon=7.9033795}, {Node id=309477921 version=1 MVD lat=48.0045871,lon=7.9033601}, {Node id=309477926 version=1 MVD lat=48.0050037,lon=7.9034828}, {Node id=309477928 version=3 V lat=48.0050618,lon=7.9035748}]} refers to deleted primitive {Node id=309477910 version=1 MVD lat=48.0038139,lon=7.9037719}
[DELETED REFERENCED] {Way id=28175937 version=4 MVDT nodes=[{Node id=309477899 version=3 MVD lat=48.001623,lon=7.9032373}, {Node id=309477910 version=1 MVD lat=48.0038139,lon=7.9037719}, {Node id=309477913 version=1 MVD lat=48.0041066,lon=7.9036741}, {Node id=309477918 version=1 MVD lat=48.0044326,lon=7.9033795}, {Node id=309477921 version=1 MVD lat=48.0045871,lon=7.9033601}, {Node id=309477926 version=1 MVD lat=48.0050037,lon=7.9034828}, {Node id=309477928 version=3 V lat=48.0050618,lon=7.9035748}]} refers to deleted primitive {Node id=309477913 version=1 MVD lat=48.0041066,lon=7.9036741}
[DELETED REFERENCED] {Way id=28175937 version=4 MVDT nodes=[{Node id=309477899 version=3 MVD lat=48.001623,lon=7.9032373}, {Node id=309477910 version=1 MVD lat=48.0038139,lon=7.9037719}, {Node id=309477913 version=1 MVD lat=48.0041066,lon=7.9036741}, {Node id=309477918 version=1 MVD lat=48.0044326,lon=7.9033795}, {Node id=309477921 version=1 MVD lat=48.0045871,lon=7.9033601}, {Node id=309477926 version=1 MVD lat=48.0050037,lon=7.9034828}, {Node id=309477928 version=3 V lat=48.0050618,lon=7.9035748}]} refers to deleted primitive {Node id=309477918 version=1 MVD lat=48.0044326,lon=7.9033795}
[DELETED REFERENCED] {Way id=28175937 version=4 MVDT nodes=[{Node id=309477899 version=3 MVD lat=48.001623,lon=7.9032373}, {Node id=309477910 version=1 MVD lat=48.0038139,lon=7.9037719}, {Node id=309477913 version=1 MVD lat=48.0041066,lon=7.9036741}, {Node id=309477918 version=1 MVD lat=48.0044326,lon=7.9033795}, {Node id=309477921 version=1 MVD lat=48.0045871,lon=7.9033601}, {Node id=309477926 version=1 MVD lat=48.0050037,lon=7.9034828}, {Node id=309477928 version=3 V lat=48.0050618,lon=7.9035748}]} refers to deleted primitive {Node id=309477921 version=1 MVD lat=48.0045871,lon=7.9033601}
[DELETED REFERENCED] {Way id=28175937 version=4 MVDT nodes=[{Node id=309477899 version=3 MVD lat=48.001623,lon=7.9032373}, {Node id=309477910 version=1 MVD lat=48.0038139,lon=7.9037719}, {Node id=309477913 version=1 MVD lat=48.0041066,lon=7.9036741}, {Node id=309477918 version=1 MVD lat=48.0044326,lon=7.9033795}, {Node id=309477921 version=1 MVD lat=48.0045871,lon=7.9033601}, {Node id=309477926 version=1 MVD lat=48.0050037,lon=7.9034828}, {Node id=309477928 version=3 V lat=48.0050618,lon=7.9035748}]} refers to deleted primitive {Node id=309477926 version=1 MVD lat=48.0050037,lon=7.9034828}
[DELETED REFERENCED] {Way id=79972204 version=2 MVDT nodes=[{Node id=207316908 version=2 V lat=48.0051472,lon=7.9035692}, {Node id=207316926 version=2 MVD lat=48.0051946,lon=7.903377}, {Node id=207316942 version=2 MVD lat=48.0052869,lon=7.9028703}, {Node id=207316967 version=2 MVD lat=48.0057388,lon=7.9022112}, {Node id=308304074 version=2 MVD lat=48.0059723,lon=7.9017507}, {Node id=308304078 version=2 MVD lat=48.0064474,lon=7.900501}, {Node id=308304080 version=2 MVD lat=48.0069592,lon=7.8996569}, {Node id=308304081 version=2 MVD lat=48.0069895,lon=7.8994927}, {Node id=308304082 version=2 MVD lat=48.0069484,lon=7.8992541}, {Node id=308304084 version=2 MVD lat=48.0065995,lon=7.8984297}, {Node id=308304085 version=3 MVD lat=48.0062786,lon=7.8973663}, {Node id=308304086 version=3 MVD lat=48.0062401,lon=7.8970226}, {Node id=207316079 version=2 MVD lat=48.0062571,lon=7.8967686}]} refers to deleted primitive {Node id=207316926 version=2 MVD lat=48.0051946,lon=7.903377}
[DELETED REFERENCED] {Way id=79972204 version=2 MVDT nodes=[{Node id=207316908 version=2 V lat=48.0051472,lon=7.9035692}, {Node id=207316926 version=2 MVD lat=48.0051946,lon=7.903377}, {Node id=207316942 version=2 MVD lat=48.0052869,lon=7.9028703}, {Node id=207316967 version=2 MVD lat=48.0057388,lon=7.9022112}, {Node id=308304074 version=2 MVD lat=48.0059723,lon=7.9017507}, {Node id=308304078 version=2 MVD lat=48.0064474,lon=7.900501}, {Node id=308304080 version=2 MVD lat=48.0069592,lon=7.8996569}, {Node id=308304081 version=2 MVD lat=48.0069895,lon=7.8994927}, {Node id=308304082 version=2 MVD lat=48.0069484,lon=7.8992541}, {Node id=308304084 version=2 MVD lat=48.0065995,lon=7.8984297}, {Node id=308304085 version=3 MVD lat=48.0062786,lon=7.8973663}, {Node id=308304086 version=3 MVD lat=48.0062401,lon=7.8970226}, {Node id=207316079 version=2 MVD lat=48.0062571,lon=7.8967686}]} refers to deleted primi...<snip>...

strange looks different on the console

java.lang.AssertionError: Primitive {Relation id=1103408 version=26 VT [way 19839339, way 28079438, way 30447999, way 30445414, way 30446062, way 30446689, way 143666962, way 30445630, way 30827815, way 70104695, way 70104691, way 30445644, way 30799621, way 30799357, way 30440569, way 30440576, way 30257989, way 30256962, way 69992855, way 69992853, way 143837208, way 143867753, way 69992850, way 69997536, way 69997528, way 70104709, way 70104687, way 4214284, way 70109500, way 70109487, way 66385266, way 69997525, way 82198427, way 82895685, way 4672050, way 70104690, way 70104702, way 70104682, way 45677780, way 45677778, way 28033900, way 28033902, way 19839357, way 70109493, way 70109489, way 126631685, way 126631686, way 145146082, way 145403575]} was removed when purging, but is still there on undo
	at org.openstreetmap.josm.command.PurgeCommand.undoCommand(PurgeCommand.java:137)
	at org.openstreetmap.josm.data.UndoRedoHandler.undo(UndoRedoHandler.java:80)
	at org.openstreetmap.josm.data.UndoRedoHandler.undo(UndoRedoHandler.java:66)
	at org.openstreetmap.josm.actions.UndoAction.actionPerformed(UndoAction.java:35)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.Component.processMouseEvent(Component.java:6268)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6033)
	at java.awt.Container.processEvent(Container.java:2045)
	at java.awt.Component.dispatchEventImpl(Component.java:4629)
	at java.awt.Container.dispatchEventImpl(Container.java:2103)
	at java.awt.Component.dispatchEvent(Component.java:4455)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
	at java.awt.Container.dispatchEventImpl(Container.java:2089)
	at java.awt.Window.dispatchEventImpl(Window.java:2517)
	at java.awt.Component.dispatchEvent(Component.java:4455)
	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 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)

and

java.lang.AssertionError: Primitive {Relation id=48358 version=94 VT [node 1571920580, node 1741982567, way 38334098, way 28253358, way 38334096, way 93591840, way 81907883, way 81907879, way 27238864, way 27238860, way 42454602, way 38334094, way 32850271, way 38334092, way 32850267, way 33097420, way 38307937, way 38307938, way 33097423, way 38307939, way 38307940, way 38334087, way 38307942, way 38307944, way 38307945, way 38307946, way 38334085, way 33182220, way 44820407, node 1755262641, way 38334083, way 162463044, way 162463033, way 38307953, way 69146726, way 139189143, node 1307772721, way 139189141, node 1755262640, way 24561371, way 26418249, way 128478282, node 1525441645, way 26294303, node 1525441661, way 38307959, node 1525441663, way 110013655, node 1525441653, way 139189139, node 1755262621, way 62234187, node 777097382, way 35731632, way 25370838, way 25370850, way 33118968, way 38334059, way 38334061, way 38334063, way 44067306, way 38334069, way 38334070, way 38334071, way 45039738, way 38334078, way 38334075, way 32515326, way 72414618, way 72414617, way 24219307, way 38334076, way 128910172, way 32939381, way 32939379, node 777096702, way 24220045, way 128910180, way 24220043, way 33091285, way 24220038, node 777096474, way 155455874, way 22921445, way 22921460, way 51527790, way 40873022, way 40873025, way 40873023, way 40873024, way 40873026, way 40873030, way 40873028, way 40873099, way 33119404, way 40873033, way 40873035, way 40873037, way 40873039, way 40873042, way 128478740, way 39075500, way 128478741, way 40873044, way 39075504, way 40873048, way 18134627, way 38807259, way 38807254, way 40873050, way 40873052, way 40873055, way 40873056, way 40873058, way 40873061, way 40873063, way 40873067, node 457092760, way 40873068, node 466513103, way 40873069, node 812061941, way 33127391, node 467689037, way 40873072, node 467689038, way 67247346, node 467689039, way 67247352, way 40873073, node 467689041, way 40873074, way 40873077, node 467690265, way 40873078, node 467690267, way 67247339, way 39115180, node 812062142, way 40873087, way 40873089, way 40873093, way 67247343, node 471808948, way 67264876, node 812061867, way 40873092, way 40873094, way 40873100, way 39115597, way 76701075, way 143649714, way 143649834, way 143649875, way 40873102, way 143649719, way 143645800, way 143645801, way 40873095, node 812061985, way 67247345, way 143631134, way 143631187, way 40873105, way 143631182, way 38750287, way 40931213, node 812062024, way 143631128, way 143474787, way 143475017, way 142991401, way 142991402, way 143474887, way 143475006, way 143474906, way 143474754, way 143474750, way 40931218, way 143474818, way 143474762, way 143474992, way 40931219, way 33129009, way 40931198, way 33129011, way 40931202, way 57066367, way 40931203, way 40931201, way 40931204, way 40931206, way 23592813, way 30620515, way 30620587, way 30692598, way 40931208, way 30691437, way 40931209, way 108469944, way 33129853, way 33618384, way 52348501, way 33618385, way 33129857, way 40931212, way 40931222, way 145799193, way 145799192, way 145798577, way 118030269, way 118029630, node 911197455, way 30408667, way 145816917, way 145816936, way 145816939, way 124878605, way 107451303, way 124878603, way 145813976, way 41778175, way 23034577, way 30502555, way 34788747, way 34777899, way 34777900, way 34777788, way 35073307, way 41778176, way 35564892, way 35564893, way 35270036, way 41778177, way 41778150, way 41778179, way 37480106, way 37480330, way 37480527, way 37480329, way 36530689, way 41778182, way 34074900, way 37540847, way 37540846, way 37540845, way 37538873, way 42194978, way 41778153, way 42194976, way 41778154, way 41778157, way 37538372, way 41778160, way 37538370, way 41778163, way 41778164, way 37532147, way 124971480, way 33002376, way 41778184, way 34182511, way 41778185, way 29339345, way 41778186, way 41778166, way 36827133, way 131343667, way 36827135, way 131343669, way 36828168, way 38551019, way 41778170, way 41778187, way 38551020, way 45733322, way 38551021, way 28383275, way 41778191, way 41778172, way 41778171, way 38551018, way 41778193, way 38551017, way 27408691, way 41778197, way 26589934, way 41778199, way 41778173, way 27266608, way 41832711, way 27266612, way 45683454, way 27383992, way 40392924, way 27887777, way 27887779, way 28195044, way 61270234, way 33710827, way 158709892, way 33710823, way 33710824, way 41832739, way 41832735, way 33372182, way 41832741, way 34286112, way 39650464, way 28115093, way 41878334, way 41878340, way 124095690, way 78876711, node 923596307, way 28079438, way 28079437, way 28079436, way 79973213, way 28077718, way 24058658, way 19839331, way 19839361, way 28079434, way 43542005, node 307829837, way 27681903, way 10569608, way 4447572, node 309177166, node 309177161, node 308823602, node 308330374, node 308304071, node 307829839, node 307819281, node 307812302, way 4447570, node 309177156, way 118656367, way 27665521, way 9943750, way 4949259, way 4746444, node 722425879, way 124127875, way 4746445, way 10209613, way 4949232, way 129932307, way 53799668, way 26963448, way 53799662, way 53799661, node 1388462815, way 155986438]} was removed when purging, but is still there on undo
	at org.openstreetmap.josm.command.PurgeCommand.undoCommand(PurgeCommand.java:137)
	at org.openstreetmap.josm.data.UndoRedoHandler.undo(UndoRedoHandler.java:80)
	at org.openstreetmap.josm.data.UndoRedoHandler.undo(UndoRedoHandler.java:66)
	at org.openstreetmap.josm.actions.UndoAction.actionPerformed(UndoAction.java:35)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.Component.processMouseEvent(Component.java:6268)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6033)
	at java.awt.Container.processEvent(Container.java:2045)
	at java.awt.Component.dispatchEventImpl(Component.java:4629)
	at java.awt.Container.dispatchEventImpl(Container.java:2103)
	at java.awt.Component.dispatchEvent(Component.java:4455)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
	at java.awt.Container.dispatchEventImpl(Container.java:2089)
	at java.awt.Window.dispatchEventImpl(Window.java:2517)
	at java.awt.Component.dispatchEvent(Component.java:4455)
	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 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)

Attachments (0)

Change History (3)

comment:1 Changed 10 years ago by skyper

I can 100% reproduce this:

  1. download some data
  2. copy layer
  3. purge some objects
  4. activate other layer
  5. merge
  6. undo

tested with sav.osm

comment:2 Changed 10 years ago by Don-vip

Description: modified (diff)

comment:3 in reply to:  1 Changed 10 years ago by Don-vip

Resolution: duplicate
Status: newclosed

Closed as duplicate of #5846.
Replying to skyper:

I can 100% reproduce this:

Thanks for this. I close the ticket as duplicate of #5846, but I'm using it :)

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.