Opened 6 years ago
Closed 6 years ago
#16583 closed defect (fixed)
DataIntegrityProblemException: Primitive must be part of the dataset - MendRelationAction
Reported by: | Polyglot | Owned by: | Biswesh |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Plugin pt_assistant | Version: | |
Keywords: | template_report relation | Cc: |
Description (last modified by )
What steps will reproduce the problem?
- using routing helper functionality
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: 1328 MB / 1733 MB (459 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: No configuration settings found. Using hardcoded default values for all pools. - W: Unable to delete archived backup file <josm.userdata>/autosave/deleted_layers/PT Barcelona.osm_20180808_125551957.osm - W: Unsaved changes - <html>You have unsaved changes in this editor window.<br><br>Do you want to discard these changes and reload data from layer?</html> - W: Unsaved changes - <html>You have unsaved changes in this editor window.<br><br>Do you want to discard these changes and reload data from layer?</html> - E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Way id=-7678890 version=0 VT> nodes=[{Node id=1944547125 version=1 V lat=42.7000282,lon=2.8865307}, {Node id=271809213 version=2 V lat=42.6999394,lon=2.886576}, {Node id=271809213 version=2 V lat=42.6999394,lon=2.886576}, {Node id=272402867 version=3 V lat=42.699813,lon=2.8866344}, {Node id=272402867 version=3 V lat=42.699813,lon=2.8866344}, {Node id=271809215 version=2 V lat=42.6992823,lon=2.8869002}, {Node id=271809215 version=2 V lat=42.6992823,lon=2.8869002}, {Node id=1161357934 version=1 V lat=42.6990099,lon=2.8870086}, {Node id=1161357934 version=1 V lat=42.6990099,lon=2.8870086}, {Node id=5620373782 version=1 VT lat=42.6986738,lon=2.8871653}, {Node id=5620373782 version=1 VT lat=42.6986738,lon=2.8871653}, {Node id=271809664 version=2 V lat=42.6985135,lon=2.88724}, {Node id=271809664 version=2 V lat=42.6985135,lon=2.88724}, {Node id=271809210 version=3 V lat=42.6984064,lon=2.8872843}, {Node id=271809210 version=3 V lat=42.6984064,lon=2.8872843}, {Node id=1161356878 version=1 V lat=42.6981225,lon=2.8874236}, {Node id=1161356878 version=1 V lat=42.6981225,lon=2.8874236}, {Node id=271811583 version=3 V lat=42.698038,lon=2.887465}, {Node id=271811583 version=3 V lat=42.698038,lon=2.887465}, {Node id=272402816 version=3 V lat=42.6978493,lon=2.8875467}, {Node id=272402816 version=3 V lat=42.6978493,lon=2.8875467}, {Node id=272402806 version=3 V lat=42.6974746,lon=2.8877236}, {Node id=272402806 version=3 V lat=42.6974746,lon=2.8877236}, {Node id=5620373785 version=1 VT lat=42.6974039,lon=2.8877603}, {Node id=5620373785 version=1 VT lat=42.6974039,lon=2.8877603}, {Node id=272402718 version=3 V lat=42.6973333,lon=2.887797}, {Node id=272402718 version=3 V lat=42.6973333,lon=2.887797}, {Node id=271809216 version=2 V lat=42.697292,lon=2.8878362}, {Node id=271809216 version=2 V lat=42.697292,lon=2.8878362}, {Node id=35196688 version=3 V lat=42.6972726,lon=2.8878947}]} === 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=-7678890 version=0 VT> nodes=[{Node id=1944547125 version=1 V lat=42.7000282,lon=2.8865307}, {Node id=271809213 version=2 V lat=42.6999394,lon=2.886576}, {Node id=271809213 version=2 V lat=42.6999394,lon=2.886576}, {Node id=272402867 version=3 V lat=42.699813,lon=2.8866344}, {Node id=272402867 version=3 V lat=42.699813,lon=2.8866344}, {Node id=271809215 version=2 V lat=42.6992823,lon=2.8869002}, {Node id=271809215 version=2 V lat=42.6992823,lon=2.8869002}, {Node id=1161357934 version=1 V lat=42.6990099,lon=2.8870086}, {Node id=1161357934 version=1 V lat=42.6990099,lon=2.8870086}, {Node id=5620373782 version=1 VT lat=42.6986738,lon=2.8871653}, {Node id=5620373782 version=1 VT lat=42.6986738,lon=2.8871653}, {Node id=271809664 version=2 V lat=42.6985135,lon=2.88724}, {Node id=271809664 version=2 V lat=42.6985135,lon=2.88724}, {Node id=271809210 version=3 V lat=42.6984064,lon=2.8872843}, {Node id=271809210 version=3 V lat=42.6984064,lon=2.8872843}, {Node id=1161356878 version=1 V lat=42.6981225,lon=2.8874236}, {Node id=1161356878 version=1 V lat=42.6981225,lon=2.8874236}, {Node id=271811583 version=3 V lat=42.698038,lon=2.887465}, {Node id=271811583 version=3 V lat=42.698038,lon=2.887465}, {Node id=272402816 version=3 V lat=42.6978493,lon=2.8875467}, {Node id=272402816 version=3 V lat=42.6978493,lon=2.8875467}, {Node id=272402806 version=3 V lat=42.6974746,lon=2.8877236}, {Node id=272402806 version=3 V lat=42.6974746,lon=2.8877236}, {Node id=5620373785 version=1 VT lat=42.6974039,lon=2.8877603}, {Node id=5620373785 version=1 VT lat=42.6974039,lon=2.8877603}, {Node id=272402718 version=3 V lat=42.6973333,lon=2.887797}, {Node id=272402718 version=3 V lat=42.6973333,lon=2.887797}, {Node id=271809216 version=2 V lat=42.697292,lon=2.8878362}, {Node id=271809216 version=2 V lat=42.697292,lon=2.8878362}, {Node id=35196688 version=3 V lat=42.6972726,lon=2.8878947}]} 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.downloadAreaAroundWay(MendRelationAction.java:1236) at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.goToNextWays(MendRelationAction.java:827) 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.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)
Attachments (0)
Change History (15)
comment:1 by , 6 years ago
Description: | modified (diff) |
---|---|
Keywords: | relation added |
Summary: | using routing helper functionality → DataIntegrityProblemException: Primitive must be part of the dataset |
comment:2 by , 6 years ago
Summary: | DataIntegrityProblemException: Primitive must be part of the dataset → DataIntegrityProblemException: Primitive must be part of the dataset - MendRelationAction |
---|
comment:3 by , 6 years ago
comment:9 by , 6 years ago
@Polyglot: you reported this bug 7 times, please try not to do that, it involves a lot of triaging work.
comment:10 by , 6 years ago
Also Biswesh please try to fix this bug as it seems to occur very often during Polyglot tests. Thanks.
comment:11 by , 6 years ago
Priority: | normal → major |
---|
comment:12 by , 6 years ago
Thanks Vincent for triaging the tickets. Next time when I see DataIntegrityProblemException: Primitive must be part of the dataset, I'll refrain from reporting it. Biswesh is unavailable until Wednesday, he'll look into at that time.
My problem is that I can't know whether this is a new bug or the same one that keeps reoccurring. The situation is always a little bit different.
I encounter it often, because I'm also trying rather hard to test drive the newly added functionality.
I don't know if you watched the videos, but I think it's very useful.
This video shows it in 9 minutes: https://www.youtube.com/watch?v=P_7D7Gffccw
Afterwards, I realized I was cutting some corners, but that's not data I could upload, as I can't be sure that the route relation corresponds to reality. Still for showing the new functionality in a short timespan, it is useful. The other videos I created all take at least 30 minutes. Anyway, I'm still experimenting to find the best way to create documentation for it.
comment:13 by , 6 years ago
To identify a bug, you can take a look at the stacktrace:
=== STACK TRACE === Thread: AWT-EventQueue-0 (18) of main org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Way id=-7678890 version=0 VT> nodes=[{Node id=1944547125 version=1 V lat=42.7000282,lon=2.8865307}, {Node id=271809213 version=2 V lat=42.6999394,lon=2.886576}, {Node id=271809213 version=2 V lat=42.6999394,lon=2.886576}, {Node id=272402867 version=3 V lat=42.699813,lon=2.8866344}, {Node id=272402867 version=3 V lat=42.699813,lon=2.8866344}, {Node id=271809215 version=2 V lat=42.6992823,lon=2.8869002}, {Node id=271809215 version=2 V lat=42.6992823,lon=2.8869002}, {Node id=1161357934 version=1 V lat=42.6990099,lon=2.8870086}, {Node id=1161357934 version=1 V lat=42.6990099,lon=2.8870086}, {Node id=5620373782 version=1 VT lat=42.6986738,lon=2.8871653}, {Node id=5620373782 version=1 VT lat=42.6986738,lon=2.8871653}, {Node id=271809664 version=2 V lat=42.6985135,lon=2.88724}, {Node id=271809664 version=2 V lat=42.6985135,lon=2.88724}, {Node id=271809210 version=3 V lat=42.6984064,lon=2.8872843}, {Node id=271809210 version=3 V lat=42.6984064,lon=2.8872843}, {Node id=1161356878 version=1 V lat=42.6981225,lon=2.8874236}, {Node id=1161356878 version=1 V lat=42.6981225,lon=2.8874236}, {Node id=271811583 version=3 V lat=42.698038,lon=2.887465}, {Node id=271811583 version=3 V lat=42.698038,lon=2.887465}, {Node id=272402816 version=3 V lat=42.6978493,lon=2.8875467}, {Node id=272402816 version=3 V lat=42.6978493,lon=2.8875467}, {Node id=272402806 version=3 V lat=42.6974746,lon=2.8877236}, {Node id=272402806 version=3 V lat=42.6974746,lon=2.8877236}, {Node id=5620373785 version=1 VT lat=42.6974039,lon=2.8877603}, {Node id=5620373785 version=1 VT lat=42.6974039,lon=2.8877603}, {Node id=272402718 version=3 V lat=42.6973333,lon=2.887797}, {Node id=272402718 version=3 V lat=42.6973333,lon=2.887797}, {Node id=271809216 version=2 V lat=42.697292,lon=2.8878362}, {Node id=271809216 version=2 V lat=42.697292,lon=2.8878362}, {Node id=35196688 version=3 V lat=42.6972726,lon=2.8878947}]} 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.downloadAreaAroundWay(MendRelationAction.java:1236) at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.goToNextWays(MendRelationAction.java:827) 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.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)
When this part is the same as another ticket, this is a duplicate :)
Here we can see that MendRelationAction
is clearly at fault.
comment:14 by , 6 years ago
Hello, this issue has been resolved. Sorry for not closing the ticket. I had closed 1 related to this I guess.
comment:15 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Ticket #16585 has been marked as a duplicate of this ticket.