Modify

Opened 3 years ago

Last modified 3 years ago

#21879 needinfo defect

DataIntegrityProblemException: Primitive cannot be included in more than one Dataset

Reported by: protoxenus@… Owned by: protoxenus@…
Priority: normal Milestone:
Component: Core Version:
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.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2022-01-02 21:24:43 +0100 (Sun, 02 Jan 2022)
Revision:18360
Build-Date:2022-01-02 20:26:19
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18360 de) Linux Debian GNU/Linux 11 (bullseye)
Memory Usage: 1218 MB / 8008 MB (868 MB allocated, but free)
Java version: 11.0.14+9-post-Debian-1deb11u1, Debian, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 3840×2160 (scaling 1.00×1.00)
Maximum Screen Size: 3840×2160
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: de_DE.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: de_DE
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: KDE
Java package: openjdk-11-jre:amd64-11.0.14+9-1~deb11u1
Java ATK Wrapper package: libatk-wrapper-java:all-0.38.0-2+deb11u1
libcommons-compress-java: libcommons-compress-java:all-1.20-1
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:all-20201225-1
VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true]
Dataset consistency test: No problems found

Plugins:
+ BuildingGeneralization (36)
+ OpeningHoursEditor (35893)
+ SeaMapEditor (35893)
+ buildings_tools (35893)
+ continuosDownload (99)
+ graphview (35893)
+ importvec (35893)
+ indoor_sweepline (35894)
+ indoorhelper (1.2.0)
+ pdfimport (35893)
+ reverter (35893)
+ turnlanes (35893)
+ turnrestrictions (35893)
+ undelete (35893)
+ utilsplugin2 (35893)

Tagging presets:
+ https://github.com/kendzi/Simple3dBuildingsPreset/releases/download/0.9_2018-05-08/s3db-preset.zip
+ https://josm.openstreetmap.de/josmfile?page=Presets/Camp_site_extends&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/pedestrian_crossings_in_DE&zip=1
+ https://raw.githubusercontent.com/species/josm-preset-wheelchair/master/sidewalks_kerbs.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/Historical_Objects&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/MobilePhoneBaseStations&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/NewParkingFeatures&zip=1
+ https://www.openrailwaymap.org/josm-presets/de.zip
+ https://josm.openstreetmap.de/josmfile?page=Presets/ParkingLanes&zip=1
+ https://raw.githubusercontent.com/OpenNauticalChart/josm/master/INT-1-preset.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/StolpersteineLight&zip=1
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/DE.zip
+ https://josm.openstreetmap.de/josmfile?page=Presets/hiking_routes_with_trail_marking&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/WifiHotspots&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Windrad&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/caravan_site&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Xmas&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/public_bookcase&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Zigarettenautomaten_in_DE&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Surveillance&zip=1

Map paint styles:
+ https://www.openrailwaymap.org/styles/josm-additional.zip
+ https://www.openrailwaymap.org/styles/standard.zip
+ https://www.openrailwaymap.org/styles/signals.zip
- <josm.userdata>/styles/sit.mapcss

Last errors/warnings:
- 00015.104 E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive cannot be included in more than one Dataset



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (20) of main
org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive cannot be included in more than one Dataset
	at org.openstreetmap.josm.data.osm.OsmPrimitive.setDataset(OsmPrimitive.java:184)
	at org.openstreetmap.josm.data.osm.Node.setDataset(Node.java:203)
	at org.openstreetmap.josm.data.osm.DataSet.lambda$addPrimitive$5(DataSet.java:518)
	at org.openstreetmap.josm.data.osm.DataSet.update(DataSet.java:992)
	at org.openstreetmap.josm.data.osm.DataSet.addPrimitive(DataSet.java:511)
	at org.openstreetmap.josm.io.AbstractReader.processNodesAfterParsing(AbstractReader.java:141)
	at org.openstreetmap.josm.io.AbstractReader.prepareDataSet(AbstractReader.java:265)
	at org.openstreetmap.josm.io.AbstractReader.doParseDataSet(AbstractReader.java:310)
	at org.openstreetmap.josm.io.OsmReader.doParseDataSet(OsmReader.java:491)
	at org.openstreetmap.josm.io.OsmReader.parseDataSet(OsmReader.java:541)
	at org.openstreetmap.josm.io.OsmReader.parseDataSet(OsmReader.java:524)
	at org.openstreetmap.josm.io.BoundingBoxDownloader.parseDataSet(BoundingBoxDownloader.java:179)
	at org.openstreetmap.josm.io.BoundingBoxDownloader.parseOsm(BoundingBoxDownloader.java:215)
	at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.parseDataSet(DownloadOsmTask.java:469)
	at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.realRun(DownloadOsmTask.java:477)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

Attachments (1)

hs_err_pid13516.log (334.4 KB ) - added by protoxenus@… 3 years ago.
A fatal error has been detected by the Java Runtime Environment:

Download all attachments as: .zip

Change History (9)

comment:1 by taylor.smock, 3 years ago

Owner: changed from team to protoxenus@…
Status: newneedinfo
Summary: crash of JOSM without any interaction from my side while JOSM was in backgroundDataIntegrityProblemException: Primitive cannot be included in more than one Dataset

crash of JOSM without any interaction from my side while JOSM was in background

I find this unlikely. It appears you were trying to download data from OSM. The code paths that indicate the problem are generally well-tested (as in, we would have thousands of bug reports if something broke). It is possible that continuousDownload did something at the same time you were downloading data from OSM.

Can you give us some idea of what you were doing?

comment:2 by protoxenus@…, 3 years ago

As far as I remember, I had opened JOSM, edited a few things and then switched to the browser to read about the things I wanted to edit. When I wanted to switch back to JOSM, JOSM crashed.

by protoxenus@…, 3 years ago

Attachment: hs_err_pid13516.log added

A fatal error has been detected by the Java Runtime Environment:

comment:3 by protoxenus@…, 3 years ago

additional information:
I found a java crash lo on my computer

comment:4 by taylor.smock, 3 years ago

VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true]

OK. Stupid question: How did you start JOSM? The VM arguments should look something like

--module-path /usr/share/openjfx/lib --add-modules java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web --add-modules java.activation,java.se.ee -Djosm.restart=true -Djava.net.useSystemProxies=true --add-exports=java.base/sun.security.action=ALL-UNNAMED --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED

Are you using the Debian package provided by JOSM? (wiki:/Download#Ubuntu -- while Ubuntu is the officially supported distribution, it should work on Debian as well)

comment:5 by skyper, 3 years ago

Yes, the Ubuntu packages work perfectly on Debian. I am using them for years. Though, I never had a similar problem using the .jar file without additional VM arguments.
Once again I read KDE while I use Gnome and I have the openjfx package from Debian installed and no libatk-wrapper-java package as it caused problems in the past.

comment:6 by protoxenus@…, 3 years ago

JOSM was installed via discover, as explained at josm.openstreetmap.de. It is started via the icon from the start menu. I use JOSM on an other computer at Linux mint, no problems.
Btw: I have also some trouble on the same computer under Windows10. It could be that Java and/or JOSM have difficulties with the screen resolution.

comment:7 by skyper, 3 years ago

Which page are you referring to? I do not find a description mentioning discover on this site (query).
Regarding screen resolution, you can try openjdk-17 which can be installed along-side openjdk-11 on Debian.
I do not know which wrapper is called by the .desktop file (usually under /usr/share/applications/, /usr/local/share/applications/ or ~/.local/share/applications/). On my system, it is /usr/share/applications/org.openstreetmap.josm-latest.desktop and /usr/share/applications/org.openstreetmap.josm.desktop, both calling another wrapper /usr/bin/josm-latest resp. /usr/bin/josm which add the VM arguments.

comment:8 by protoxenus@…, 3 years ago

Discover is a Debian KDE software for finding and installing applications.

https://userbase.kde.org/Discover

I found /usr/share/applications/org.openstreetmap.josm.desktop and /usr/bin/josm on my computer.

contents of org.openstreetmap.josm.desktop:

[Desktop Entry]
Type=Application
Version=1.0
Name=JOSM
GenericName=Java OpenStreetMap Editor
Comment=Extensible off-line editor for OpenStreetMap (OSM)
Icon=org.openstreetmap.josm
Exec=josm %U
Terminal=false
MimeType=application/geo+json;application/gpx+xml;application/gzip;application/vnd.openstreetmap.data+xml;application/x-bzip2;application/x-gpx+xml;application/x-josm-se>
StartupNotify=true
Categories=Education;Geoscience;Maps;
StartupWMClass=org-openstreetmap-josm-MainApplication
Keywords=OpenStreetMap;OSM;

Modify Ticket

Change Properties
Set your email in Preferences
Action
as needinfo The owner will remain protoxenus@….
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from protoxenus@… to the specified user. Next status will be 'new'.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from protoxenus@… to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.