openGL error whenever starting MATLAB on Ubuntu

조회 수: 2 (최근 30일)
YELIM LEE
YELIM LEE 2018년 9월 27일
답변: Zenin Easa Panthakkalakath 2018년 10월 3일
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 CenterFile Exchange에서 Image display and manipulation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by