Jaamsim on Linux Ubuntu 24.04: anyone successful?

51 views
Skip to first unread message

H J

unread,
Nov 7, 2025, 1:10:21 PMNov 7
to JaamSim Users Discussion Group
Jaamsim keeps crashing on Ubuntu 24.04. The cause is not in Jaamsim but in Mesa Freedesktop (in particular it crashes in latest libgallium-26.0.0-devel.so). Is anyone using Jaamsim on Linux/Ubuntu?

WILSON TRIGUEIRO DE SOUSA JÚNIOR

unread,
Nov 7, 2025, 1:21:01 PMNov 7
to JaamSim Users Discussion Group
As Harvey mentioned in the post (https://groups.google.com/g/jaamsim-users/c/sLGVl47plO4), JaamSim only started running on my Ubuntu 24 after I installed all three versions of the open-source JDK (17, 21, and 25).

Harvey Harrison

unread,
Nov 7, 2025, 1:54:15 PMNov 7
to WILSON TRIGUEIRO DE SOUSA JÚNIOR, JaamSim Users Discussion Group
If you've already got all three versions of java installed on your
machine, could you try running the latest jaamsim version with each
version and let me know which ones are successful and which are
unsuccessful?

Harvey
> --
> You received this message because you are subscribed to the Google Groups "JaamSim Users Discussion Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jaamsim-user...@googlegroups.com.
> To view this discussion, visit https://groups.google.com/d/msgid/jaamsim-users/e7cedfe6-0d3d-477d-afc3-0f325e13bbc6n%40googlegroups.com.

H J

unread,
Nov 7, 2025, 2:30:10 PMNov 7
to JaamSim Users Discussion Group
At your request I've ran the latest JaamSim with all openjdk versions (17, 21, 25). All crash on Mesa's libgallium (latest mesa 26.0.0-devel). This is the script I'm running:
```
#!/bin/bash                                                                                                                                      

LIBGL_DEBUG=verbose

mesa_version=main-c346f2b6

mesa_libdir=/opt/actryx/mesa/$mesa_version/lib/x86_64-linux-gnu
LD_LIBRARY_PATH=$mesa_libdir:$LD_LIBRARY_PATH

java_version=17
# java_version=21                                                                                                                                
# java_version=25                                                                                                                                

JAVA_HOME=/usr/lib/jvm/java-${java_version}-openjdk-amd64

logfile=hs_err_java-${java_version}_mesa-${mesa_version}.log

LIBGL_DEBUG=$LIBGL_DEBUG \
JAVA_HOME=$JAVA_HOME \
LD_LIBRARY_PATH=$LD_LIBRARY_PATH \
$JAVA_HOME/bin/java --enable-native-access=ALL-UNNAMED \
     -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 \
     -Djava.awt.robot.singleThread=true \
     -XX:ActiveProcessorCount=1 \
     -XX:ErrorFile=$logfile \
     -jar jaamsim/build/jars/JaamSim2025-09.jar
```
I can send you the (rather verbose) java log files if you need them.

Thanks for your help!

Harvey Harrison

unread,
Nov 7, 2025, 2:39:21 PMNov 7
to H J, JaamSim Users Discussion Group
It would be more interesting (but likely not any different) with the
following (remove all the other workaround pieces, I'd rather have the
raw errors from the default way of running it).

$JAVA_HOME/bin/java
-XX:ErrorFile=$logfile \
-jar jaamsim/build/jars/JaamSim2025-09.jar

The enable native access flag should not be needed at all as that was
the purpose of the 2025-09 release. You can send me the error files
directly, I anticipate they are failing in the same way, but let's
find out!

Cheers

Harvey
> To view this discussion, visit https://groups.google.com/d/msgid/jaamsim-users/a4ac56c9-2b56-4547-baa4-502299a05fc0n%40googlegroups.com.

H J

unread,
Nov 7, 2025, 6:00:14 PMNov 7
to JaamSim Users Discussion Group
OK, running (as you said) with script:
```
#!/bin/bash


java_version=17
# java_version=21
# java_version=25

JAVA_HOME=/usr/lib/jvm/java-${java_version}-openjdk-amd64

logfile=hs_err_java-${java_version}.log


$JAVA_HOME/bin/java \
  -XX:ErrorFile=$logfile \
  -jar jaamsim/build/jars/JaamSim2025-09.jar
```

Here is the stderr output with respective java versions:

Java 17:
```
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xfffffffffffff000, pid=172280, tid=172339
#
# JRE version: OpenJDK Runtime Environment (17.0.16+8) (build 17.0.16+8-Ubuntu-0ubuntu124.04.1)
# Java VM: OpenJDK 64-Bit Server VM (17.0.16+8-Ubuntu-0ubuntu124.04.1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libgallium-25.0.0-devel.so+0xc6471a]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E" (or dumping to /home/hjansen/workspace/Actryx/projects/internal/AxSim/repo/core.172280)
#
# An error report file with more information is saved as:
# hs_err_java-17.log
[thread 172485 also had an error]
#
# If you would like to submit a bug report, please visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-17
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
./run-1.sh: line 13: 172280 Aborted                 (core dumped) $JAVA_HOME/bin/java -XX:ErrorFile=$logfile -jar jaamsim/build/jars/JaamSim2025-09.jar
```

Java 21:
```
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000748da41ce4b0, pid=172804, tid=172861
#
# JRE version: OpenJDK Runtime Environment (21.0.8+9) (build 21.0.8+9-Ubuntu-0ubuntu124.04.1)
# Java VM: OpenJDK 64-Bit Server VM (21.0.8+9-Ubuntu-0ubuntu124.04.1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  0x0000748da41ce4b0
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E" (or dumping to /home/hjansen/workspace/Actryx/projects/internal/AxSim/repo/core.172804)
#
# An error report file with more information is saved as:
# hs_err_java-21.log
[8.459s][warning][os] Loading hsdis library failed
[thread 172994 also had an error]
#
# If you would like to submit a bug report, please visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-21
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
```

Java 25:
```
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xffffffffffffffff, pid=173130, tid=173194
#
# JRE version: OpenJDK Runtime Environment (25.0+36) (build 25+36-Ubuntu-124.04.2)
# Java VM: OpenJDK 64-Bit Server VM (25+36-Ubuntu-124.04.2, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libgallium-25.0.0-devel.so+0xc6471a]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E" (or dumping to /home/hjansen/workspace/Actryx/projects/internal/AxSim/repo/core.173130)
#
# An error report file with more information is saved as:
# hs_err_java-25.log
[9.767s][warning][os] Loading hsdis library failed
[thread 173339 also had an error]
#
# If you would like to submit a bug report, please visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-25
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
```

Java 17 and 25 crash on `libgallium-25.0.0-devel.so` (a Mesa3D lib), Java 21 crashes differently': the first part of its `hs_err_java-21.log` reads:
```
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000748da41ce4b0, pid=172804, tid=172861
#
# JRE version: OpenJDK Runtime Environment (21.0.8+9) (build 21.0.8+9-Ubuntu-0ubuntu124.04.1)
# Java VM: OpenJDK 64-Bit Server VM (21.0.8+9-Ubuntu-0ubuntu124.04.1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  0x0000748da41ce4b0
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E" (or dumping to /home/hjansen/workspace/Actryx/projects/internal/AxSim/repo/core.172804)
#
# If you would like to submit a bug report, please visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-21
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line: -XX:ErrorFile=hs_err_java-21.log jaamsim/build/jars/JaamSim2025-09.jar

Host: AMD Ryzen 9 9955HX 16-Core Processor, 32 cores, 91G, Ubuntu 24.04.3 LTS
Time: Fri Nov  7 22:51:11 2025 GMT elapsed time: 8.458426 seconds (0d 0h 0m 8s)

---------------  T H R E A D  ---------------

Current thread (0x0000748fcc55faf0):  JavaThread "RenderThread"        [_thread_in_native, id=172861, stack(0x0000748f3c12e000,0x0000748f3c22e000) (1024K)]

Stack: [0x0000748f3c12e000,0x0000748f3c22e000],  sp=0x0000748f3c22ba78,  free space=1014k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x0000748da41ce4b0
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 4501  jogamp.opengl.gl4.GL4bcImpl.dispatch_glGetError1(J)I (0 bytes) @ 0x0000748fbc616270 [0x0000748fbc616220+0x0000000000000050]
J 6603 c2 jogamp.opengl.gl4.GL4bcImpl.glGetError()I (43 bytes) @ 0x0000748fbc7a2cf0 [0x0000748fbc7a2ca0+0x0000000000000050]
J 5483 c1 com.jogamp.opengl.DebugGL4bc.glDrawArrays(III)V (68 bytes) @ 0x0000748fb52d1e7c [0x0000748fb52d1bc0+0x00000000000002bc]
j  com.jaamsim.render.Skybox.render(ILcom/jaamsim/render/Renderer;Lcom/jaamsim/render/Camera;)V+219
j  com.jaamsim.render.Renderer.renderScene(Lcom/jogamp/opengl/GLContext;ILjava/util/List;Ljava/util/List;Lcom/jaamsim/render/Camera;IILcom/jaamsim/math/Ray;ILcom/jaamsim/render/Renderer$PerfInfo;)V+378
j  com.jaamsim.render.Renderer.access$1400(Lcom/jaamsim/render/Renderer;Lcom/jogamp/opengl/GLContext;ILjava/util/List;Ljava/util/List;Lcom/jaamsim/render/Camera;IILcom/jaamsim/math/Ray;ILcom/jaamsim/render/Renderer$PerfInfo;)V+18
j  com.jaamsim.render.Renderer$RenderGLListener.display(Lcom/jogamp/opengl/GLAutoDrawable;)V+213
j  jogamp.opengl.GLDrawableHelper.displayImpl(Lcom/jogamp/opengl/GLAutoDrawable;)V+62
j  jogamp.opengl.GLDrawableHelper.display(Lcom/jogamp/opengl/GLAutoDrawable;)V+2
j  jogamp.opengl.GLAutoDrawableBase$2.run()V+59
j  jogamp.opengl.GLDrawableHelper.invokeGLImpl(Lcom/jogamp/opengl/GLDrawable;Lcom/jogamp/opengl/GLContext;Ljava/lang/Runnable;Ljava/lang/Runnable;)V+205
j  jogamp.opengl.GLDrawableHelper.invokeGL(Lcom/jogamp/opengl/GLDrawable;Lcom/jogamp/opengl/GLContext;Ljava/lang/Runnable;Ljava/lang/Runnable;)V+75
j  com.jogamp.newt.opengl.GLWindow.display()V+90
j  com.jaamsim.render.Renderer.mainRenderLoop()V+1060
j  com.jaamsim.render.Renderer.access$000(Lcom/jaamsim/render/Renderer;)V+1
j  com.jaamsim.render.Renderer$1.run()V+4
j  java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 java...@21.0.8
j  java.lang.Thread.run()V+19 java...@21.0.8
v  ~StubRoutines::call_stub 0x0000748fbbc17cc6

siginfo: si_signo: 11 (SIGSEGV), si_code: 2 (SEGV_ACCERR), si_addr: 0x0000748da41ce4b0

Registers:
....
```
I hope this helps.



Cristiano Silva

unread,
Nov 9, 2025, 5:24:09 PMNov 9
to H J, JaamSim Users Discussion Group
I use Linux (currently Debian 13) and I use JaamSim on it.

I use the openjdk 25.0.1 2025-10-21

I am running it with this command:

java --enable-native-access=ALL-UNNAMED      -Djava.util.concurrent.ForkJoinPool.common.parallelism=1      -Djava.awt.robot.singleThread=true      -XX:ActiveProcessorCount=1      -jar JaamSim2025-09.jar

Atenciosamente,
Cristiano Luís Turbino de França e Silva
==============================
                      GNU / Linux
    ,                ,       /       .-.
   /                  \     /      (e e)
  ((__-^^-,-^^-__))   /     _.`V'._
    `-_---' `---_-'      /    //~~W~~\\
  <__|o ` 'o|__>   /    //,           ,\\
        \   `  /       /    // |            | \\
         ):  :(      /      \) |            | (/
        :o_o:    /           \           /
          "-"    /              `w -  w'


On Fri, Nov 7, 2025 at 3:10 PM H J <hjans...@gmail.com> wrote:
Jaamsim keeps crashing on Ubuntu 24.04. The cause is not in Jaamsim but in Mesa Freedesktop (in particular it crashes in latest libgallium-26.0.0-devel.so). Is anyone using Jaamsim on Linux/Ubuntu?

--
You received this message because you are subscribed to the Google Groups "JaamSim Users Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jaamsim-user...@googlegroups.com.

H J

unread,
Nov 10, 2025, 5:37:17 PMNov 10
to Cristiano Silva, JaamSim Users Discussion Group
I tried opening an example running with java-25 and your args:

java -XX:ErrorFile=hs_err_java-25_mesa-main-c346f2b6.log --enable-native-access=ALL-UNNAMED -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -Djava.awt.robot.singleThread=true -XX:ActiveProcessorCount=1 /home/hjansen/workspace/Actryx/projects/internal/AxSim/jaamsim/JaamSim2025-09.jar

Still crashes on `libgallium` 
"""
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000100010001, pid=744698, tid=744718

#
# JRE version: OpenJDK Runtime Environment (25.0+36) (build 25+36-Ubuntu-124.04.2)
# Java VM: OpenJDK 64-Bit Server VM (25+36-Ubuntu-124.04.2, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, serial gc, linux-amd64)
# Problematic frame:
# C  [libgallium-26.0.0-devel.so+0xb60a7a]  vi_dcc_formats_are_incompatible+0x4a
...
"""
I have filed a bug report with Mesa3D.

If anyone has success running JaamSim on an Ubuntu 24.04.3 machine, please let me know!

Cristiano Silva

unread,
Nov 10, 2025, 6:16:22 PMNov 10
to H J, JaamSim Users Discussion Group
Have you ever run another version of Linux?

Atenciosamente,
Cristiano Luís Turbino de França e Silva
==============================
                      GNU / Linux
    ,                ,       /       .-.
   /                  \     /      (e e)
  ((__-^^-,-^^-__))   /     _.`V'._
    `-_---' `---_-'      /    //~~W~~\\
  <__|o ` 'o|__>   /    //,           ,\\
        \   `  /       /    // |            | \\
         ):  :(      /      \) |            | (/
        :o_o:    /           \           /
          "-"    /              `w -  w'

H J

unread,
Nov 10, 2025, 7:05:40 PMNov 10
to Cristiano Silva, JaamSim Users Discussion Group
>> Have you ever run another version of Linux?

For work I have to stay with LTS; installing an rpm-based Linux version just for trying out, is a bit much ... (I won't switch to rpm anyway). 

As said, I have filed a bug report with Mesa3D and told them they can run JaamSim on Ubuntu 24.04.3 and see for themselves where `libgallium` crashes (which it does even with their latest 26.0.0-devel version).

H J

unread,
Nov 11, 2025, 6:55:17 AMNov 11
to Cristiano Silva, JaamSim Users Discussion Group
There is progress but no resolution yet. This is the current situation: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14246#note_3186910

The Mesa dev team suspects there may be some kind of buffer overrun, or race condition going on...

As said, with latest Mesa3D dev branch (26.0.0-devel) and LIBGL_ALWAYS_SOFTWARE=1 things are better, but still unstable.

H J

unread,
Nov 13, 2025, 6:05:07 AMNov 13
to JaamSim Users Discussion Group
The Mesa developers think this may be the cause of Jaamsim crashing (https://gitlab.freedesktop.org/mesa/mesa/-/issues/14246#note_3190454) on Ubuntu 24.04.3 (notice it crashes even at some point when switching workspaces; that is with a Jaamsim model loaded, but without any Jaamsim interaction, just switching workspace):
"""
The crash happens in Mesa. My concern is that the app might be doing unsafe threading and/or memory handling with its OpenGL calls. Given its a java app tracking this down is a little harder, for example we can't make use of valgrinds memtool to easily find memory issues. The rendering code is here https://github.com/jaamsim/jaamsim/tree/master/src/main/java/com/jaamsim/render if someone has the time to investigated properly.

H J

unread,
Nov 17, 2025, 10:04:18 AM (13 days ago) Nov 17
to JaamSim Users Discussion Group
I can confirm that JaamSim runs perfectly on Ubuntu 24.04.3 on an (older) Dell Precision M6800 (Intel CPU) with Intel Haswell GT2 integrated GPU (hsw gt2). Therefore, the problem is likely Mesa3D's troublesome support for AMD's integrated Radeon GPU.

H J

unread,
Nov 19, 2025, 6:25:22 AM (11 days ago) Nov 19
to JaamSim Users Discussion Group

FYI:

JaamSim runs fine on AMD machine with Ubuntu 24.04.3 when all graphics is handled by NVIDIA RTX 3060 GPU (this requires the following environment varialbles to be set:

__GLX_VENDOR_LIBRARY_NAME=nvidia

__NV_PRIME_RENDER_OFFLOAD=1

).

Again, this supports the suspicion that Mesa3D doesn't support AMD's inbuilt Radeon Graphics properly.

-- Henk

H J

unread,
Nov 19, 2025, 6:10:29 PM (11 days ago) Nov 19
to JaamSim Users Discussion Group
Dear JaamSim dev team:

FYI: Mesa dev says that "Unfortunately no the JaamSim team did not correctly identify the problem." 

Now that I'm offloading the JaamSim graphics to an NVIDIA RTX 3060 card (it needed some envvars set), it works smashingly (no crashing). 
Thanks for the great simulation tool!

(I'm happy to help with further testing  on AMD Radeon hardware if needed.)

-- Henk 
Reply all
Reply to author
Forward
0 new messages