Hello Mr. Dr. Harry King and Mr. Harvey Harrison.
After updating my computer to Debian 13, I started experiencing some problems with JaamSim.
Debian 13 has OpenJDK 21 and OpenJDK 25 in its repository.
I encountered this problem with both: OpenJDK 21 and OpenJDK 25.
With OpenJDK 17, I didn't encounter this problem; it has been working normally.
However, I would like to use JaamSim with OpenJDK 21 or OpenJDK 25.
While researching, I found the following information:
Why OpenJDK 17 works better:
- More Permissive Security Model: Still has partial support for the old model;
- JOGL Compatibility: It was tested and developed for JDK 8-17;
- Gradual Transition: Restrictions were less rigorous;
Possible Permanent Solutions:
- Update JOGL dependencies to versions compatible with JDK 21+;
- Use --enable-native-access in the launch script;
- Modularize the application to declare native dependencies;
- Migrate to modern alternatives like LWJGL3;
The "WARNING" about restricted methods masks a deeper problem: when the native library is not fully loaded, any subsequent graphics operation attempts to access uninitialized memory, causing a SIGSEGV.
- More secure and restrictive Java
- Outdated legacy libraries
- Access to native resources without explicit permissions
Update JaamSim to JDK 21+.
I don't know if this information I found online solves the problem I started encountering with OpenJDK 21 onwards; I only sent it for your analysis.
Thank you very much!
The log file that is generated is empty, with 0kb. Below is the error that is returned (in the terminal) when I try to open a file and JaamSim closes abruptly.
$ java -jar JaamSim2025-08.jar
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by com.jogamp.common.jvm.JNILibLoaderBase in an unnamed module (file:/home/cristianoltfs/Downloads/JaamSim2025-08.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f51400505d0, pid=19051, tid=19208
#
# JRE version: OpenJDK Runtime Environment (25.0.1+8) (build 25.0.1+8-Debian-1deb13u1)
# Java VM: OpenJDK 64-Bit Server VM (25.0.1+8-Debian-1deb13u1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C 0x00007f51400505d0
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/cristianoltfs/Downloads/hs_err_pid19051.log
#
# If you would like to submit a bug report, please visit:
#
https://bugs.debian.org/openjdk-25#
Abortado