Modify

Opened 11 years ago

Closed 10 years ago

#8898 closed defect (duplicate)

java.lang.AssertionError when undoing a Purge.

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

Description (last modified by rickmastfan67)

Just had this happen when I undid a purge.

Had an old file that I wanted to update the data in, so, I purged all the data and then updated it all. Then for the fun of it, I tried to undo it all and this error popped up. Doesn't really effect my work flow, but still, an error is an error, so here's the report.

Steps that I did to cause this to happen:

  1. Open a older *.osm file.
  2. "Ctrl+A" to select everything.
  3. Purged all the data. (Do NOT have the "Clear Undo/Redo buffer" box checked.)
  4. File > Update Data.
  5. Undo the Purge
  6. CRASH

I would attach the file that does this, but I already re-saved it after Step 4 not knowing this would have happened. :(

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-07-23 01:35:03
Last Changed Author: bastiK
Revision: 6080
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-07-22 15:21:30 +0200 (Mon, 22 Jul 2013)
Last Changed Rev: 6080

Identification: JOSM/1.5 (6080 en) Windows 7 64-Bit
Memory Usage: 263 MB / 2730 MB (137 MB allocated, but free)
Java version: 1.7.0_25, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-Xmx3072M]
Dataset consistency test: No problems found

Plugin: ImageryCache (29690)
Plugin: OpeningHoursEditor (29435)
Plugin: buildings_tools (29596)
Plugin: mapdust (29525)
Plugin: measurement (29750)
Plugin: mirrored_download (29643)
Plugin: openstreetbugs (29435)
Plugin: osmarender (29639)
Plugin: reverter (29663)
Plugin: turnrestrictions (29435)
Plugin: undelete (29555)
Plugin: utilsplugin2 (29742)

java.lang.AssertionError: Primitive {Node id=357309826 version=3 VT lat=40.8917294,lon=-80.341453} was removed when purging, but is still there on undo
	at org.openstreetmap.josm.command.PurgeCommand.undoCommand(PurgeCommand.java:130)
	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.SwingUtilities.notifyAction(Unknown Source)
	at javax.swing.JComponent.processKeyBinding(Unknown Source)
	at javax.swing.KeyboardManager.fireBinding(Unknown Source)
	at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
	at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
	at javax.swing.JComponent.processKeyBindings(Unknown Source)
	at javax.swing.JComponent.processKeyEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(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.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(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)

Attachments (1)

ticket8898.7z (144.9 KB ) - added by rickmastfan67 11 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by rickmastfan67, 11 years ago

Description: modified (diff)

comment:2 by rickmastfan67, 11 years ago

I've found another one of my files that I have that allows me to duplicate this bug. It is attached below. Just follow the steps in the main post to duplicate this with ease. The only thing that will be different will be the "Primitive" part, but the crash locations are the same.

by rickmastfan67, 11 years ago

Attachment: ticket8898.7z added

comment:3 by bastiK, 11 years ago

This is a known problem and should be fixed when the work in #7489 is finished.

comment:4 by skyper, 10 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #5846.

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.