Bad error message?

Sebastian Dröge sebastian at centricular.com
Sat Mar 19 09:32:03 UTC 2016


On Sa, 2016-03-19 at 09:07 +0000, Russel Winder wrote:
> In an application using gtkglsink I just got the error message:
> 
> 
> ERROR:gtkgstglwidget.c:432:_get_gl_context: code should not be
> reached
> 
> which is fairly frightening
> 
> On using GST_DEBUG=3 the real message arrives:
> 
> gtkgstglwidget.c:430:_get_gl_context:<GtkGstGlwidget at 0xf7a2eo> Error
> creating GdkGLContext : Unable to create a GL context

The first one is an assertion. Basically the problem here is that your
GTK seems broken: gtk_gl_area_get_context() returns NULL.

If you enable debug logs, you should also see another error right
before that. Something like "Error creating GdkGLContext".


Instead of an assertion it would of course be better to gracefully
error out, but it seems like running into this code didn't even seem
possible during implementation. If you have a GtkGLArea widget, it
should be able to give you its OpenGL context.

> So my point is that the original message is a problem, the message
> above is what should have been issued in the first place. Is this bug
> report type stuff?

Yes, please report this together with at least a debug log with
GST_DEBUG=6 and ideally also a small application that causes the
problem for you. Does it work for you with the example gtkglsink
applications?

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160319/4731dc75/attachment.sig>


More information about the gstreamer-devel mailing list