﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16600	DataIntegrityProblemException: Primitive must be part of the dataset - MendRelationAction	Polyglot	Biswesh	"==== What steps will reproduce the problem?
1. using it, it proposed a wrong solution because way wasn't split
2. stopped it, split manually
3. now it does propose proper solution
4. After accepting that it crashes before proposing the next one, as it would have to split the next way? Or because I relaunched it twice during the same 'session', after having interrupted it?

==== 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-29 00:41:59 +0200 (Sun, 29 Jul 2018)
Build-Date:2018-07-29 01:32:17
Revision:14066
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14066 en) Linux Mint 18.3 Sylvia
Memory Usage: 1072 MB / 1733 MB (410 MB allocated, but free)
Java version: 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1600x900
Maximum Screen Size: 1600x900
Java package: openjdk-8-jre:amd64-8u171-b11-0ubuntu0.16.04.1
Dataset consistency test: No problems found

Plugins:
+ Mapillary (v1.5.15)
+ OpeningHoursEditor (34389)
+ apache-commons (34389)
+ apache-http (34389)
+ buildings_tools (34212)
+ ejml (34389)
+ geotools (34125)
+ jts (34206)
+ measurement (34206)
+ opendata (34389)
+ pt_assistant (306)
+ reverter (34271)
+ scripting (30785)
+ tag2link (34109)
+ terracer (34109)
+ todo (30305)
+ utilsplugin2 (34389)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/BENELUX&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Trees&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/OneClick&zip=1

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/NumberedCycleNodeNetworks&zip=1

Last errors/warnings:
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Way id=-6248967 version=0 VT> nodes=[{Node id=3711321658 version=2 V lat=23.0589176,lon=-82.4568079}, {Node id=4112025177 version=1 VT lat=23.0588656,lon=-82.4567386}, {Node id=4112025177 version=1 VT lat=23.0588656,lon=-82.4567386}, {Node id=457904543 version=3 V lat=23.0588465,lon=-82.4567152}]}


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (18) of main
org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Way id=-6248967 version=0 VT> nodes=[{Node id=3711321658 version=2 V lat=23.0589176,lon=-82.4568079}, {Node id=4112025177 version=1 VT lat=23.0588656,lon=-82.4567386}, {Node id=4112025177 version=1 VT lat=23.0588656,lon=-82.4567386}, {Node id=457904543 version=3 V lat=23.0588465,lon=-82.4567152}]}
	at org.openstreetmap.josm.data.osm.OsmPrimitive.checkDataset(OsmPrimitive.java:247)
	at org.openstreetmap.josm.data.osm.OsmPrimitive.getReferrers(OsmPrimitive.java:826)
	at org.openstreetmap.josm.data.osm.OsmPrimitive.getReferrers(OsmPrimitive.java:848)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.isRestricted(MendRelationAction.java:1281)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.removeInvalidWaysFromParentWays(MendRelationAction.java:1066)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.goToNextWays(MendRelationAction.java:818)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.findNextWayAfterDownload(MendRelationAction.java:653)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.downloadAreaAroundWay(MendRelationAction.java:1159)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.findNextWayBeforeDownload(MendRelationAction.java:621)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.callNextWay(MendRelationAction.java:321)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.downloadAreaAroundWay(MendRelationAction.java:1200)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.callNextWay(MendRelationAction.java:331)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.getNextWayAfterSelection(MendRelationAction.java:1974)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction$2.keyPressed(MendRelationAction.java:1659)
	at java.awt.Component.processKeyEvent(Component.java:6491)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2832)
	at java.awt.Component.processEvent(Component.java:6310)
	at java.awt.Container.processEvent(Container.java:2238)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2296)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:835)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1103)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:974)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:800)
	at java.awt.Component.dispatchEventImpl(Component.java:4760)
	at java.awt.Container.dispatchEventImpl(Container.java:2296)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
	at java.awt.EventQueue$4.run(EventQueue.java:733)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
}}}
"	defect	closed	normal		Plugin pt_assistant		duplicate	template_report relation	
