[Mesa-dev] [Bug 107092] Thread leak when changing context size

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 2 21:04:02 UTC 2018


            Bug ID: 107092
           Summary: Thread leak when changing context size
           Product: Mesa
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/llvmpipe
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: cory.quammen at kitware.com
        QA Contact: mesa-dev at lists.freedesktop.org

Created attachment 140440
  --> https://bugs.freedesktop.org/attachment.cgi?id=140440&action=edit
apitrace output from the example

I have observed a thread leak in Linux when using offscreen rendering in VTK
via llvmpipe. A minimal VTK example code is attached, as is the output of
running apitrace.

One can observe the thread leak by doing the following:

* down ParaView-5.5.2-Qt5-MPI-Linux-64bit.tar.gz from www.paraview.org/download
* tar xzf ParaView-5.5.2-Qt5-MPI-Linux-64bit.tar.gz
* cd ParaView-5.5.2-Qt5-MPI-Linux-64bit
* Run

  bin/pvbatch --mesa-llvm vtk-mesa-threads-growth.py

In this example, we are repeatedly resizing the render window. Each time the
window is resized, the current context is destroyed with glXDestroyContext. A
new context is created with the new desired size, but looking at the output of
htop, the threads used from the previous render never rejoin the main thread,
causing the total number of threads to grow each time the render window size is
changed. For long-running animation creation, this situation can lead to a
major system slow down.

If this is not a mesa bug and it looks like I am doing something not correct in
the trace, please let me know.

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/20180702/30954e27/attachment.html>

More information about the mesa-dev mailing list