Modify

Opened 5 years ago

Closed 4 years ago

#17322 closed defect (fixed)

DataIntegrityProblemException: "Primitive must be part of the dataset" at NodeUtils.moveOntoNearestWay

Reported by: AlaskaDave Owned by: Biswesh
Priority: normal Milestone:
Component: Plugin pt_assistant Version:
Keywords: template_report Cc:

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. Try to use PT Plugin to add a bridge

What is the expected result? Plugin asks what do you want the line segment to be? I select bridge, and click OK

What happens instead?

Long wait, system hangs repeatedly, unable to close or cancel dialog box

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-02-02 21:01:18 +0100 (Sat, 02 Feb 2019)
Build-Date:2019-02-04 21:50:11
Revision:14760
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14760 en) Windows 10 64-Bit
OS Build number: Windows 10 Home 1803 (17134)
Memory Usage: 1928 MB / 1928 MB (756 MB allocated, but free)
Java version: 1.8.0_201-b09, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1200
Maximum Screen Size: 1920x1200
Dataset consistency test: No problems found

Plugins:
+ ColorPlugin (1537115529)
+ DirectDownload (34867)
+ DirectUpload (34867)
+ EasyPresets (1537621333)
+ FastDraw (34867)
+ ImproveWay (24)
+ Mapillary (v1.5.17)
+ OpeningHoursEditor (34867)
+ SimplifyArea (34867)
+ apache-commons (34506)
+ apache-http (34632)
+ buildings_tools (34867)
+ changeset-viewer (22)
+ download_along (34869)
+ ejml (34389)
+ geotools (34513)
+ imagery_offset_db (34867)
+ jaxb (34678)
+ jna (34867)
+ jts (34524)
+ measurement (34867)
+ opendata (34867)
+ pdfimport (34867)
+ photo_geotagging (34867)
+ pt_assistant (2.1.10)
+ rasterfilters (34550)
+ reltoolbox (34867)
+ tag2link (34867)
+ tageditor (34867)
+ todo (30306)
+ turnlanes (34678)
+ turnlanes-tagging (280)
+ turnrestrictions (34867)
+ utilsplugin2 (34867)
+ waydownloader (34867)
+ wikipedia (v1.1.1)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/Towers&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/BuildingPreset&zip=1
+ %UserProfile%\Dropbox\GPS Files\address.xml
+ %UserProfile%\Dropbox\GPS Files\Bbl_Fuel.xml
+ %UserProfile%\Dropbox\GPS Files\Benchmark.xml
+ %UserProfile%\Dropbox\GPS Files\BorC.xml
+ %UserProfile%\Dropbox\GPS Files\CoinOp_Fuel.xml
+ %UserProfile%\Dropbox\GPS Files\Daves-Misc.xml
+ %UserProfile%\Dropbox\GPS Files\Hamlet.xml
+ %UserProfile%\Dropbox\GPS Files\hydrant.xml
+ %UserProfile%\Dropbox\GPS Files\Land-Natural.xml
+ %UserProfile%\Dropbox\GPS Files\Milemarker.xml
+ %UserProfile%\Dropbox\GPS Files\NWR.xml
+ %UserProfile%\Dropbox\GPS Files\Ponds.xml
+ %UserProfile%\Dropbox\GPS Files\ResArea.xml
+ %UserProfile%\Dropbox\GPS Files\ResHwy.xml
+ %UserProfile%\Dropbox\GPS Files\Service.xml
+ %UserProfile%\Dropbox\GPS Files\TAP Service.xml
+ %UserProfile%\Dropbox\GPS Files\tennis.xml
+ %UserProfile%\Dropbox\GPS Files\UnclassHwy.xml
+ %UserProfile%\Dropbox\GPS Files\US_Fuel.xml
+ %UserProfile%\Dropbox\GPS Files\Wat.xml
+ %UserProfile%\Dropbox\GPS Files\Waters.xml
+ %UserProfile%\Dropbox\GPS Files\Ways.xml
+ %UserProfile%\Dropbox\GPS Files\wlan.xml
+ %UserProfile%\Dropbox\GPS Files\Stream.xml

Map paint styles:
+ https://downloads.osm-tools.org/FB_edits.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
- https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip
+ https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1

Last errors/warnings:
- E: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-268859 version=0 V lat=19.38736828683666,lon=99.14742976158858}
- E: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-268861 version=0 V lat=19.38736828683666,lon=99.14742976158858}
- E: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-268863 version=0 V lat=19.38736828683666,lon=99.14742976158858}
- E: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-268865 version=0 V lat=19.38736828683666,lon=99.14742976158858}
- E: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-268867 version=0 V lat=19.38736828683666,lon=99.14742976158858}
- E: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-268869 version=0 V lat=19.38736828683666,lon=99.14742976158858}
- E: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-268871 version=0 V lat=19.38736828683666,lon=99.14742976158858}
- E: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-268873 version=0 V lat=19.38736828683666,lon=99.14742976158858}
- E: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-268875 version=0 V lat=19.38736828683666,lon=99.14742976158858}
- E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-268875 version=0 V lat=19.38736828683666,lon=99.14742976158858}


=== 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.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-268875 version=0 V lat=19.38736828683666,lon=99.14742976158858}
	at org.openstreetmap.josm.data.osm.OsmPrimitive.checkDataset(OsmPrimitive.java:240)
	at org.openstreetmap.josm.data.osm.OsmPrimitive.referrers(OsmPrimitive.java:818)
	at org.openstreetmap.josm.data.osm.OsmPrimitive.referrers(OsmPrimitive.java:840)
	at org.openstreetmap.josm.data.osm.Node.getParentWays(Node.java:403)
	at org.openstreetmap.josm.plugins.pt_assistant.utils.NodeUtils.moveOntoNearestWay(NodeUtils.java:13)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.DoubleSplitAction.addKeys(DoubleSplitAction.java:335)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.DoubleSplitAction.access$700(DoubleSplitAction.java:75)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.DoubleSplitAction$SelectFromOptionDialog.buttonAction(DoubleSplitAction.java:924)
	at org.openstreetmap.josm.gui.ExtendedDialog$1.actionPerformed(ExtendedDialog.java:378)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(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.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(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 (0)

Change History (10)

comment:1 by Hb---, 5 years ago

Has the PT = Public Transport plugin really the function to add bridge tags to highways?

You have a lot of %UserProfile%\Dropbox\GPS Files\*.xml as Tagging Presets. How fast is your dropbox client?

Version 0, edited 5 years ago by Hb--- (next)

comment:2 by Don-vip, 5 years ago

Component: CorePlugin pt_assistant
Owner: changed from team to Biswesh

comment:3 by Biswesh, 5 years ago

Hi, does the error occur all the time? Can you give a bit more information about when it occurs as the error here is about "Primitive must be part of the dataset" which is unusual.

comment:4 by anonymous, 5 years ago

This error was the first and only time I ever saw it. I have many presets and mostly use them to tag bridges but I liked the ease offered by the PT Plugin when adding a bridge; two clicks and a quick acceptance of the popup dialog and I'm done. During this attempt, PT worked slow, very slow. I clicked the OK button many times to "encourage" it to finish. Then when I realized it was causing JOSM to hang, it took many, many clicks of the "X" an/or Close button to restore control to the keyboard and mouse. Each attempt to close it showed a new copy of the dialog box. I clicked away until it finally quit.

I've used the plugin in the past, with older versions of JOSM, and speed was never an issue. Nor do I suspect my Dropbox preset location as being "slow" - it's merely a folder on my computer that synchronizes with a copy in "the cloud". Besides, this is a new behavior. PT Plugin always worked before.

in reply to:  4 comment:5 by AlaskaDave, 5 years ago

I forgot to include my email in comment 4 - sorry.

Replying to anonymous:

This error was the first and only time I ever saw it. I have many presets and mostly use them to tag bridges but I liked the ease offered by the PT Plugin when adding a bridge; two clicks and a quick acceptance of the popup dialog and I'm done. During this attempt, PT worked slow, very slow. I clicked the OK button many times to "encourage" it to finish. Then when I realized it was causing JOSM to hang, it took many, many clicks of the "X" an/or Close button to restore control to the keyboard and mouse. Each attempt to close it showed a new copy of the dialog box. I clicked away until it finally quit.

I've used the plugin in the past, with older versions of JOSM, and speed was never an issue. Nor do I suspect my Dropbox preset location as being "slow" - it's merely a folder on my computer that synchronizes with a copy in "the cloud". Besides, this is a new behavior. PT Plugin always worked before.

comment:6 by Biswesh, 5 years ago

Thanks @daveswarthout. I will try and figure out the problem. Since the error is not reproducible and the error message is also not specific, it would be a bit difficult to solve the issue. But I will go through the part of the code to see if there are chances of any such errors to occur again.

comment:7 by AlaskaDave, 5 years ago

Thanks for working on it. JOSM removed the plugin when the error occurred and I will probably not bother to reinstall it because I used it only in a limited way.

Maybe it was just a weird thing with my setup. If others experience the same problem, you will have more data to work with. Sorry I couldn't be of much help.

comment:8 by Hb---, 5 years ago

@dave You may want to set --debug or --trace as Program arguments on the command prompt. This may bring hints why your system crashed.

Simply invoke java -jar josm-tested.jar --debug

comment:9 by Don-vip, 5 years ago

Description: modified (diff)
Summary: Try to use PT Plugin to add a bridgeDataIntegrityProblemException: "Primitive must be part of the dataset" at NodeUtils.moveOntoNearestWay

comment:10 by Polyglot, 4 years ago

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Biswesh.
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.