Hello, I’m having trouble getting the expected behavior with the window in a Matlab interactive app. Any help or ideas would be greatly appreciated!
My problem appears similar to the issue described in Matlab window problem: the standard window features don’t work, i.e. the window won’t resize, min/max/close buttons are missing. However, I’m seeing different errors in the log.
I’m using a simplified version of OSC’s script.sh.erb from the OSC/bc_osc_matlab GitHub repo:
#!/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)"
set -x
xfwm4 --compositor=off --sm-client-disable
xsetroot -solid "#D3D3D3"
xfsettingsd --sm-client-disable
xfce4-panel --sm-client-disable
) &
# Start MATLAB
# Load the required environment
module load matlab
# Launch MATLAB
module list
set -x
matlab -desktop
Here’s output.log:
Setting VNC password...
Starting VNC server...
Desktop 'TurboVNC: <hostname>:1 (<username>)' started on display <hostname>:1
Log file is vnc.log
Successfully started VNC server on <hostname>:5901...
Script starting...
Starting websocket server...
+ xfwm4 --compositor=off --sm-client-disable
Currently Loaded Modulefiles:
1) matlab/R2020a
+ matlab -desktop
WebSocket server settings:
- Listen on :9882
- No SSL/TLS support (no cert file)
- Backgrounding (daemon)
Scanning VNC log file for user authentications...
Generating connection YAML file...
+ xsetroot -solid '#D3D3D3'
+ xfsettingsd --sm-client-disable
xfsettingsd: Could not connect: No such file or directory.
(xfsettingsd:718476): xfsettingsd-ERROR **: 10:43:40.190: Failed to connect to the dbus session bus.
/home/<username>/ondemand/data/sys/dashboard/batch_connect/sys/matlab/output/b2b33142-b9b3-409f-85e1-5a0aeb6b8dae/script.sh: line 22: 718476 Trace/breakpoint trap (core dumped) xfsettingsd --sm-client-disable
+ xfce4-panel --sm-client-disable
(xfce4-panel:718489): xfce4-panel-WARNING **: 10:43:40.376: Failed to connect to the D-BUS session bus: Could not connect: No such file or directory
(xfce4-panel:718489): xfce4-panel-CRITICAL **: 10:43:40.377: Name org.xfce.Panel lost on the message dbus, exiting.
xfce4-panel: There is already a running instance
MATLAB is selecting SOFTWARE OPENGL rendering.
Failed to create secure directory (/run/user/<uid>/pulse): No such file or directory
Setting VNC password...
Generating connection YAML file...
Can I get a dummy check from someone who has a working setup? Did I miss something?
Here’s my setup:
OS: latest RHEL 8.7, with regular updates
Slurm 20.11
Xfce 4.16 installed from EPEL 8 repo
OOD 2.0.31
Thanks for any assistance you can provide!