Modify

Opened 2 years ago

Last modified 2 years ago

#22028 needinfo defect

Relation with external id 'XXX' refers to a missing primitive with external id 'YYY'

Reported by: sano Owned by: sano
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report Cc:

Description

When trying to load a saved JOSM session I see:

Could not read file 'session.osm'. Error is: Relation with external id '918129' refers to a missing primitive with external id '-104002'.

What steps will reproduce the problem?

  1. Send a completed work in JOSM to the OSM db
  2. resolve conflicts reported by JOSM
  3. save the JOSM session to a file

What is the expected result?

Load the saved session to JOSM a continue editing, or submit to the OSM db

What happens instead?

When loading the saved session I receive the error shown above

Please provide any additional information below. Attach a screenshot if possible.

Revision:18427
Build-Date:2022-04-05 19:28:31

Identification: JOSM/1.5 (18427 en) Mac OS X 10.14.6
OS Build number: Mac OS X 10.14.6 (18G9216)
Memory Usage: 400 MB / 2048 MB (201 MB allocated, but free)
Java version: 17.0.2+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 69731904 1440×900 (scaling 2.00×2.00)
Maximum Screen Size: 1440×900
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_SK
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=18427, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=/Applications/GPS/JOSM.app/Contents/MacOS/JOSM]

Plugins:
+ DirectDownload (35951)
+ DirectUpload (35951)
+ FastDraw (35893)
+ PicLayer (1.0.2)
+ RovasConnector (0.1.0)
+ apache-commons (35924)
+ apache-http (35924)
+ buildings_tools (35951)
+ editgpx (35931)
+ ejml (35924)
+ geotools (35956)
+ importvec (35893)
+ jaxb (35952)
+ jna (35924)
+ jts (35924)
+ log4j (35924)
+ opendata (35910)
+ reverter (35893)
+ shrinkwrap (v1.0.4)
+ undelete (35893)
+ utilsplugin2 (35951)
+ wikipedia (605)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/Freemap&zip=1

Map paint styles:
+ ${HOME}/Downloads/conscriptionnumbers_v2.mapcss

Validator rules:
+ https://josm.openstreetmap.de/josmfile?page=Rules/CzechRepublicAddressSystem&zip=1

Last errors/warnings:
- 00008.007 W: Not a single layer for the name 'GKU-NLC': []
- 00008.007 W: Not a single layer for the name 'zbgisws Ortofoto': []
- 00008.008 W: Not a single layer for the name 'zbgisws Ortofoto': []
- 00008.008 W: Not a single layer for the name 'GKU-NLC': []
- 00008.008 W: Not a single layer for the name 'GKU-NLC': []
- 00008.009 W: Not a single layer for the name 'GKU-NLC': []
- 00008.009 W: Not a single layer for the name 'GKU-NLC': []
- 00008.009 W: Not a single layer for the name 'GKU-NLC': []
- 00025.196 E: org.openstreetmap.josm.io.IllegalDataException: Relation with external id '918129' refers to a missing primitive with external id '-104002'.
- 00025.248 E: Error - <html>Could not read file 'session.osm'.<br>Error is:<br>Relation with external id '918129' refers to a missing primitive with external id '-104002'.</html>

Attachments (1)

session.zip (551.4 KB ) - added by sano 2 years ago.
zipped session data

Download all attachments as: .zip

Change History (3)

by sano, 2 years ago

Attachment: session.zip added

zipped session data

comment:1 by taylor.smock, 2 years ago

Ticket #22029 has been marked as a duplicate of this ticket.

comment:2 by taylor.smock, 2 years ago

Owner: changed from team to sano
Status: newneedinfo

One of the plugins that you have installed added or modified data on the saved layer, and did not include all the new primitives. I don't know how to fix this without better steps to reproduce.

Example:

  1. Start JOSM
  2. Using plugin Foo, do Bar
  3. Save file
  4. Open file
  5. Crash

Modify Ticket

Change Properties
Set your email in Preferences
Action
as needinfo The owner will remain sano.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from sano 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 sano 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.