Bug#992991: matlab-support: R2021a Could not initialize shared resources for X11GraphicsDevice
Andrew McGinnis
andrew at mcginnis.space
Thu Aug 26 01:14:20 BST 2021
Package: matlab-support
Version: 0.0.22
Severity: important
X-Debbugs-Cc: andrew at mcginnis.space
Dear Maintainer,
When running MATLAB R2021a on Bullseye, MATLAB appears to not recognize my graphics card. This makes it impossible to plot graphs, unless matlab is run with the -softwareopengl option. I get the following error message in MATLAB at startup:
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x363a0dad, isOwner false, <53ad249f, 55216f24>[count 0, qsz 0, owner <NULL>]]]
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:688)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:297)
... 2 more
I have managed to get MATLAB to run with hardware graphics acceleration by adding:
export MESA_LOADER_DRIVER_OVERRIDE=i965
to my profile. This is from the following post on the Mathworks Forum:
https://www.mathworks.com/matlabcentral/answers/342906-could-not-initialize-shared-resources-for-x11graphicsdevice#answer_425485
My machine has an Intel graphics card.
Please consider adding support for Intel graphics drivers to this package.
Thank you,
Andrew
-- System Information:
Debian Release: 11.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages matlab-support depends on:
ii debconf [debconf-2.0] 1.5.77
ii sudo 1.9.5p2-3
Versions of packages matlab-support recommends:
ii libgfortran-10-dev 10.2.1-6
ii libstdc++-10-dev [libstdc++-dev] 10.2.1-6
Versions of packages matlab-support suggests:
pn lsb-core <none>
-- debconf information:
* matlab-support/matlab-install-glob: /opt/MATLAB/R2021a
* matlab-support/mexbuild-user: andrew
matlab-support/title:
* matlab-support/default-version: Matlab R2021a @ /opt/MATLAB/R2021a
* matlab-support/rename-libs: true
matlab-support/no-matlab-found:
More information about the debian-science-maintainers
mailing list