GNOME Bugzilla – Bug 792158
tests: gl headers test fails
Last modified: 2018-01-03 12:16:38 UTC
ERROR glcontext gstglcontext_egl.c:666:gst_gl_context_egl_activate:<glcontextegl0> Failed to bind context to the current rendering thread: EGL_BAD_ACCESS
libs/gstglheaders.c:146:F:general:test_constructors_require_activated_context:0: Failure '!ret' occurred
On GNOME / Wayland.
Created attachment 366243 [details]
Debug log (xz-compressed)
eglMakeCurrent(): 'EGL_BAD_ACCESS is generated if context is current to some other thread.' - so the test is bogus and one needs to deactivate the context from the gl thread or move the framebuffer object creation to the gl thread.
Author: Matthew Waters <firstname.lastname@example.org>
Date: Wed Jan 3 23:11:54 2018 +1100
libs/glheaders: move object creation to the gl thread where necessary
Some GL platforms (EGL, WGL) require deactivating the OpenGL context in
one thread before it can be used in another thread which this test
currently violates and would e.g. result in EGL_BAD_ACCESS errors from
Fix by moving the object creation into the GL thread instead and not
requiring additional gst_gl_context_activate() calls.