After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 792158 - tests: gl headers test fails
tests: gl headers test fails
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: 1.13.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Reported: 2018-01-03 10:53 UTC by Tim-Philipp Müller
Modified: 2018-01-03 12:16 UTC
See Also:
GNOME target: ---
GNOME version: ---

Debug log (xz-compressed) (4.85 KB, application/x-xz)
2018-01-03 10:54 UTC, Tim-Philipp Müller

Description Tim-Philipp Müller 2018-01-03 10:53:31 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.
Comment 1 Tim-Philipp Müller 2018-01-03 10:54:35 UTC
Created attachment 366243 [details]
Debug log (xz-compressed)
Comment 2 Matthew Waters (ystreet00) 2018-01-03 12:05:40 UTC
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.
Comment 3 Matthew Waters (ystreet00) 2018-01-03 12:16:38 UTC
commit 7cc1431a56193c291554ea8bf90c565d4aa3782b
Author: Matthew Waters <>
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.