blank screen when invoking trial matlab 2020a version on CentOS 7 Linux
37 views (last 30 days)
Show older comments
blank screen when invoking trial matlab 2020a version on CentOS 7 Linux
Saw in some posts that the following canberra/pk-gtk module missing issue wouldnt be affecting. Pasting the flagging messages anyhow.
$ /usr/local/bin/matlab
MATLAB is selecting SOFTWARE OPENGL rendering.
Gtk-Message: 14:01:40.560: Failed to load module "pk-gtk-module"
Gtk-Message: 14:01:40.561: Failed to load module "canberra-gtk-module"
OS information:
cat /etc/os-release
$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
Installed matlab2020a:
------------------------------------------------------------------------
-> (.matlab7rc.sh) sourced from directory (DIR = $MATLAB/bin)
-> DIR = /usr/local/MATLAB/R2020a/bin
------------------------------------------------------------------------
a = argument e = environment r = rcfile s = script
------------------------------------------------------------------------
-> r MATLAB = /usr/local/MATLAB/R2020a
-> LM_LICENSE_FILE = (variable not defined)
-> MLM_LICENSE_FILE = (variable not defined)
-> s AUTOMOUNT_MAP =
-> e DISPLAY = :17.0
-> r ARCH = glnxa64
-> s TOOLBOX = /usr/local/MATLAB/R2020a/toolbox
-> e MAX_OPEN_FILES = 1024
-> s _JVM_THREADS_TYPE =
-> e MATLAB_JAVA =
-> s MATLAB_MEM_MGR =
-> s MATLAB_DEBUG =
-> s LD_LIBRARY_PATH = /usr/local/MATLAB/R2020a/sys/opengl/lib/glnxa64:/u
sr/local/MATLAB/R2020a/sys/os/glnxa64:/usr/local/MATLAB/R2020a/bin/glnxa64:/usr/
local/MATLAB/R2020a/extern/lib/glnxa64:/usr/local/MATLAB/R2020a/sys/java/jre/gln
xa64/jre/lib/amd64/native_threads:/usr/local/MATLAB/R2020a/sys/java/jre/glnxa64/
jre/lib/amd64/server
blank screen:
Answers (2)
Oren Zaharia
on 11 Apr 2021
We had a similar problem when we have used with xrdp and Xvnc.
We solved that by decrease the color depth in '/etc/xrdp/session.ini' to 16 by adding params to [Xvnc]
[Xvnc]
param=Xvnc
param=-bs
param=-nolisten
param=tcp
param=-localhost
param=-dpi
param=96
param=-depth
param=16
and when you connect using mstsc (Remote Desktop) or Remima decrease the depth in display to 16 too.
Good Luck
1 Comment
Danny S
on 19 Oct 2021
Thanks! This was very helpful and with these changes, I was able to launch MATLAB R2020a on Centos 7 installed on a Hyper-V virtual machine, connected to via Xvnc/RDP.
For me, the file to modify was '/etc/xrdp/sesman.ini', but by setting the colour depth to 16 there and in Remote Desktop Connection, I was able to launch MATLAB activation and the MATLAB desktop.
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!