https://bugs.freedesktop.org/show_bug.cgi?id=91687
Bug ID: 91687 Summary: Crash when creating new context after destroying the old one using indirect rendering Product: Mesa Version: 10.5 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: critical Priority: medium Component: Mesa core Assignee: mesa-dev@lists.freedesktop.org Reporter: gqm...@gmail.com QA Contact: mesa-dev@lists.freedesktop.org Created attachment 117783 --> https://bugs.freedesktop.org/attachment.cgi?id=117783&action=edit VTK/Qt Python program that crashes I tested that on mesa Ubuntu 14.04 (mesa 10.3.2) and 15.10 (mesa 10.5.2). I'm not sure if it is reproducible. The attached traces were gotten on Ubuntu 14.04. The crash happens when running the attached python program crash_mesa_vtk_qt.py using indirect rendering (specifically I need to run it inside a chroot that has a very old mesa version) It uses vtk and Qt, I'm sorry I could not come up with a more isolated example, but I'm not very familiar with opengl programming. In summary, that is what is happening: 1 - A vtk render window is created and rendered the first time (that makes vtk create a new glx context) 2 - The vtk render window is set to render offscreen (it is not using OSMesa). That makes vtk destroy the current context and create a new one associated to a new X offscreen window. 3 - The window is rendered and I could even generate a png file. 4 - The vtk render window is set to render on screen again. That makes vtk destroy the current glx context and create a new one associated to the first X window (the on screen window). 5 - When rendering the vtk window again, X server crashes (stack trace attached). Looking into vtk code it does not seem it is doing anything wrong. The offscreen related code can be found on: https://gitlab.kitware.com/vtk/vtk/blob/v6.2.0/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx#L800 https://gitlab.kitware.com/vtk/vtk/blob/v6.2.0/Rendering/OpenGL/vtkOpenGLRenderWindow.cxx#L1856 https://gitlab.kitware.com/vtk/vtk/blob/v6.2.0/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx#L943 https://gitlab.kitware.com/vtk/vtk/blob/v6.2.0/Rendering/OpenGL/vtkOpenGLRenderWindow.cxx#L1856 -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev