Modify

Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#23091 closed defect (fixed)

[PATCH] Opening Transport/Public Transport/Route Master preset crashes.

Reported by: Mxx Owned by: team
Priority: normal Milestone: 23.08
Component: Core Version: tested
Keywords: template_report Cc:

Description (last modified by taylor.smock)

What steps will reproduce the problem?

  1. Open a route master
  2. Click on Route Master preset
  3. Crash

What is the expected result?

To get preset settings open.

What happens instead?

Unexpected Exception pop up window appears.

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

https://i.imgur.com/rpSm99h.png

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-07-06 21:00:41 +0200 (Thu, 06 Jul 2023)
Revision:18772
Build-Date:2023-07-07 01:30:58
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18772 en) Windows 11 64-Bit
OS Build number: Windows 10 Pro 2009 (22621)
Memory Usage: 536 MB / 6136 MB (161 MB allocated, but free)
Java version: 20.0.2+10, BellSoft, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: \Display0 1920×1200 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1200
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: Cp1252
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Dataset consistency test: No problems found

Plugins:
+ ColorPlugin (v1.1.2.1)
+ CustomizePublicTransportStop (36097)
+ FastDraw (36097)
+ FixAddresses (36062)
+ buildings_tools (36097)
+ continuosDownload (1.3.4)
+ easypresets (1623509627)
+ imagery_offset_db (36079)
+ pt_assistant (2.1.15-19-g9aeec3c-SNAPSHOT)
+ public_transport (36097)
+ reverter (36066)
+ tageditor (36097)
+ todo (123)
+ turnlanes-tagging (0.0.5)
+ turnrestrictions (36097)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/BuildingPreset&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/TurnLanes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/LaneAttributes&zip=1
+ https://raw.githubusercontent.com/osmlab/name-suggestion-index/main/dist/presets/nsi-josm-presets.min.xml
+ https://github.com/simonpoole/beautified-JOSM-preset/releases/latest/download/josm.zip
+ <josm.pref>/EasyPresets.xml

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Sidewalks&zip=1
+ https://github.com/osmlab/appledata/archive/josm_paint_inline_validation.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/SimpleBuildingTags&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransportV2&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Direction&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/SidewalksAndFootways&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/ParkingLanes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1

Validator rules:
+ https://josm.openstreetmap.de/josmfile?page=Rules/OSMLint&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Rules/QAToolInspiredValidations&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Rules/SuspiciousSwimming_Pool&zip=1
+ https://github.com/Jungle-Bus/transport_mapcss/raw/gh-pages/transport.validator.zip

Last errors/warnings:
- 00024.778 W:  Protected Area: Could not get presets icon presets/boundaries.png
- 00024.863 E: Failed to locate image 'presets/greenhouse_horticulture.png'
- 00024.864 W:  Greenhouse Horticulture: Could not get presets icon presets/greenhouse_horticulture.png
- 00024.895 E: Failed to locate image 'presets/garages.png'
- 00024.896 W:  Garages: Could not get presets icon presets/garages.png
- 00024.909 E: Failed to locate image 'presets/interpolation.png'
- 00024.910 W:  Address Interpolation: Could not get presets icon presets/interpolation.png
- 00024.928 E: Failed to locate image ''
- 00024.929 W: [RELATION] Site: Could not get presets icon 
- 01040.361 E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Relation id=-111 version=0 VT]}



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (31) of main
org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Relation id=-111 version=0 VT]}
	at org.openstreetmap.josm.data.osm.OsmPrimitive.checkDataset(OsmPrimitive.java:198)
	at java.base/java.util.ArrayList.forEach(Unknown Source)
	at org.openstreetmap.josm.gui.tagging.presets.TaggingPreset.createPanel(TaggingPreset.java:450)
	at org.openstreetmap.josm.gui.tagging.presets.TaggingPreset.showDialog(TaggingPreset.java:604)
	at org.openstreetmap.josm.gui.dialogs.properties.PresetListPanel$LabelMouseAdapter.mouseClicked(PresetListPanel.java:42)
	at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
	at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
	at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.Component.processEvent(Unknown Source)
	at java.desktop/java.awt.Container.processEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Attachments (2)

Screenshot 2023-07-30 212142.png (366.5 KB ) - added by Mxx 16 months ago.
23091.patch (9.2 KB ) - added by taylor.smock 16 months ago.

Download all attachments as: .zip

Change History (8)

comment:1 by taylor.smock, 16 months ago

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

comment:2 by taylor.smock, 16 months ago

I was able to reproduce with https://osm.org/relation/16144362 .

I believe [the attached patch] will fix the problem. I'll write a test for it first though, if it isn't extraordinarily difficult.

Last edited 16 months ago by taylor.smock (previous) (diff)

comment:3 by taylor.smock, 16 months ago

Milestone: 23.08
Summary: Opening Transport/Public Transport/Route Master preset crashes.[PATCH] Opening Transport/Public Transport/Route Master preset crashes.

by taylor.smock, 16 months ago

Attachment: 23091.patch added

comment:4 by taylor.smock, 16 months ago

Description: modified (diff)

comment:5 by taylor.smock, 16 months ago

Resolution: fixed
Status: newclosed

In 18793/josm:

Fix #23091: Opening a preset from inside a relation editor causes a DataIntegrityProblemException

comment:6 by gaben, 16 months ago

See #23116 for a regression.

Modify Ticket

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