Problems with matlab R2016b on debian

Hello, I am experiencing problems with matlab on my workstation. As far I understand it is related to the interaction with the nvidia drivers and oepngl libraries.
System description
Drivers: 367.57
OS: Debian 8.6 jessie.
Problem Description Whenever I run matlab I get the following warning
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x538d5506, isOwner false, <63c927c4, 2b51e80a>[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(Unknown Source)
Caused by: com.jogamp.opengl.GLException: glXGetConfig(0x1) failed: error code Unknown error code 6
at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.glXGetConfig(X11GLXGraphicsConfiguration.java:570)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.XVisualInfo2GLCapabilities(X11GLXGraphicsConfiguration.java:500)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationXVisual(X11GLXGraphicsConfigurationFactory.java:434)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationStatic(X11GLXGraphicsConfigurationFactory.java:240)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createMutableSurfaceImpl(X11GLXDrawableFactory.java:524)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createDummySurfaceImpl(X11GLXDrawableFactory.java:535)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:283)
The command opengl info is completely empty
Version: ''
Vendor: ''
Renderer: 'None'
RendererDriverVersion: ''
RendererDriverReleaseDate: ''
MaxTextureSize: 0
Visual: ''
Software: 1
HardwareSupportLevel: 'none'
SupportsGraphicsSmoothing: 0
SupportsDepthPeelTransparency: 0
SupportsAlignVertexCenters: 0
Extensions: {}
MaxFrameBufferSize: 0
As a result, the plots look weird and the legend do not match the plot.
I have tried to use -softwareopengl as an option, but the only effect I obtain is that the message is hidden, but the figures are not displayed correctly.

댓글 수: 13

Are you trying to start MATLAB remotely?
Which NVIDIA graphics card are you using?
Mathis Fricke
Mathis Fricke 2016년 12월 19일
I have the same problem using Matlab R2016b under Ubuntu 14.04 with the Geforce GTX 960.A parallel installation of Matlab R2015a works fine.
Zhuotun Zhu
Zhuotun Zhu 2017년 1월 1일
I have the same problem with MATLAB 2016b, Ubuntu 14.04, NVIDIA TiTan. How could it be solved? Thank you!
Robert Mar
Robert Mar 2017년 1월 20일
Same OpenGL problem, MATLAB R2016b, Ubuntu 14.04, Nvidia GTX 980M, Nvidia 367.35 drivers.
ECEdesigner
ECEdesigner 2017년 1월 24일
I am having the same problem with Debian Jessie and a Nvidia GTX 1070 with the latest 367.35 drivers installed. Same output for opengl. MATLAB please help!
Timo Kettunen
Timo Kettunen 2017년 3월 9일
편집: Timo Kettunen 2017년 3월 9일
Same warning when starting Matlab with Ubuntu 14.04 and TitanX, driver version 367.57. Applies to R2016a, R2016b, R2017a.
Luckily R2015b works OK! I would assume that fix or workaround would available by now.
Miroslav Flídr
Miroslav Flídr 2017년 3월 23일
The problem is caused in changes in NVIDIA drivers 361.xx and newer and MATLAB reliance on driver behavior outside stantard Linux OpenGL ABI. These changes are described here. I could solve the problem by downloading the NVIDIA driver installer, unpacking it using the --extract-only installer command line switch and then by replacing the installed libGL.so.1.0.0 library file with the libGL.so.$VERSION file from the unpacked installer (the file must be renamed to libGL.so.1.0.0).
Murphy Stein
Murphy Stein 2017년 3월 25일
I am having the same problem running ubuntu 14.04 LTS with 2017a. It also works fine for me running 2015b. I also have an nvidia graphics card.
Timo Kettunen
Timo Kettunen 2017년 3월 28일
Problem solved by method suggested by Miroslav. Thanks! Quite a hack, though. This is clear MATLAB error, I hope they fixed in future releases.
Cheng Zeng
Cheng Zeng 2017년 12월 22일
Miroslav's method also works for me. Thank you.
Walter Roberson
Walter Roberson 2017년 12월 22일
편집: Walter Roberson 2018년 8월 2일
Cheng Zeng comments to Miroslav Flídr:
It works for me using this method, thank you. One thing to note is that the libGL.so.1.0.0 file is located in /usr/lib64/ folder.
Dam-Be Douti
Dam-Be Douti 2018년 7월 13일
Thanks Miroslav, your suggestion saved me also :-)
Wei Wu
Wei Wu 2018년 8월 2일
I met the same problem. Miroslav Flídr's method and Walter Roberson's comment works for me. Thanks for your kind help!

댓글을 달려면 로그인하십시오.

답변 (1개)

Tomasz Czaus
Tomasz Czaus 2017년 6월 2일

0 개 추천

I have similar issue running Debian GNU/Linux 8.8 (jessie) and vanilla kernel 4.4.70 with R2017a. NVidia driver installed as follows:
sudo NVIDIA-Linux-x86_64-375.39.run --no-glvnd-egl-client --no-glvnd-glx-client
then lunch matlab:
$ ~/MATLAB/R2017a/bin/matlab MATLAB is selecting SOFTWARE OPENGL rendering. Bus error
Any ideas?

댓글 수: 1

Tomasz Czaus
Tomasz Czaus 2017년 6월 3일
Update:
Some shared libraries under "~/MATLAB/R2017a/bin/glnxa64/" were corrupted i.e. "libmwvvir.so". After reinstallation MATLAB works.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

질문:

2016년 12월 12일

편집:

2018년 8월 2일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by