Bug 146999

Summary: [GStreamer] Handle missing plugins better at runtime
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, mcatanzaro, pnormand
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 147000    
Attachments:
Description Flags
Backtrace
none
patch cgarcia: review+

Michael Catanzaro
Reported 2015-07-16 10:00:24 PDT
I see the following critical warnings when loading https://www.youtube.com/watch?v=nesCaocNjtQ using r186861: (WebKitWebProcess:14021): GLib-GObject-WARNING **: invalid (NULL) pointer instance (WebKitWebProcess:14021): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed (WebKitWebProcess:14021): GStreamer-CRITICAL **: gst_element_link_pads_full: assertion 'GST_IS_ELEMENT (dest)' failed A backtrace to the first warning is attached.
Attachments
Backtrace (76.56 KB, text/plain)
2015-07-16 10:10 PDT, Michael Catanzaro
no flags
patch (3.73 KB, patch)
2015-08-14 08:20 PDT, Philippe Normand
cgarcia: review+
Michael Catanzaro
Comment 1 2015-07-16 10:10:56 PDT
Created attachment 256906 [details] Backtrace
Michael Catanzaro
Comment 2 2015-07-16 10:14:48 PDT
Note, I'm using GStreamer revision 6379b7a07b2212db39d26609635fb5b3b904c7d2 (on the 1.4 branch) but this issue has occurred for a long time.
Philippe Normand
Comment 3 2015-07-29 01:55:13 PDT
(In reply to comment #1) > Created attachment 256906 [details] > Backtrace Looking at this trace it seems you don't have the autoaudiosink gst element. Can you check your gst-plugins-good jhbuild installation? Within the JHBuild shell this should show a description of the element: gst-inspect-1.0 autoaudiosink
Michael Catanzaro
Comment 4 2015-07-29 07:57:04 PDT
Indeed, thanks Philippe: $ gst-inspect-1.0 autoaudiosink No such element or plugin 'autoaudiosink' Looks like the problem is that we do not depend on gst-plugins-good in GNOME jhbuild, only on gst-plugins-base. Also, our CMake build system clearly does not require it. Is gst-plugins-good mandatory, then? Should we require it at build time, or allow building without it and handle the failure better runtime?
Philippe Normand
Comment 5 2015-07-29 08:23:58 PDT
(In reply to comment #4) > Indeed, thanks Philippe: > > $ gst-inspect-1.0 autoaudiosink > No such element or plugin 'autoaudiosink' > > Looks like the problem is that we do not depend on gst-plugins-good in GNOME > jhbuild, only on gst-plugins-base. Also, our CMake build system clearly does > not require it. Is gst-plugins-good mandatory, then? Should we require it at > build time, or allow building without it and handle the failure better > runtime? I don't think we should require it in CMake, -good doesn't provide any library, only plugins. But we should provide better runtime support indeed, handle failures better, like you suggest :)
Philippe Normand
Comment 6 2015-08-14 08:20:16 PDT
Carlos Garcia Campos
Comment 7 2015-08-14 09:10:16 PDT
Comment on attachment 259001 [details] patch Thanks!
Philippe Normand
Comment 8 2015-08-14 09:33:10 PDT
Note You need to log in before you can comment on or make changes to this bug.