Problems with matlab R2016b on debian

2 次查看(过去 30 天)
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 个评论
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
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by