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 144941 - alsasink assertion failure on ctrl+z and fg
alsasink assertion failure on ctrl+z and fg
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal normal
: 0.8.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-06-24 19:44 UTC by Christophe Fergeau
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christophe Fergeau 2004-06-24 19:44:44 UTC
If I use ctrl+z to stop gst-launch while it's playing, and then try to resume
playback, it dies complaining about alsa. If I revert to 5 days ago (Sticky
Date: 2004.06.19.19.42.37), it works properly

$ gst-launch-0.8 filesrc location=./Mes\ CDs/Gorillaz/Gorillaz/01\ -\
Re-Hash.mp3 ! spider ! alsasink
EXECUTION du tube en cours ...

[1]+  Stopped                 gst-launch-0.8 filesrc location=./Mes\
CDs/Gorillaz/Gorillaz/01\ -\ Re-Hash.mp3 ! spider ! alsasink
teuf@grincheux:/media/mp3$ fg
gst-launch-0.8 filesrc location=./Mes\ CDs/Gorillaz/Gorillaz/01\ -\ Re-Hash.mp3
! spider ! alsasink
ERROR (1088106097:775822)            alsa( 9155)
gstalsa.c(1278):gst_alsa_xrun_recovery:<alsasink0> (null)
ERROR (1088106097:776376)            alsa( 9155)
gstalsa.c(1278):gst_alsa_xrun_recovery:<alsasink0> Error starting audio after xrun
ERROR: from element /pipeline0/alsasink0: GStreamer encountered a general
supporting library error.
Additional debug info:
gstalsa.c(1278): gst_alsa_xrun_recovery: /pipeline0/alsasink0:
Error starting audio after xrun
[Invalid UTF-8] ERROR (1088106097:776828) \x1b[00m          
alsa\x1b[00m(\x1b[336m 9155\x1b[00m)
\x1b[00mgstalsa.c(1191):gst_alsa_pcm_wait:<alsasink0>\x1b[00m error waiting for
alsa pcm: (-4: Appel syst\xe8me interrompu)
ERROR (1088106097:776914)       scheduler( 9155)
gstoptimalscheduler.c(2392):gst_opt_scheduler_iterate:<GstOptScheduler@0x8186bb0>
in error state
Execution ended after 72 iterations (sum 2616729000 ns, average 36343458 ns, min
30000 ns, max 936929000 ns).
Comment 1 Christophe Fergeau 2004-07-05 15:11:25 UTC
It has been fixed by 
       * ext/alsa/gstalsa.c: (gst_alsa_xrun_recovery):
          use our own functions for restarting the alsa device.
        * ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event):
          I should apply patches myself - use MIN for the third argument, not
          the second, this fixes seeking

it seems, I can no longer reproduce with those patches applied, but I can if I
revert them.