﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
18351	MapWithAI add multiple object bug	zlavergne	taylor.smock	"==== What steps will reproduce the problem?
1. Select at least 3x as many objects as the plugin limit (5 in this error)
2. Add the the objects twice

==== What is the expected result?
No error

==== What happens instead?
Error was raised

==== 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: 2019-11-01 23:59:01 +0100 (Fri, 01 Nov 2019)
Build-Date:2019-11-01 22:59:57
Revision:15492
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15492 en) Mac OS X 10.14.6
OS Build number: Mac OS X 10.14.6 (18G103)
Memory Usage: 1565 MB / 3641 MB (1079 MB allocated, but free)
Java version: 1.8.0_231-b11, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: Display 69732928 1280x800, Display 188945226 1920x1080, Display 188945225 1920x1080
Maximum Screen Size: 1920x1080

Dataset consistency test:
[DELETED REFERENCED] {Way id=-3680828768087792337 version=0 MVT nodes=[{Node id=-3680828768087792191 version=0 MV lat=-5.0520813,lon=31.7912471}, {Node id=-3680828768087792224 version=0 MV lat=-5.0521348,lon=31.7911559}, {Node id=-3680828768087792189 version=0 MV lat=-5.0522256,lon=31.7911237}, {Node id=-3680828768087792075 version=0 MVDT lat=-5.0525036,lon=31.7910755}, {Node id=5272663453 version=1 V lat=-5.0529872,lon=31.7909896}, {Node id=-3680828768087792286 version=0 MV lat=-5.0540958,lon=31.7907804}, {Node id=-3680828768087792235 version=0 MV lat=-5.0545767,lon=31.790657}, {Node id=-3680828768087792064 version=0 MV lat=-5.0546355,lon=31.7906195}]} refers to deleted primitive {Node id=-3680828768087792075 version=0 MVDT lat=-5.0525036,lon=31.7910755}


Plugins:
+ mapwithai (0.2.0)
+ utilsplugin2 (35230)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted node referenced: {Way id=-3680828768087792337 version=0 MVT nodes=[{Node id=-3680828768087792191 version=0 MV lat=-5.0520813,lon=31.7912471}, {Node id=-3680828768087792224 version=0 MV lat=-5.0521348,lon=31.7911559}, {Node id=-3680828768087792189 version=0 MV lat=-5.0522256,lon=31.7911237}, {Node id=-3680828768087792075 version=0 MVDT lat=-5.0525036,lon=31.7910755}, {Node id=5272663453 version=1 V lat=-5.0529872,lon=31.7909896}, {Node id=-3680828768087792286 version=0 MV lat=-5.0540958,lon=31.7907804}, {Node id=-3680828768087792235 version=0 MV lat=-5.0545767,lon=31.790657}, {Node id=-3680828768087792064 version=0 MV lat=-5.0546355,lon=31.7906195}]}


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: org.openstreetmap.josm.plugins.mapwithai.commands.MapWithAIAddCommand (323)
org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted node referenced: {Way id=-3680828768087792337 version=0 MVT nodes=[{Node id=-3680828768087792191 version=0 MV lat=-5.0520813,lon=31.7912471}, {Node id=-3680828768087792224 version=0 MV lat=-5.0521348,lon=31.7911559}, {Node id=-3680828768087792189 version=0 MV lat=-5.0522256,lon=31.7911237}, {Node id=-3680828768087792075 version=0 MVDT lat=-5.0525036,lon=31.7910755}, {Node id=5272663453 version=1 V lat=-5.0529872,lon=31.7909896}, {Node id=-3680828768087792286 version=0 MV lat=-5.0540958,lon=31.7907804}, {Node id=-3680828768087792235 version=0 MV lat=-5.0545767,lon=31.790657}, {Node id=-3680828768087792064 version=0 MV lat=-5.0546355,lon=31.7906195}]}
	at org.openstreetmap.josm.data.osm.Way.checkNodes(Way.java:536)
	at org.openstreetmap.josm.data.osm.Way.fireNodesChanged(Way.java:552)
	at org.openstreetmap.josm.data.osm.Way.setNodes(Way.java:63)
	at org.openstreetmap.josm.command.ChangeNodesCommand.modifyWay(ChangeNodesCommand.java:45)
	at org.openstreetmap.josm.command.AbstractNodesCommand.executeCommand(AbstractNodesCommand.java:55)
	at org.openstreetmap.josm.command.SequenceCommand.executeCommand(SequenceCommand.java:79)
	at org.openstreetmap.josm.command.SequenceCommand.executeCommand(SequenceCommand.java:79)
	at org.openstreetmap.josm.command.SequenceCommand.executeCommand(SequenceCommand.java:79)
	at org.openstreetmap.josm.plugins.mapwithai.commands.CreateConnectionsCommand.executeCommand(CreateConnectionsCommand.java:48)
	at org.openstreetmap.josm.command.SequenceCommand.executeCommand(SequenceCommand.java:79)
	at org.openstreetmap.josm.plugins.mapwithai.commands.MapWithAIAddCommand.run(MapWithAIAddCommand.java:95)
	at java.lang.Thread.run(Thread.java:748)
}}}
"	defect	closed	normal		Plugin mapwithai	tested	fixed	template_report mapwithai	taylor.smock
