[Bug 96671] MATLAB hangs with DRI3

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 25 10:13:55 UTC 2017


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

Martin Peres <martin.peres at free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #18 from Martin Peres <martin.peres at free.fr> ---
(In reply to Martin Peres from comment #17)
> (In reply to Rick from comment #15)
> > 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
> (https://bugs.freedesktop.org/attachment.cgi?id=129134). Will try to debug
> with gdb what the heck is going on.

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 <fredrik at kde.org>
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" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>


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:
https://cgit.freedesktop.org/mesa/mesa/log/?h=13.0&qt=grep&q=dri3%3A+Fix+MakeCurrent+without+a+default+framebuffer)
but you still experience the hangs.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20170125/4bb69299/attachment-0001.html>


More information about the intel-3d-bugs mailing list