[Bug 775171] New: glcontext/glwindow: Race when creating/quitting

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sun Nov 27 12:02:18 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=775171

            Bug ID: 775171
           Summary: glcontext/glwindow: Race when creating/quitting
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: bilboed at bilboed.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

This is the core issue exposed by the various hanging gl unit tests

The "easiest" to trigger the issue is test_is_shared.

The problem is the following:
1) A context is created
2) It creates/starts a thread
  2.1) That thread asks for _unlock_create_thread() to be called
  2.2) Then calls gst_gl_window_run which will eventually start a mainloop
3) In the meantime the context is finalized
 3.1) We call gst_gl_window_quit which will stop the mainloop ...
   ... but that mainloop hasn't started yet !
 3.2) It unlocks the render_lock and joins the thread
 2.3) The other thread finally calls main_loop_run ...

 ... hang

Something is needed to avoid that race, but i'm not 100% sure yet.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list