Login  Register

Dealing with 3D crash in RHEL 8.4 with mesa driver

Posted by goodwilling on Aug 28, 2023; 11:56am
URL: https://forum.jogamp.org/Dealing-with-3D-crash-in-RHEL-8-4-with-mesa-driver-tp4042917.html

Java3D is of great work. Unfortunately, all JogAmp-Java3d versions, from 1.6 to 1.7.1, crashes on RHEL 8.4 with mesa drivers (fatal error),
either using Java 11, Java 17, or Java 20.

(Crash point: getBestConfiguration)

   GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
   GraphicsConfiguration gc =
            GraphicsEnvironment.getLocalGraphicsEnvironment().
            getDefaultScreenDevice().getBestConfiguration(template);

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000000000000, pid=3896076, tid=3896362
#
# JRE version: OpenJDK Runtime Environment Zulu17.44+15-CA (17.0.8+7) (build 17.0.8+7-LTS)
# Java VM: OpenJDK 64-Bit Server VM Zulu17.44+15-CA (17.0.8+7-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libjogl_desktop.so+0x9e067]  Java_jogamp_opengl_x11_glx_GLX_dispatch_1glXSwapIntervalEXT0__JJIJ+0x3c
#
# 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 %e" (or dumping to /home/user/core.3896076)
#
# An error report file with more information is saved as:
# /home/user/hs_err_pid3896076.log
#
# If you would like to submit a bug report, please visit:
#   http://www.azul.com/support/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

(hs_err_pid3896076.log)
Internal exceptions (20 events):
Event: 6.239 Thread 0x00007fe8e002ebf0 Exception  (0x0000000080ecee30)
thrown [src/hotspot/share/interpreter/linkResolver.cpp, line 759]


(System Information)

Linux 4.18.0-305.3.1.el8.x86_64

server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
OpenGL vendor string: Mesa/X.org


The fatal error in RHEL 8.4 does not occur in other versions of RHEL 8, and RHEL 7, RHEL 9.

Similar reports in Advanced Design System 2022 Release Notes:
------------
https://edadocs.software.keysight.com/display/engdocads/ADS+2022+Release+Notes

In a vncserver session running on RHEL 8.4, you may encounter a critical error, "EMPro exited unexpectedly during execution." This is related to the graphics driver software contained in the mesa-*.x86_64.20.3.3-2.el8 packages.
Workaround: Downgrade the packages to the previous version using the following command:

sudo yum downgrade mesa-*
The packages mesa-*-20.1.4-1.el8.x86_64, and the dependent llvm package work.
------------

However, for a non-root user of a RHEL 8.4 system which is even without internet connection,
I wonder whether there is a workaround for this problem. Thank you very much.