<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:martin.peres@free.fr" title="Martin Peres <martin.peres@free.fr>"> <span class="fn">Martin Peres</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - MATLAB hangs with DRI3"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96671">bug 96671</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>REOPENED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - MATLAB hangs with DRI3"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96671#c18">Comment # 18</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - MATLAB hangs with DRI3"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96671">bug 96671</a>
              from <span class="vcard"><a class="email" href="mailto:martin.peres@free.fr" title="Martin Peres <martin.peres@free.fr>"> <span class="fn">Martin Peres</span></a>
</span></b>
        <pre>(In reply to Martin Peres from <a href="show_bug.cgi?id=96671#c17">comment #17</a>)
<span class="quote">> (In reply to Rick from <a href="show_bug.cgi?id=96671#c15">comment #15</a>)
> > The hang should occur with the latest MATLAB releases (16a and 16b).  MATLAB
> > should be using hardware OpenGL by default, so there shouldn't be a need to
> > provide the -nosoftwareopengl startup argument.  It is possible that MATLAB
> > start up detected a problem with the graphics hardware support and switched
> > to using software OpenGL.  If you start MATLAB without the -nosoftwareopengl
> > argument, what output does the 'opengl info' command produce?  Thanks.

> OK, I figured out why matlab reverted directly to using the software GL:
> sys/os/glnxa64/libstdc++.so.6: version `CXXABI_1.3.9' not found

> This libstdc++ is a little old and does not support the new CXXABI
> introduced in gcc 4.9 which archlinux is using. I deleted this file and it
> reverted back to using the system-provided library.

> I still get a crash though
> (<a href="https://bugs.freedesktop.org/attachment.cgi?id=129134">https://bugs.freedesktop.org/attachment.cgi?id=129134</a>). Will try to debug
> with gdb what the heck is going on.</span >

OK, got it to work quite well on mesa 17 but it crashes on mesa 13. The fix is

commit b6670157d742548e7f2430614786c733eb4c20e9
Author: Fredrik Höglund <<a href="mailto:fredrik@kde.org">fredrik@kde.org</a>>
Date:   Sun Jan 1 15:34:17 2017 +0100

    dri3: Fix MakeCurrent without a default framebuffer

    In OpenGL 3.0 and later it is legal to make a context current without
    a default framebuffer.

    This has been broken since DRI3 support was introduced.

    Cc: "13.0 12.0" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>>
    Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>>


Not sure why you can even start the application at all :s However, I can say
that the examples/graphics/AddAxisLabelsExample.m works quite well for me now.

This patch should make it in your distro relatively soon since it has been
tagged for a new 13.X release but it has not landed yet. Please re-open the bug
if the next version of mesa 13.x includes the patch (check like this:
<a href="https://cgit.freedesktop.org/mesa/mesa/log/?h=13.0&qt=grep&q=dri3%3A+Fix+MakeCurrent+without+a+default+framebuffer">https://cgit.freedesktop.org/mesa/mesa/log/?h=13.0&qt=grep&q=dri3%3A+Fix+MakeCurrent+without+a+default+framebuffer</a>)
but you still experience the hangs.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>