Bug 124264 - rhythmbox hangs other programs while paused when using esd
rhythmbox hangs other programs while paused when using esd
Product: Fedora
Classification: Fedora
Component: rhythmbox (Show other bugs)
i586 Linux
medium Severity medium
: ---
: ---
Assigned To: Colin Walters
Depends On:
  Show dependency treegraph
Reported: 2004-05-25 06:26 EDT by Sitsofe Wheeler
Modified: 2007-11-30 17:10 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-09-03 14:36:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Sitsofe Wheeler 2004-05-25 06:26:22 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.6)
Gecko/20040518 Firefox/0.8

Description of problem:
If you are using esd output for sound events and gaim has some sounds
queued up which have not been sent when you quit it will hang with a
greyed out window until such a time that those sounds are played.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Start gstreamer-properties and set the input and output sinks to ESD
2. Start gaim go to Tools -> Preferences | Sounds and change the
method to ESD
3. Start rhythmbox and play some music
4. While the music is still playing press the pause button
5. Go back to gaim and do something that generates a sound event (on
my setup a sound is generated each time a message is sent to me so I
open a chat to myself and send a few messages). No sounds will be heard.
6. In the main gaim window go to Buddies -> Quit

Actual Results:  All open windows are still displayed but the contents
of widgets is not drawn so everything is grey and white.

Expected Results:  All gaim windows to close and for the app to exit.

Additional info:

Unpausing rhythmbox will play the queued up gaim events all at once
and let gaim exit.

Now it could be argued that this is actually a bug in rhythmbox /
gstreamer since I have seen some other selfish behaviour. rhythmbox
has a nasty habit of not actually freeing up the sound device when
music is paused. Thus if I have another app that plays sounds (e.g.
totem) that doesn't use esd, then once I have started playing music in
rhythmbox the only way to let the other app play sounds is to quit
rhythmbox entirely.
Comment 1 Luke Schierer 2004-05-25 10:38:05 EDT
make sure esd is actually running. 
Comment 2 Sitsofe Wheeler 2004-05-25 10:53:46 EDT
Yup esd is running (it was started by rhythmbox afaict). I was also
under the impression that gaim would start an esound as needed if it
wasn't already running.
Comment 3 David Arnold 2004-06-13 03:19:09 EDT
I have the same problem.  It's not just gaim though, if you enable
event sounds, anything that queues a sound (like starting a new
application) will be blocked until you unpause rhythmbox.
Comment 4 Sitsofe Wheeler 2004-06-14 12:08:23 EDT
I can confirm comment #3. I enabled sound events, paused rhythmbox,
tried to pop up an about box in Evolution and wound up hanging Evolution.

The question now becomes where to punt this bug off to. Is it a bug in
rhythmbox, gstreamer or esound? I'm guessing esound...
Comment 5 Sitsofe Wheeler 2004-06-14 12:15:07 EDT
Ok using totem with the esound plugin (not as easy as it sounds) I can
pause without causing the blocking that rhythmbox does so I'm going to
punt this over to rhythmbox.
Comment 6 Sitsofe Wheeler 2004-06-14 12:20:19 EDT
Reassigning to Colin Walters (since that is who most of the other
rhythmbox bugs are assigned to). Changing title. I hope this is right
and I apologise for getting the wrong component.
Comment 7 Luke Schierer 2004-06-14 13:59:45 EDT
1)gaim won't try to start esd (at least not directly)
2)i don't know if libao does (thus if libao does, gaim does try to
start it indirectly)
3)all sound events in gaim except the "command" option go throug libao. 
Comment 8 Sitsofe Wheeler 2004-06-15 02:36:35 EDT
Changing title agian to make a bit more sense.
Comment 9 David Arnold 2004-06-24 21:03:05 EDT
This maybe fixed in gst-plugins 0.8.2.  Here's a quote from
http://planet.gnome.org/news/ for June 23, 2004:

2004-06-13 Jan Schmidt
* ext/esd/esdsink.c: (gst_esdsink_change_state):
* ext/esd/esdsink.h:
Close the esd connection on pause, because esd will just wait -
blocking all other esd clients indefinitely.
Comment 10 Sitsofe Wheeler 2004-06-25 10:37:47 EDT
If so, I'd like to nominate gst-plugins for an updating in FC2 (bug
125270) since it will fix gstreamer ocassionally failing to open the
audio when using alsa ( bug 119958 ) and also possibly fix rhythmbox
hanging other programs when using esd (this bug).
Comment 12 David Arnold 2004-07-07 17:56:19 EDT
That fixed it!  No problems with pausing and esd on my system now.
Comment 13 Sitsofe Wheeler 2004-07-08 05:59:48 EDT
Yup, the testing packages fix the problem (but added a dependency on
libmusicbrainz that didn't used to be there). Resolve as FIXED?
Comment 14 Colin Walters 2004-09-03 14:36:36 EDT
Closing, thanks.

Note You need to log in before you can comment on or make changes to this bug.