Could not initialize shared resources for X11GraphicsDevice- Ubuntu 14.04, Matlab 2017b

95 ビュー (過去 30 日間)
caesar
caesar 2018 年 5 月 1 日
I have a machine with running Ubuntu 14.04, Nvidia GeForce 1080 Ti and MAtlab 2017b. I am facing this error which ,I believe, has been reported previously in this post for 2017a https://www.mathworks.com/matlabcentral/answers/342906-could-not-initialize-shared-resources-for-x11graphicsdevice and the error message is the same :
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x413b9df1, isOwner false, <30fe5aac, af2eb55>[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)
... 2 more
according to the above post there were some suggestions that could resolve the issue that i try but didnt work for me: 1- "libstdc++.so.6" solution
2-
$ matlab -softwareopengl
3-Trying different version of the Nvidia drivers :
NVIDIA binary driver -Version 384.130 from NVIDIA-380 (open source)
NVIDIA binary driver -Version 396.18 from NVIDIA-396 (open source)
NVIDIA binary driver -Version 390.48 from NVIDIA-390 (open source)
is there any solution or recommendation to rectify that problem.

回答 (1 件)

Konstantinos Ftikas
Konstantinos Ftikas 2019 年 12 月 25 日
I have the same problem and i am searching since 2 days all the day for a solution. I can't even plot basic things. I am actually destroying my ubuntu system by trying various things out. At this point i would rather start thinking if octave is the better solution
  6 件のコメント
Emmanuel Mennesson
Emmanuel Mennesson 2020 年 10 月 10 日
Bless you this worked for me after hours of suffering

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by