Thanks, Jeff!
It looks like your new script.sh still does not work for our environment. I had to also add -nodisplay option to let it work.
While this solution still will crash when I click “Add more apps” menu item:
(xfsettingsd:784674): xfsettingsd-WARNING **: 10:57:08.227: Failed to get the _NET_NUMBER_OF_DESKTOPS property.
Fontconfig warning: “/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf”, line 6: unknown element “reset-dirs”
Setting VNC password…
Generating connection YAML file…
Nativewindow X11 IOError: Display 0x15526c282f80 (:1): Resource temporarily unavailable
Nativewindow X11 IOError: Display 0x15526c282f80 (:1): Resource temporarily unavailable
Opening log file: /xxxxxxx/java.log.63785
MATLAB: javainit.cpp:1458: void {anonymous}::mwJavaAbort(): Assertion `Fatal Java Exception. See this file for details: /xxxxxxxx/hs_error_pid63785.log’ failed.
qt.qpa.xcb: could not connect to display :1
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: linuxfb, minimal, offscreen, vnc, webgl, xcb.
Assertion detected at 2025-02-03 10:57:33 -0500
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
GNU C Library : 2.34 stable
Graphics Driver : Brian Paul Mesa X11 Version 2.1 Mesa 17.1.3
Graphics card 1 : 0x102b ( 0x102b ) 0x538 Version 0.0.0.0 (0-0-0)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : 1986215
MATLAB Root : /software/MatLab2023a
MATLAB Version : 9.14.0.2286388 (R2023a) Update 3
OpenGL : hardware
Operating System : Linux 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 31 14:01:51 UTC 2024 x86_64
Process ID : 784681
Processor ID : x86 Family 25 Model 1 Stepping 1, AuthenticAMD
Session Key : 1e26951a-73d6-4b45-a92e-025970d8b488
Window System : The X.Org Foundation (11906000), display :1
Fault Count: 1
Additional Log Files:
Java Crash Report : /xxxxxxx/hs_error_pid63785.log
Java Log : /xxxxxx/java.log.63785
Assertion in void {anonymous}::mwJavaAbort() at javainit.cpp line 1458:
Fatal Java Exception. See this file for details: /xxxxxxxx/hs_error_pid63785.log
Current Thread: ‘MCR 0 interpret’ id 23447840400960
Register State (captured):
RAX = 0000000000000000 RBX = 0000155532c987e8
RCX = 0000000000000000 RDX = 000015555545eec0
RSP = 0000155360328530 RBP = 0000155360328910
RSI = 0000155555445705 RDI = 0000155360328540
R8 = 0000000000000000 R9 = 0000155360328820
R10 = 0000000000000000 R11 = 0000000000000000
R12 = 00001555554652c8 R13 = 0000155555475348
R14 = 0000155532c9b566 R15 = 00001553603291f0
RIP = 00001555553f2d9f EFL = 0000000000000000
CS = 0000 FS = 0000 GS = 0000
Stack Trace (captured):
[ 0] 0x00001555553ec0e3 /gpfs/software/MatLab2023a/bin/glnxa64/libmwfl.so+00319715
[ 1] 0x00001555553ec2dc /gpfs/software/MatLab2023a/bin/glnxa64/libmwfl.so+00320220 _ZN10foundation4core4diag15stacktrace_base7captureEm+00000028
[ 2] 0x00001555553f11a1 /gpfs/software/MatLab2023a/bin/glnxa64/libmwfl.so+00340385
[ 3] 0x00001555553f1260 /gpfs/software/MatLab2023a/bin/glnxa64/libmwfl.so+00340576
[ 4] 0x0000155532c1d52a /gpfs/software/MatLab2023a/bin/glnxa64/matlab_startup_plugins/jmi/…/…/…/…/bin/glnxa64/libmwjmi.so+01520938
[ 5] 0x0000155419d1e700 /gpfs/software/MatLab2023a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+09496320
[ 6] 0x0000155419ad573b /gpfs/software/MatLab2023a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+07100219
[ 7] 0x00001552dc139b77 /gpfs/software/MatLab2023a/bin/glnxa64/libnativewindow_x11.so+00011127 NativewindowCommon_FatalError+00000268
[ 8] 0x00001552dc13a8bd /gpfs/software/MatLab2023a/bin/glnxa64/libnativewindow_x11.so+00014525
[ 9] 0x000015554cb61f9f /gpfs/software/MatLab2023a/bin/glnxa64/libX11.so.6+00278431 _XIOError+00000095
[ 10] 0x000015554cb5f8f5 /gpfs/software/MatLab2023a/bin/glnxa64/libX11.so.6+00268533 _XEventsQueued+00000149
[ 11] 0x000015554cb517bb /gpfs/software/MatLab2023a/bin/glnxa64/libX11.so.6+00210875 XEventsQueued+00000075
[ 12] 0x00001552fde49a4d +00000000
[ 13] 0x00001552fd007d20 +00000000
[ 14] 0x00001552fd0082dd +00000000
[ 15] 0x00001552fd008322 +00000000
[ 16] 0x00001552fd0007cb +00000000
[ 17] 0x0000155419a9839b /gpfs/software/MatLab2023a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06849435
[ 18] 0x0000155419a95c63 /gpfs/software/MatLab2023a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06839395
[ 19] 0x0000155419a96227 /gpfs/software/MatLab2023a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06840871
[ 20] 0x0000155419b0239c /gpfs/software/MatLab2023a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+07283612
[ 21] 0x0000155419e8b9eb /gpfs/software/MatLab2023a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+10992107
[ 22] 0x0000155419e8bcf1 /gpfs/software/MatLab2023a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+10992881
[ 23] 0x0000155419d1d8c2 /gpfs/software/MatLab2023a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+09492674
[ 24] 0x000015555424ac02 /lib64/libc.so.6+00564226
[ 25] 0x00001555542cfc40 /lib64/libc.so.6+01109056
** This crash report has been saved to disk as /xxxxxxxxxx/matlab_crash_dump.784681-1 **
MATLAB is exiting because of fatal error
/xxxxxxondemand/data/sys/dashboard/batch_connect/dev/bc_matlab/output/8c6db487-b068-4549-b0c1-0bce279b5637/script.sh: line 47: 784681 Killed matlab -nodisplay -desktop
Cleaning up…
Killing Xvnc process ID 784639
Xvnc process ID 784639 already killed