Hello,
I’m having issues with the matlab app.
This is xfce on Rocky 9 and Matlab R2021b
Similar to Matlab window problem
The matlab app works fine in the XFCE remote desktop app.
The output of the session says that it is lost connection to the VNC session (seems to have closed)
Setting VNC password...
Starting VNC server...
Desktop 'TurboVNC: aoraki13:2 (csstu01)' started on display aoraki13:2
Log file is vnc.log
Successfully started VNC server on aoraki13:5902...
Script starting...
Starting websocket server...
+ matlab -desktop
The system default contains no modules
(env var: LMOD_SYSTEM_DEFAULT_MODULES is empty)
No changes in loaded modules
WebSocket server settings:
- Listen on :35554
- No SSL/TLS support (no cert file)
- Backgrounding (daemon)
Scanning VNC log file for user authentications...
Generating connection YAML file...
(xfwm4:62974): GLib-CRITICAL **: 15:11:10.537: g_str_has_prefix: assertion 'prefix != NULL' failed
MATLAB is selecting SOFTWARE OPENGL rendering.
Setting VNC password...
Generating connection YAML file...
Terminated
Cleaning up...
Killing Xvnc process ID 62909
xsetroot: unable to open display ':2'
(xfsettingsd:64099): xfsettingsd-ERROR **: 15:11:23.882: Unable to open display.
xfce4-panel: Cannot open display: .
Type "xfce4-panel --help" for usage.
and on the node to which the session is sent I get some dbus and fusermount permissions errors
Jun 23 15:11:08 aoraki13 systemd[1]: Started User Manager for UID 40005987.
Jun 23 15:11:08 aoraki13 systemd[1]: Started Session c4 of User csstu01.
Jun 23 15:11:08 aoraki13 systemd[1]: Starting Hostname Service...
Jun 23 15:11:08 aoraki13 systemd[1]: Started Hostname Service.
Jun 23 15:11:09 aoraki13 slurmd[3168]: slurmd: Launching batch job 29058 for UID 40005987
Jun 23 15:11:09 aoraki13 systemd[1]: session-c4.scope: Deactivated successfully.
Jun 23 15:11:10 aoraki13 dbus-daemon[62970]: [session uid=40005987 pid=62964] Activating service name='org.a11y.Bus' requested by ':1.0' (uid=40005987 pid=62974 comm="xfwm4 --compositor=off --sm-client-disable " label="kernel")
Jun 23 15:11:10 aoraki13 dbus-daemon[62970]: [session uid=40005987 pid=62964] Successfully activated service 'org.a11y.Bus'
Jun 23 15:11:10 aoraki13 dbus-daemon[62970]: [session uid=40005987 pid=62964] Activating service name='org.gtk.vfs.Daemon' requested by ':1.2' (uid=40005987 pid=62974 comm="xfwm4 --compositor=off --sm-client-disable " label="kernel")
Jun 23 15:11:10 aoraki13 dbus-daemon[62970]: [session uid=40005987 pid=62964] Successfully activated service 'org.gtk.vfs.Daemon'
Jun 23 15:11:10 aoraki13 org.a11y.Bus[63046]: dbus-daemon[63046]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=40005987 pid=62974 comm="xfwm4 --compositor=off --sm-client-disable " label="kernel")
Jun 23 15:11:10 aoraki13 dbus-daemon[62970]: [session uid=40005987 pid=62964] Activating service name='org.xfce.Xfconf' requested by ':1.2' (uid=40005987 pid=62974 comm="xfwm4 --compositor=off --sm-client-disable " label="kernel")
Jun 23 15:11:10 aoraki13 org.a11y.Bus[63046]: dbus-daemon[63046]: Successfully activated service 'org.a11y.atspi.Registry'
Jun 23 15:11:10 aoraki13 org.a11y.Bus[63073]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Jun 23 15:11:10 aoraki13 dbus-daemon[62970]: [session uid=40005987 pid=62964] Successfully activated service 'org.xfce.Xfconf'
Jun 23 15:11:14 aoraki13 systemd[62794]: Starting D-Bus User Message Bus...
Jun 23 15:11:14 aoraki13 dbus-broker-launch[63714]: Service file '/usr/share//dbus-1/services/org.xfce.Thunar.FileManager1.service' is not named after the D-Bus name 'org.freedesktop.FileManager1'.
Jun 23 15:11:14 aoraki13 dbus-broker-launch[63714]: Ignoring duplicate name 'org.freedesktop.FileManager1' in service file '/usr/share//dbus-1/services/org.xfce.Thunar.FileManager1.service'
Jun 23 15:11:14 aoraki13 dbus-broker-launch[63714]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +31: Eavesdropping is deprecated and ignored
Jun 23 15:11:14 aoraki13 dbus-broker-launch[63714]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +33: Eavesdropping is deprecated and ignored
Jun 23 15:11:14 aoraki13 dbus-broker-launch[63714]: Service file '/usr/share//dbus-1/services/org.xfce.Tumbler.Cache1.service' is not named after the D-Bus name 'org.freedesktop.thumbnails.Cache1'.
Jun 23 15:11:14 aoraki13 dbus-broker-launch[63714]: Service file '/usr/share//dbus-1/services/org.xfce.Tumbler.Manager1.service' is not named after the D-Bus name 'org.freedesktop.thumbnails.Manager1'.
Jun 23 15:11:14 aoraki13 dbus-broker-launch[63714]: Service file '/usr/share//dbus-1/services/org.xfce.Tumbler.Thumbnailer1.service' is not named after the D-Bus name 'org.freedesktop.thumbnails.Thumbnailer1'.
Jun 23 15:11:14 aoraki13 systemd[62794]: Started D-Bus User Message Bus.
Jun 23 15:11:14 aoraki13 journal[63714]: Ready
Jun 23 15:11:14 aoraki13 systemd[62794]: Starting Virtual filesystem service...
Jun 23 15:11:14 aoraki13 systemd[62794]: Started Virtual filesystem service.
Jun 23 15:11:14 aoraki13 gvfsd[63724]: fusermount3: failed to access mountpoint /run/user/40005987/gvfs: Permission denied
Jun 23 15:11:19 aoraki13 systemd[1]: Stopping User Manager for UID 40005987...
Jun 23 15:11:19 aoraki13 systemd[62794]: Activating special unit Exit the Session...
Jun 23 15:11:19 aoraki13 systemd[62794]: Stopped target Main User Target.
Jun 23 15:11:19 aoraki13 systemd[62794]: Stopping Virtual filesystem service...
Jun 23 15:11:19 aoraki13 systemd[62794]: Stopped Virtual filesystem service.
Jun 23 15:11:19 aoraki13 systemd[62794]: Stopped target Basic System.
Jun 23 15:11:19 aoraki13 systemd[62794]: Stopped target Paths.
Jun 23 15:11:19 aoraki13 systemd[62794]: Stopped target Sockets.
Jun 23 15:11:19 aoraki13 systemd[62794]: Stopped target Timers.
Jun 23 15:11:19 aoraki13 systemd[62794]: Stopped Mark boot as successful after the user session has run 2 minutes.
Jun 23 15:11:19 aoraki13 systemd[62794]: Stopped Daily Cleanup of User's Temporary Directories.
Jun 23 15:11:19 aoraki13 systemd[62794]: Closed PipeWire PulseAudio.
Jun 23 15:11:19 aoraki13 systemd[62794]: Closed PipeWire Multimedia System Socket.
Jun 23 15:11:19 aoraki13 dbus-broker[63715]: Dispatched 131 messages @ 1(±3)μs / message.
Jun 23 15:11:19 aoraki13 systemd[62794]: Stopping D-Bus User Message Bus...
Jun 23 15:11:19 aoraki13 systemd[62794]: Stopped Create User's Volatile Files and Directories.
Jun 23 15:11:19 aoraki13 systemd[62794]: Stopped D-Bus User Message Bus.
Jun 23 15:11:19 aoraki13 systemd[62794]: Closed D-Bus User Message Bus Socket.
Jun 23 15:11:19 aoraki13 systemd[62794]: Removed slice User Application Slice.
Jun 23 15:11:19 aoraki13 systemd[62794]: Reached target Shutdown.
Jun 23 15:11:19 aoraki13 systemd[62794]: Finished Exit the Session.
Jun 23 15:11:19 aoraki13 systemd[62794]: Reached target Exit the Session.
Jun 23 15:11:19 aoraki13 systemd[1]: user@40005987.service: Deactivated successfully.
Jun 23 15:11:19 aoraki13 systemd[1]: Stopped User Manager for UID 40005987.
Jun 23 15:11:19 aoraki13 systemd[1]: Stopping User Runtime Directory /run/user/40005987...
Jun 23 15:11:19 aoraki13 systemd[1]: run-user-40005987-gvfs.mount: Deactivated successfully.
Jun 23 15:11:19 aoraki13 systemd[1]: run-user-40005987.mount: Deactivated successfully.
Jun 23 15:11:19 aoraki13 systemd[1]: user-runtime-dir@40005987.service: Deactivated successfully.
Jun 23 15:11:19 aoraki13 systemd[1]: Stopped User Runtime Directory /run/user/40005987.
Jun 23 15:11:19 aoraki13 systemd[1]: Removed slice User Slice of UID 40005987.
Jun 23 15:11:23 aoraki13 org.a11y.Bus[63073]: X connection to :2 broken (explicit kill or server shutdown).
Jun 23 15:11:23 aoraki13 kernel: traps: xfsettingsd[64099] trap int3 ip:7f6de596c83f sp:7ffca97b9360 error:0 in libglib-2.0.so.0.6800.4[7f6de5930000+90000]
Jun 23 15:11:23 aoraki13 systemd[1]: Started Process Core Dump (PID 64101/UID 0).
Jun 23 15:11:23 aoraki13 systemd-coredump[64102]: Resource limits disable core dumping for process 64099 (xfsettingsd).
Jun 23 15:11:23 aoraki13 systemd-coredump[64102]: Process 64099 (xfsettingsd) of user 40005987 dumped core.
Jun 23 15:11:23 aoraki13 systemd[1]: systemd-coredump@1-64101-0.service: Deactivated successfully.
Jun 23 15:11:25 aoraki13 slurmd[3168]: slurmd: debug: _rpc_terminate_job: uid = 967 JobId=29058
Jun 23 15:11:25 aoraki13 slurmd[3168]: slurmd: debug: credential for job 29058 revoked
Jun 23 15:11:35 aoraki13 systemd[62640]: Starting Mark boot as successful...
Jun 23 15:11:35 aoraki13 systemd[62640]: Finished Mark boot as successful.
Jun 23 15:11:38 aoraki13 systemd[1]: systemd-hostnamed.service: Deactivated successfully.
I’ve looked extensively at the Matlab troubleshooting and "Problems with Matlab interactive window posts.
I have a simplified version of the template/script.sh.erb with no Open Gl at this stage (just want to get it working)
#!/usr/bin/env bash
# Clean the environment
module purge
# Set working directory to home directory
cd "${HOME}"
#
# Launch Xfce Window Manager and Panel
#
(
export SEND_256_COLORS_TO_REMOTE=1
export XDG_CONFIG_HOME="<%= session.staged_root.join("config") %>"
export XDG_DATA_HOME="<%= session.staged_root.join("share") %>"
export XDG_CACHE_HOME="$(mktemp -d)"
module restore
# set -x
eval $(dbus-launch --sh-syntax)
xfwm4 --compositor=off --sm-client-disable
xsetroot -solid "#D3D3D3"
xfsettingsd --daemon --sm-client-disable
xfce4-panel --sm-client-disable
) &
#
# Start MATLAB
#
# Load the required environment
# Launch MATLAB
#module load intel/16.0.3 virtualgl
#module list
#set -x
#vglrun matlab -desktop -nosoftwareopengl
#module list
set -x
matlab -desktop
Any suggestions much appreciated!
Thanks.