GNOME Bugzilla – Bug 575349
gst crashes with: GStreamer-CRITICAL **: gst_caps_is_fixed: assertion `GST_IS_CAPS (caps)' failed
Last modified: 2009-10-05 17:52:57 UTC
In a pipeline: srcBin1 ! ! sinkBin1 srcBin2 ! liveadder ! tee ! sinkBin2 srcBin3 ! ! sinkBin3 Three srcBins connected to one liveadder (gstreamer0.10-plugins-farsight 0.12.9-2ubuntu1). Adder is connected to tee, which is connected to 3 sinkBins. srcBin1: filesrc ! mad ! audioconvert ! capsfilter srcBin2: filesrc ! mad ! audioconvert ! capsfilter srcBin3: alsasrc ! audioconvert ! capsfilter. sinkBin1: queue2 ! capsfilter ! audioconvert ! filesink sinkBin2: queue2 ! capsfilter ! audioconvert ! alsasink sinkBin3: queue2 ! capsfilter ! audioconvert ! alsasink Gstreamer crashes with: GStreamer-CRITICAL **: gst_caps_is_fixed: assertion `GST_IS_CAPS (caps)' failed. Installed packages: bluez-gstreamer 4.12-0ubuntu5 gstreamer0.10-alsa 0.10.21-3 gstreamer0.10-doc 0.10.21-4 gstreamer0.10-ffmpeg 0.10.5-1 gstreamer0.10-gnomevfs 0.10.21-3 gstreamer0.10-plugins-bad 0.10.8-1 gstreamer0.10-plugins-bad-doc 0.10.8-1 gstreamer0.10-plugins-base 0.10.21-3ubuntu1 gstreamer0.10-plugins-base-apps 0.10.21-3 gstreamer0.10-plugins-base-doc 0.10.21-3 gstreamer0.10-plugins-farsight 0.12.9-2ubuntu1 gstreamer0.10-plugins-good 0.10.10.4-1ubuntu1 gstreamer0.10-plugins-good-doc 0.10.10.4-1ubuntu1 gstreamer0.10-plugins-ugly 0.10.9-1ubuntu0.1 gstreamer0.10-plugins-ugly-doc 0.10.9-1ubuntu0.1 gstreamer0.10-plugins-ugly-multiverse 0.10.7-2 gstreamer0.10-pulseaudio 0.10.10.4-1ubuntu1 gstreamer0.10-schroedinger 1.0.5-1 gstreamer0.10-tools 0.10.21-4 gstreamer0.10-x 0.10.21-3 libgstreamer-plugins-base0.10-0 0.10.21-3ubuntu1 libgstreamer-plugins-base0.10-dev 0.10.21-3 libgstreamer0.10-0 0.10.21-4 libgstreamer0.10-0-dbg 0.10.21-4 libgstreamer0.10-dev 0.10.21-4 totem-gstreamer 2.24.3-0ubuntu1
Created attachment 130651 [details] Debug log. Debug log obtained with export GST_DEBUG=3,GST_REFCOUNTING:5.
Created attachment 130652 [details] Backtrace from coredump. bt full from the core file.
Could you make a picture of the pipeline using GST_DEBUG_BIN_TO_DOT_FILE(bin, details, file_name) (check the api docs)?
This looks like a refcounting problem somewhere. Have you tried to simplify the pipeline a bit? Could you provide the stack traces for *all* threads involved please? (thread apply all bt) Have you tried with newer versions of everything - your versions are a bit out of date - current is core/base 0.10.22, -good 0.10.14, -bad 0.10.10 (0.10.11 coming up next week).
You should probably just put 1 capfilter in that pipeline, like right after the liveadder element and make all upstream elements convert to this format. The way it works now is that the upstream bins could race for a format and fail (unless the capsfilters before liveadder all have the same caps, but even then it's not optimal)
I am still getting crashes after upgrading to the following versions: gstreamer0.10-alsa 0.10.22-3~intrepid2 gstreamer0.10-plugins-bad 0.10.10.2-1~intrepid1 gstreamer0.10-plugins-base 0.10.22-3~intrepid2 gstreamer0.10-plugins-base-apps 0.10.22-3~intrepid2 gstreamer0.10-plugins-farsight 0.12.9-2ubuntu1 gstreamer0.10-plugins-good 0.10.14-2~intrepid1 gstreamer0.10-plugins-ugly 0.10.10.2-2~intrepid3 gstreamer0.10-plugins-ugly-multiverse 0.10.7-2 libgstreamer-plugins-base0.10-0 0.10.22-3~intrepid2 libgstreamer0.10-0 0.10.22-2~intrepid2 libgstreamer0.10-0-dbg 0.10.22-2~intrepid2 libgstreamer0.10-dev 0.10.22-2~intrepid2 I will try to collect more info.
Created attachment 130738 [details] Dot file showing the pipeline.
Hard to track down but let's try with a debug log by running the app like this: GST_DEBUG=*CAPS*:5,*SCHED*:5 <appname> >debug.log 2>&1 then compress and attach the resulting debug.log file here.
Created attachment 130815 [details] Debug Log with: GST_DEBUG=*CAPS*:5,*SCHED*:5
Created attachment 130875 [details] Debug Log with: GST_DEBUG=5
Created attachment 130876 [details] thread apply all bt full
Created attachment 139000 [details] gdb thread apply all of same or similar crash in totem I think I ran into this issue in totem as well. Takes a bit of effort to reproduce, but is reproducable. (FWIW, I've got a core dump at hand if you want me to poke into anything.)
*** Bug 590252 has been marked as a duplicate of this bug. ***
A Fedora user ran into it as well: https://bugzilla.redhat.com/show_bug.cgi?id=527130
Note that the RH bug has the same trace as bug 590252 which was marked as a dupe.
*** This bug has been marked as a duplicate of bug 583999 ***