openGL error whenever starting MATLAB on Ubuntu

1 回表示 (過去 30 日間)
YELIM LEE
YELIM LEE 2018 年 9 月 27 日
Whenever I start MATLAB, there's always same error message like below. It was fine when I've first installed, but someday it started with this problem.
javax.media.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for :0
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:317)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:295)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:628)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:541)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:293)
... 2 more
Exception in thread "Startup Class Loader" java.lang.InternalError: XXX0 profile[1]: GL3bc -> profileImpl GL4bc !!! not mapped
at javax.media.opengl.GLProfile.computeProfileMap(GLProfile.java:2021)
at javax.media.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1889)
at javax.media.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1838)
at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1807)
at javax.media.opengl.GLProfile.access$000(GLProfile.java:77)
at javax.media.opengl.GLProfile$1.run(GLProfile.java:201)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:187)
at com.mathworks.hg.peer.JavaSceneServerPeer.initializeJOGL(JavaSceneServerPeer.java:134)
at com.mathworks.hg.peer.JavaSceneServerPeer.<clinit>(JavaSceneServerPeer.java:104)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.mathworks.mde.desk.StartupClassLoader.loadClass(StartupClassLoader.java:258)
at com.mathworks.mde.desk.StartupClassLoader.access$900(StartupClassLoader.java:25)
at com.mathworks.mde.desk.StartupClassLoader$2.run(StartupClassLoader.java:244)
at java.lang.Thread.run(Unknown Source)
I'm using 2015a version on ubuntu 16.04 and I've tried before with opengl command. It looked work well because there's no more error message that I mentioned above, but it was failed to use some toolbox functions such as Psychtoolbox. How can I solve it ??
matlab -softwareopengl

回答 (1 件)

Zenin Easa Panthakkalakath
Zenin Easa Panthakkalakath 2018 年 10 月 3 日
According to the description of 'Psychtoolbox', the toolbox uses Hardware-accelerated OpenGL. Using '-softwareopengl' flag makes MATLAB use Software OpenGL.
Try to run MATLAB using the following start-up command. This ensures that graphics libraries are loaded in the right order when MATLAB starts.
matlab -nodesktop -r "opengl info, desktop"

カテゴリ

Help Center および File ExchangeTiming and presenting 2D and 3D stimuli についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by