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 343109 - Crash when redirecting ALSA PCM to FIFO
Crash when redirecting ALSA PCM to FIFO
Status: RESOLVED DUPLICATE of bug 343312
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.6
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-27 13:48 UTC by Simon Goodall
Modified: 2006-05-30 09:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Simon Goodall 2006-05-27 13:48:32 UTC
I have setup ALSA on my system to forward PCM data to a fifo on my filesystem. When the fifo fills up, banshee crashes with the following message

banshee: pcm_file.c:112: snd_pcm_file_add_frames: Assertion `file->wbuf_used_bytes < file->wbuf_size_bytes' failed.

While something is still reading the fifo, then banshee works as expected.

I am running banshee on Fedora Core 5 using GStreamer 0.10. I have a .asoundrc setup as follows;

pcm.!default {
  type plug
  slave.pcm "stdout"
}


pcm.stdout {
  type file
  file "/tmp/airportfifo"
  slave {
    pcm "hw:0,0"
  }
}

where /tmp/airportfifo has been created with "mknod /tmp/airportfifo p"
Comment 1 Aaron Bockover 2006-05-29 16:38:01 UTC
Can you please try to reproduce this outside of Banshee (Totem, Rhythmbox, [1])? I will bet this is a GStreamer bug instead. You might try upgrading Banshee to 0.10.10. Also, a backtrace would be very helpful: http://banshee-project.org/Debugging

[1] Try also using a pipeline on the command line:

gst-launch-0.10 filesrc location="/path/to/song.ogg" ! decodebin ! gconfaudiosink
Comment 2 Simon Goodall 2006-05-29 17:05:34 UTC
Hmm, this does look like it is a gstreamer bug as rhythmbox produced the same backtrace.
I couldn't get your gst-launch cmd line to doo much, but the following also managed to reproduce the crash.

gst-launch-0.10 filesrc location="/path/to/song.ogg" ! oggdemux ! vorbisdec ! audioconvert ! alsasink

I guess I'll re-file this in gstreamer.
Comment 3 Aaron Bockover 2006-05-29 17:30:44 UTC
decodebin is essentially the element that "does decoding" in Banshee and that pipeline should work fine, but as long as you were able to reproduce it outside of Banshee, that makes me happy :)
Comment 4 Wim Taymans 2006-05-30 09:05:41 UTC

*** This bug has been marked as a duplicate of 343312 ***