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 134007 - [alsasink] assertion failure in alsalib snd_pcm_plug_hw_params()
[alsasink] assertion failure in alsalib snd_pcm_plug_hw_params()
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.7.4
Other Linux
: Normal major
: 0.8.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 135422 136815 137052 137891 137994 140589 141984 143476 146485 147080 149432 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-02-10 17:21 UTC by Matthias Saou
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Matthias Saou 2004-02-10 17:21:46 UTC
I just installed gstreamer 0.7.4 and recompiled rhythmbox 0.7.0 against it.
I had gstreamer 0.6.4 previously working fine with rhythmbox 0.6.x using
ALSA. After the upgrade, I got the following error :

rhythmbox: pcm_plug.c:882: snd_pcm_plug_hw_params: Assertion `err >= 0' failed.
Program received signal SIGABRT, Aborted.

With this backtrace :
(gdb) bt
  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 raise
    from /lib/tls/libc.so.6
  • #2 abort
    from /lib/tls/libc.so.6
  • #3 __assert_fail
    from /lib/tls/libc.so.6
  • #4 snd_pcm_plug_hw_params
    at pcm_plug.c line 910
  • #5 sndrv_pcm_hw_params
    at pcm_params.c line 2260
  • #6 snd_pcm_hw_params
    at pcm.c line 784
  • #7 gst_alsa_set_eos
    from /usr/lib/gstreamer-0.7/libgstalsa.so
  • #8 gst_alsa_set_eos
    from /usr/lib/gstreamer-0.7/libgstalsa.so
  • #9 gst_alsa_link
    from /usr/lib/gstreamer-0.7/libgstalsa.so
  • #10 gst_alsa_sink_get_type
    from /usr/lib/gstreamer-0.7/libgstalsa.so
  • #11 gst_element_set_state
    at gstelement.c line 2643
  • #12 gst_bin_change_state
    at gstbin.c line 720
  • #13 gst_element_set_state
    at gstelement.c line 2643
  • #14 gst_bin_change_state
    at gstbin.c line 720
  • #15 gst_thread_change_state
    at gstthread.c line 484
  • #16 gst_element_set_state
    at gstelement.c line 2643
  • #17 rb_player_error_quark
  • #18 rb_player_open
  • #19 rb_shell_player_new
  • #20 rb_shell_player_new
  • #21 rb_shell_player_new
  • #22 rb_shell_player_playpause
  • #23 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #24 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #25 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #26 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0

Changing the 'alsasink' I had in my GConf key to 'alsasink device="hw:0"'
fixes the problem, but it would be really better to have ALSA support
working by default, and in all cases, I doubt any error of this kind should
generate a segfault.

This is using the latest Fedora Core Development 2.6 kernel and ALSA 1.0.2
userland tools from freshrpms.net.

I now also have another problem with rhythmbox which is that when arriving
near the end of the song currently being played, the playback simply stops
a few seconds before the end of the song and it never goes to the next. As
this is both with a new gstreamer and a new rhythmbox, I don't really know
which is to blame, I'll have to look more into it.
Comment 1 Benjamin Otte (Company) 2004-02-11 21:08:43 UTC
This is a bug in alsalib.
I am aware of this problem but I cannot fix it.

You'll need to file a bug there.
Comment 2 Thomas Vander Stichele 2004-02-24 15:42:34 UTC
how about making device=dev:hw0 the default for alsasink, because it's
the most sensible one to use ?
Comment 3 Benjamin Otte (Company) 2004-03-04 14:32:47 UTC
I don't agree that it's sensible to not use the device explicitly 
marked as default. Especially because the "default" (aka "plughw:0") 
device is supposed to support weird soundcards by doing the mixing 
automatically.

It's an alsalib bug plain and simple.

I just fiogured out alsa got a bugtracker. Please see
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?
bug_id=0000116
Comment 4 Benjamin Otte (Company) 2004-03-04 14:35:31 UTC
*** Bug 136174 has been marked as a duplicate of this bug. ***
Comment 5 Benjamin Otte (Company) 2004-03-04 14:47:25 UTC
*** Bug 135422 has been marked as a duplicate of this bug. ***
Comment 6 Benjamin Otte (Company) 2004-03-04 14:51:11 UTC
*** Bug 135422 has been marked as a duplicate of this bug. ***
Comment 7 David Schleef 2004-03-18 22:30:27 UTC
*** Bug 136815 has been marked as a duplicate of this bug. ***
Comment 8 Benjamin Otte (Company) 2004-03-24 16:15:24 UTC
*** Bug 137891 has been marked as a duplicate of this bug. ***
Comment 9 Colin Walters 2004-03-27 20:54:39 UTC
*** Bug 137994 has been marked as a duplicate of this bug. ***
Comment 10 noa 2004-04-11 19:50:49 UTC
I have a soundcard that exhibits this problem and am willing to work with the
alsa team on getting this resolved, however their bug tracking system seems
broken so I can't sign up there. Trying to reach the admin via email...
Comment 11 noa 2004-04-15 07:20:20 UTC
Benjamin: I still can't sign up for an account on
https://bugtrack.alsa-project.org/alsa-bug/ and get no response from
webmaster@alsa-project.org Could you perhaps add a notice to the bug in question
and perhaps it gets noticed. You are free to add my email address noa@resare.com.
Comment 12 Johan (not receiving bugmail) Dahlin 2004-04-20 14:02:57 UTC
*** Bug 140589 has been marked as a duplicate of this bug. ***
Comment 13 Ronald Bultje 2004-05-08 19:17:32 UTC
*** Bug 141984 has been marked as a duplicate of this bug. ***
Comment 14 Ronald Bultje 2004-05-16 21:04:19 UTC
*** Bug 137052 has been marked as a duplicate of this bug. ***
Comment 15 Andrew Sobala 2004-05-16 22:01:47 UTC
*** Bug 133778 has been marked as a duplicate of this bug. ***
Comment 16 Benjamin Otte (Company) 2004-06-09 17:13:38 UTC
Thanks to Zaheer Merali for providing me with an ssh account, so I was able to
trace this bug.

GStreamer now successfully works around this bug in alsa.
Comment 17 Sitsofe Wheeler 2004-06-16 14:31:00 UTC
Hi Benjamin,

This has apparently been fixed in CVS but glancing through
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog I could
not find out when / where. Any chance you can ping this bug and or
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=121671 when an official
version of gstreamer (as opposed to a CVS) is released with this fixed?
Comment 18 Christophe Fergeau 2004-06-16 14:59:37 UTC
The change you are interested in is 
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ChangeLog?r1=1.755&r2=1.756

This will be fixed in the next version of gst-plugins (0.8.2) which should be
out "soon" 
Comment 19 Elijah Newren 2004-07-09 16:04:12 UTC
*** Bug 147080 has been marked as a duplicate of this bug. ***
Comment 20 Elijah Newren 2004-07-09 16:04:44 UTC
*** Bug 146485 has been marked as a duplicate of this bug. ***
Comment 21 Elijah Newren 2004-07-09 16:06:05 UTC
*** Bug 143476 has been marked as a duplicate of this bug. ***
Comment 22 Elijah Newren 2004-11-08 21:45:53 UTC
*** Bug 149432 has been marked as a duplicate of this bug. ***