Opened 14 months ago
Closed 14 months ago
#23962 closed defect (othersoftware)
JOSM crash when taginfo is invoked with a tag value containing the "/" character
| Reported by: | GOwin | Owned by: | GOwin |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | template_report javabug | Cc: |
Description
What steps will reproduce the problem?
- Select an object with a KVP containing "/" (e.g. addr:unit=9/Z)
- Right click on the item from the Tags/Membership window and select TagInfo option from the context menu
What is the expected result?
A browser page opens the selected Taginfo instance for the matching KVP.
What happens instead?
JOSM crashes
Please provide any additional information below. Attach a screenshot if possible.
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2024-10-01 13:50:10 +0200 (Tue, 01 Oct 2024)
Revision:19230
Build-Date:2024-10-02 01:30:34
URL:https://josm.openstreetmap.de/svn/trunk
Identification: JOSM/1.5 (19230 en) Linux Pop!_OS 22.04 LTS
Memory Usage: 800 MB / 11648 MB (185 MB allocated, but free)
Java version: 17.0.12+7-Ubuntu-1ubuntu222.04, Ubuntu, OpenJDK 64-Bit Server VM
Look and Feel: com.formdev.flatlaf.FlatLightLaf
Screen: :0.0 3440x1440x[Multi depth]@60Hz (scaling 1.00×1.00)
Maximum Screen Size: 3440×1440
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_US.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: XFCE
Java package: openjdk-17-jre:amd64-17.0.12+7-1ubuntu2~22.04
fonts-noto: fonts-noto:all-20201225-1build1
VM arguments: [--module-path=/usr/share/openjfx/lib, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, -Djosm.restart=true, -Djava.net.useSystemProxies=true, -XX:MaxRAMPercentage=75.0, --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]
Dataset consistency test: No problems found
Plugins:
+ ImageIO (36180)
+ ImportImagePlugin (36184)
+ ImproveWay (32)
+ Mapillary (1778)
+ OpeningHoursEditor (36344)
+ apache-commons (36282)
+ apache-http (36273)
+ buildings_tools (36344)
+ comfort0 (36344)
+ contourmerge (v0.2.1)
+ easypresets (1623509627)
+ ejml (36176)
+ flatlaf (36176)
+ geotools (36273)
+ graphview (36344)
+ imagery_offset_db (36344)
+ jackson (36273)
+ jaxb (36118)
+ jna (36273)
+ jts (36004)
+ mapwithai (829)
+ mbtiles (v2.6.1)
+ measurement (36344)
+ opendata (36343)
+ photo_geotagging (36343)
+ pmtiles (36219)
+ reverter (36343)
+ shrinkwrap (v1.1.3)
+ tageditor (36344)
+ terracer (36344)
+ todo (139)
+ turnlanes-tagging (1727811971)
+ turnrestrictions (36344)
+ utilsplugin2 (36344)
+ waydownloader (36344)
Tagging presets:
+ <josm.userdata>/EasyPresets.xml
+ https://raw.githubusercontent.com/osmlab/name-suggestion-index/main/dist/presets/nsi-josm-presets.min.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/PhilippinesAddresses&zip=1
Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/SidewalksPlus&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lit&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/NewHighwayColors&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/CyclewaysStylingBNA&zip=1
+ ${HOME}/Downloads/JOSM Paint Style/post_office_v2.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1
- https://raw.githubusercontent.com/KaartGroup/Kaart-Styles/master/Kaart-Styles.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Noname&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Waterways&zip
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_features&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/MapillaryDetections&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/LessObtrusiveNodes&zip=1
- https://raw.githubusercontent.com/KaartGroup/Kaart-Styles/master/Kaart-Styles.mapcss
Validator rules:
- https://raw.githubusercontent.com/KaartGroup/KaartValidator/master/kaart.durazno.validator.mapcss
Last errors/warnings:
- 00009.333 E: Failed to locate image 'PHadrr.png'
- 00009.335 W: null: Could not get presets icon PHadrr.png
- 00009.337 E: Failed to locate image 'icons/_neu.png'
- 00009.338 W: null: Could not get presets icon icons/_neu.png
- 00016.194 E: Failed to locate image 'icons/_neu.png'
- 00016.194 W: null: Could not get presets icon icons/_neu.png
- 00016.228 E: Failed to locate image 'icons/_neu.png'
- 00016.229 W: PSA tags: Could not get presets icon icons/_neu.png
Attachments (0)
Change History (5)
comment:1 by , 14 months ago
| Owner: | changed from to |
|---|---|
| Status: | new → needinfo |
comment:2 by , 14 months ago
How do I generate a stacktrace?
After selecting the taginfo option, JOSM crashes. It hangs for several seconds and then exits without any warning.
I can repeatedly trigger this behavior with any tag key, as long as the value contains the "/" character.
comment:3 by , 14 months ago
Normally you get it displayed. JOSM stopping to work is a very seldom occurrence. The described behavior is really strange. Sounds either like a Java error or some issue with the desktop environment (i.e. the URL handling).
When you start JOSM on the commandline do you get any helpful output or a crash file or something alike?
Can you try updating to another (newer) java version?
comment:4 by , 14 months ago
I'm running openjdk 17.0.12, from 2024-07-16.
Running JOSM from the command line, and doing the above steps to trigger the behavior, the following messages from the console seems to be relevant
---snip--- 2024-10-11 11:22:28.779 INFO: Opening URL: https://taginfo.openstreetmap.org/tags/addr%3Astreet=Street1%2FStreet2 # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x000070b6b934dbb0, pid=12234, tid=12282 # # JRE version: OpenJDK Runtime Environment (17.0.12+7) (build 17.0.12+7-Ubuntu-1ubuntu222.04) # Java VM: OpenJDK 64-Bit Server VM (17.0.12+7-Ubuntu-1ubuntu222.04, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # C [libglib-2.0.so.0+0x85bb0] g_utf8_validate+0x10 #
So, you may be right that this isn't a JOSM issue.
comment:5 by , 14 months ago
| Keywords: | javabug added |
|---|---|
| Resolution: | → othersoftware |
| Status: | needinfo → closed |
That's a java bug or a bug of java in cooperation with your OS (specific the glib, a central library of the OS). I'd suggest to upgrade either OS or java or both and it's very likely the bug will vanish. There is nothing we can do about this.



Doesn't happen here. It tries to open the missing page https://taginfo.openstreetmap.org/tags/addr%3Aunit=9%2FZ
Your report misses a crash stacktrace. Please add this or in case there is no stacktrace explain what you mean with "crashes".