Modify

Opened 8 months ago

Closed 8 months ago

#16459 closed defect (fixed)

It is impossible to delete path with 0 nodes

Reported by: libe@… Owned by: team
Priority: normal Milestone: 18.07
Component: Core Version: latest
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

What is the expected result?

What happens instead?

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

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-07-01 23:07:04 +0200 (Sun, 01 Jul 2018)
Build-Date:2018-07-01 21:10:23
Revision:13996
Relative:URL: ^/trunk

Identification: JOSM/1.5 (13996 cs) Windows 10 64-Bit
OS Build number: Windows 10 Home 1803 (17134)
Memory Usage: 265 MB / 989 MB (98 MB allocated, but free)
Java version: 1.8.0_171-b11, Oracle Corporation, Java HotSpot(TM) Client VM
Screen: \Display0 1366x768, \Display1 1280x1024
Maximum Screen Size: 1366x1024

Dataset consistency test:
[WARN - ZERO NODES] Way {Way id=-49524 version=0 VT nodes=[]} has zero nodes


Plugins:
+ BuildingGeneralization (23)
+ buildings_tools (34212)
+ imagery_offset_db (34370)
+ mapathoner (v0.5.12)
+ scripting (30785)
+ turnrestrictions (34129)

Last errors/warnings:
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: Cannot create way: data is invalid.>
- E: Porušení předpokladů - <html>Nahrávání na server <strong>selhalo</strong>, protože vaše aktuální<br>datová sada nesplňuje předpoklad.<br>Chybová zpráva je:<br>ResponseCode=412, Error Header=&lt;Precondition failed: Cannot create way: data is invalid.&gt;</html>
- E: Handled by bug report queue: org.openstreetmap.josm.tools.JosmRuntimeException: Reindexing way failed to remove
- E: Error header: Precondition failed: Cannot create way: data is invalid.
- W: Chybové záhlaví "Precondition failed: Cannot create way: data is invalid." neodpovídalo očekávanému vzoru
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: Cannot create way: data is invalid.>
- E: Porušení předpokladů - <html>Nahrávání na server <strong>selhalo</strong>, protože vaše aktuální<br>datová sada nesplňuje předpoklad.<br>Chybová zpráva je:<br>ResponseCode=412, Error Header=&lt;Precondition failed: Cannot create way: data is invalid.&gt;</html>
- E: Handled by bug report queue: org.openstreetmap.josm.tools.JosmRuntimeException: java.lang.reflect.InvocationTargetException. Přičina: java.lang.reflect.InvocationTargetException. Přičina: org.openstreetmap.josm.tools.JosmRuntimeException: Reindexing way failed to remove
- E: Handled by bug report queue: org.openstreetmap.josm.tools.JosmRuntimeException: Reindexing way failed to remove
- E: Handled by bug report queue: org.openstreetmap.josm.tools.JosmRuntimeException: Reindexing way failed to remove


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (17) of main
org.openstreetmap.josm.tools.JosmRuntimeException: Reindexing way failed to remove
	at org.openstreetmap.josm.data.osm.QuadBucketPrimitiveStore.reindexWay(QuadBucketPrimitiveStore.java:165)
	at org.openstreetmap.josm.data.osm.DataSet.fireWayNodesChanged(DataSet.java:1015)
	at org.openstreetmap.josm.data.osm.Way.fireNodesChanged(Way.java:563)
	at org.openstreetmap.josm.data.osm.Way.setNodes(Way.java:63)
	at org.openstreetmap.josm.command.DeleteCommand.executeCommand(DeleteCommand.java:194)
	at org.openstreetmap.josm.command.SequenceCommand.executeCommand(SequenceCommand.java:79)
	at org.openstreetmap.josm.data.UndoRedoHandler.addNoRedraw(UndoRedoHandler.java:234)
	at org.openstreetmap.josm.data.UndoRedoHandler.add(UndoRedoHandler.java:262)
	at org.openstreetmap.josm.actions.mapmode.DeleteAction.doActionPerformed(DeleteAction.java:159)
	at org.openstreetmap.josm.actions.DeleteAction.actionPerformed(DeleteAction.java:74)
	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$500(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$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.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$JavaSecurityAccessImpl.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)

LB001.osm (732.8 KB) - added by libe@… 8 months ago.
File with problem - path with 0 nodes

Download all attachments as: .zip

Change History (3)

Changed 8 months ago by libe@…

Attachment: LB001.osm added

File with problem - path with 0 nodes

comment:1 Changed 8 months ago by Don-vip

Thanks for reporting the bug. Please not that the milestone decision is made by JOSM developers.

comment:2 Changed 8 months ago by Don-vip

Resolution: fixed
Status: newclosed

In 14001/josm:

fix #16459 - don't reindex empty ways

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.