GNOME Bugzilla – Bug 730069
gl: Crash when setting invalid GST_GL_PLATFORM
Last modified: 2014-05-19 10:27:04 UTC
GST_GL_PLATFORM=e gst-launch-1.0 videotestsrc ! video/x-raw,format=I420 ! glimagesink Leads to multiple assertions and then crash. Very easy to reproduce, no need to attach backtrace I think, or leave it to those who can reproduce. Got context from element 'glimagesink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0"; ** (gst-launch-1.0:6732): CRITICAL **: gst_gl_context_get_window: assertion 'GST_GL_IS_CONTEXT (context)' failed ** (gst-launch-1.0:6732): CRITICAL **: gst_gl_context_create: assertion 'GST_GL_IS_CONTEXT (context)' failed (gst-launch-1.0:6732): GStreamer-CRITICAL **: gst_object_unref: assertion 'object != NULL' failed Caught SIGSEGV
+ Trace 233594
commit 8070b4e043bd863a87605dad5908c1e04b9bdafc Author: Sebastian Dröge <sebastian@centricular.com> Date: Mon May 19 12:25:51 2014 +0200 glimagesink: Check if context creation failed before trying to use it Otherwise we will cause assertions everywhere by passing NULL to functions and eventually crash when dereferencing a NULL pointer. https://bugzilla.gnome.org/show_bug.cgi?id=730069 commit 911ec0d3ef4850a2978d10a9c9de667f65ae587b Author: Sebastian Dröge <sebastian@centricular.com> Date: Mon May 19 12:21:13 2014 +0200 glcontext: Add more assertions to make sure that everything sets the GError during context creation if something fails