Opened 14 months ago
Closed 14 months ago
#23723 closed defect (duplicate)
JOSM 19039 and 19096: Reproducible crashes
Reported by: | MichaelFS | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 24.06 |
Component: | Core | Version: | |
Keywords: | template_report | Cc: |
Description (last modified by )
What steps will reproduce the problem?
During start-up, JOSM claims
Missing JVM-arguments:
--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
After acceptance, JOSM is running and I can work but it crashes whenever I click Help > About or any time using a template or Template > Search.
Same behaviour, if I install the .tar.gz or run the .jar. The problem exists here since stable version 19039, same with stable 19096 and the actual nightly.
Running JOSM from konsole, after clicking Help > About these messages are shown:
# A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007ffa68ee47d0, pid=105972, tid=106040 # # JRE version: OpenJDK Runtime Environment (22.0) (build 22) # Java VM: OpenJDK 64-Bit Server VM (22, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # J 11703 c2 javax.swing.text.ParagraphView$Row.getBottomInset()S java.desktop@22 (36 bytes) @ 0x00007ffa68ee47d0 [0x00007ffa68ee4780+0x0000000000000050] # # Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to ...
Crash.log added.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2024-06-07 13:51:44 +0200 (Fri, 07 Jun 2024) Revision:19097 Build-Date:2024-06-08 01:31:16 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (19097 de) Linux Manjaro Linux Memory Usage: 280 MB / 7832 MB (94 MB allocated, but free) Java version: 22, N/A, OpenJDK 64-Bit Server VM Look and Feel: javax.swing.plaf.nimbus.NimbusLookAndFeel Screen: :0.0 1920×1080 (scaling 1.00×1.00) Maximum Screen Size: 1920×1080 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 VM arguments: [--add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, -Djosm.restart=true, -Dawt.useSystemAAFontSettings=gasp] Plugins: + buildings_tools (36226) + continuosDownload (103) + fieldpapers (v0.5.0) + reverter (36256) + terracer (36205) + undelete (36226) + utilsplugin2 (36241) Tagging presets: + https://josm.openstreetmap.de/josmfile?page=Presets/Playground_Equipment&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/Stolpersteine&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/WifiHotspots&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/public_bookcase&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/BuildingPreset&zip=1 Map paint styles: + https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1
Attachments (1)
Change History (11)
by , 14 months ago
Attachment: | hs_err_pid100259.log added |
---|
comment:1 by , 14 months ago
Description: | modified (diff) |
---|
comment:2 by , 14 months ago
comment:3 by , 14 months ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Closed as duplicate of #23681.
comment:4 by , 14 months ago
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
Thank you for quick response!
For now I switched form JAVA22 to JAVA11 by
$ "/usr/lib/jvm/java-11-openjdk/bin/java" -jar "/.../josm-tested 19096.jar"
This solves the issues with Help > About and Templates > ...
But during start-up, JOSM still claims
Missing JVM-arguments:
--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
I've seen several descriptions on this in the www with different proposals. Is there a best practice?
comment:5 by , 14 months ago
This depends on the way how you start JOSM. It seems you use a script which already sets
--add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED
It should be enough to add the requested parameters in this script.
comment:6 by , 14 months ago
Thank you @GerdP,
but I have a .desktop with this line:
Exec="/usr/lib/jvm/java-11-openjdk/bin/java" -jar ".../josm-tested 19096.jar"
How to add the requested parameters here?
comment:7 by , 14 months ago
Between Exec="/usr/lib/jvm/java-11-openjdk/bin/java"
and -jar ".../josm-tested 19096.jar"
comment:8 by , 14 months ago
Thank you @GerdP,
now I tried
Exec="/usr/lib/jvm/java-11-openjdk/bin/java" --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED -jar ".../josm-tested 19096.jar"
but the message is still the same:
Missing JVM-arguments:
--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
From here I found
Exec="/usr/lib/jvm/java-11-openjdk/bin/java" --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 -jar ".../josm-tested 19096.jar"
and the message is gone. Your opinion?
comment:9 by , 14 months ago
Yes, you have to add those three arguments.
BTW: When you install a newer JOSM binary, do you change this text as well? Or is it coming with some kind of package? If so, you may want to contact the package provider.
In JOSM.jnlp I find a much longer list of arguments:
--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.spi=ALL-UNNAMED --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED --add-exports=jdk.deploy/com.sun.deploy.config=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
comment:10 by , 14 months ago
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
Closed as duplicate of #23681.
You probably use an unstable new JRE version