[Mesa-dev] [Bug 103078] MATLAB broken with mesa software rendering

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 3 16:44:06 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103078

            Bug ID: 103078
           Summary: MATLAB broken with mesa software rendering
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: Drivers/X11
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: sergio.callegari at gmail.com
        QA Contact: mesa-dev at lists.freedesktop.org

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

                          Version: '2.1 Mesa 10.5.2'
                           Vendor: 'Brian Paul'
                         Renderer: 'Mesa X11'
                   MaxTextureSize: 16384
                           Visual: 'Visual 0x72, (RGBA 32 bits (8 8 8 8), Z
depth 16 bits, Hardware acceleratio…'
                         Software: 'true'
             HardwareSupportLevel: 'none (known graphics driver issues)'
        SupportsGraphicsSmoothing: 0
    SupportsDepthPeelTransparency: 1
       SupportsAlignVertexCenters: 0
                       Extensions: {151x1 cell}
               MaxFrameBufferSize: 16384

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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171003/92d6ea30/attachment-0001.html>


More information about the mesa-dev mailing list