Software rendering with recent mesa (either LLVMPipe, softpipe or swr) breaks matlab.
Seen with MATLAB 2016a on Kubuntu 17.04 with the latest (git) mesa as of today.
Graphic commands (e.g. plot) hang and make it impossible to close Matlab cleanly.
On llvmpipe the 'opengl info' matlab command crashes with
Error using hgopengl
Java exception occurred:
java.lang.RuntimeException: Waited 5000ms for: <38d5ebf2, 64757a04>[count 2 [ add. 0, orig 2], qsz 0, owner
<Startup Class Loader>, add.owner Startup Class Loader-SharedResourceRunner] - <main>
at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:199)
at com.jogamp.opengl.GLProfile.getDefaultDevice(GLProfile.java:2003)
at com.jogamp.opengl.GLCapabilities.<init>(GLCapabilities.java:84)
at com.mathworks.hg.uij.OpenGLUtils$MyGLListener.getGLInformation(OpenGLUtils.java:320)
at com.mathworks.hg.uij.OpenGLUtils$MyGLListener.getGLData(OpenGLUtils.java:498)
at com.mathworks.hg.uij.OpenGLUtils.getGLData(OpenGLUtils.java:78)
Error in hgopengl
On softpipe, the same command hangs.
This is curious because matlab has itself a software rendering mode, that seems to rely on mesa X11. The opengl info for it returns
Software rendering with recent mesa (either LLVMPipe, softpipe or swr) breaks matlab.
Seen with MATLAB 2016a on Kubuntu 17.04 with the latest (git) mesa as of today.
Graphic commands (e.g. plot) hang and make it impossible to close Matlab cleanly.
On llvmpipe the 'opengl info' matlab command crashes with
Error using hgopengl RuntimeExceptio n: Waited 5000ms for: <38d5ebf2, 64757a04>[count 2 [ add. 0, orig 2], qsz 0, owner SharedResourceR unner] - <main> common. util.locks. RecursiveLockIm pl01Unfairish. lock(RecursiveL ockImpl01Unfair ish.java: 198) opengl. GLProfile. initSingleton( GLProfile. java:199) opengl. GLProfile. getDefaultDevic e(GLProfile. java:2003) opengl. GLCapabilities. <init>( GLCapabilities. java:84) hg.uij. OpenGLUtils$ MyGLListener. getGLInformatio n(OpenGLUtils. java:320) hg.uij. OpenGLUtils$ MyGLListener. getGLData( OpenGLUtils. java:498) hg.uij. OpenGLUtils. getGLData( OpenGLUtils. java:78)
Java exception occurred:
java.lang.
<Startup Class Loader>, add.owner Startup Class Loader-
at jogamp.
at com.jogamp.
at com.jogamp.
at com.jogamp.
at com.mathworks.
at com.mathworks.
at com.mathworks.
Error in hgopengl
On softpipe, the same command hangs.
This is curious because matlab has itself a software rendering mode, that seems to rely on mesa X11. The opengl info for it returns
SupportsDep
So, it looks like mesa was supporting matlab 2016a just fine at the time of 10.5.2 and that we are now facing a regression.