Bug 496608 - pulseaudio stops playing sound and hangs all sound-playing applications
Summary: pulseaudio stops playing sound and hangs all sound-playing applications
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-20 10:42 UTC by Kieran Clancy
Modified: 2014-10-06 11:10 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-18 09:17:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Log of pulseaudio -vvvv up to and just after the bug was triggered (203.62 KB, text/plain)
2009-04-20 10:42 UTC, Kieran Clancy
no flags Details
GDB backtrace of pulseaudio & audacious client (7.56 KB, text/plain)
2009-04-23 23:50 UTC, Kieran Clancy
no flags Details
Log "pulseaudio --log-level=4" (828.48 KB, text/plain)
2009-07-25 17:09 UTC, Ví­ctor Daniel Martínez O.
no flags Details
"pacmd ls" output (14.54 KB, text/plain)
2009-08-11 03:19 UTC, Ví­ctor Daniel Martínez O.
no flags Details

Description Kieran Clancy 2009-04-20 10:42:04 UTC
Created attachment 340314 [details]
Log of pulseaudio -vvvv up to and just after the bug was triggered

Description of problem:
This is an off-shoot of bug 472339 - I reported this problem there but it was thought to be due to a problem with snd_pcm_avail() which has been fixed in the latest kernels.

What happens is that sound will suddenly stop playing, though pulseaudio is still responsive. New applications can start and initialise streams which pulseaudio can see, but as soon as the application tries to send some sound data, polls to the application's file descriptor time out (and no sound is heard). This problem can occur with any sound playing application, including audacious, totem, mplayer etc. Pulseaudio needs to be restarted to fix the problem.

My sound driver is snd-intel8x0
My sound card is: 00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)

Version-Release number of selected component (if applicable):
kernel-2.6.29.1-30.fc10.i686
pulseaudio-0.9.14-1.fc10.i386

How reproducible:
Seems fairly random - it can happen 3 times in an hour, then not happen for a day.

Steps to Reproduce:
1. Play some sound. I have no idea what actually triggers it.
2. After a while, sound stops playing. Any application from this point that
tries to play something hangs or busy waits.
3. Pulseaudio usually needs to be restarted to make sound work again. Occasionally it works again after you stop the sound, leave it for a bit and try playing the sound a few more times.

Additional info:
See first few comments of bug 362339.

I will attach a log of when this last happened. Sorry that it's very long -- it took quite a while to trigger on this particular occasion. I have stripped out duplicate lines; they are replaced with the line and a notice about how many times they were repeated.

The bug occurred ~100 lines before the end (I have marked the place in the file), and after that I tried to stop and play the sound again, so you can see a reconnection and where it starts to complain about a massive underrun because the client times out when trying to send any audio data.

There are many messages about underruns because it seems pulseaudio performs very badly on my machine - regularly using 15% of my 2.8GHz CPU. Only some of these underruns are audible though so while annoying I can live with it and they don't seem to have any direct relation to the problem.

Comment 1 Lennart Poettering 2009-04-23 22:11:44 UTC
Smells like a driver bug.

Could you please get me a backtrace overall streams of PA when this happens?

You'd need to install debug symbols for that. Then just reproduce the issue and attach to the running process with gdb. Then do a "bt full" on all threads. Do you think you can do that?

Comment 2 Kieran Clancy 2009-04-23 23:02:41 UTC
Sure - I will do that next time it happens. I tried that once before but I hadn't thought to do a full backtrace, so I just got the active thread and found nothing useful.

Comment 3 Kieran Clancy 2009-04-23 23:50:37 UTC
Created attachment 341037 [details]
GDB backtrace of pulseaudio & audacious client

Comment 4 Ví­ctor Daniel Martínez O. 2009-07-25 17:09:53 UTC
Created attachment 355152 [details]
Log "pulseaudio --log-level=4"

I have the same problem.

Comment 5 Lennart Poettering 2009-07-31 14:27:35 UTC
Hmm, the backtrace shows nothing. Could you please provide the output of "pacmd ls" when this happens?

Comment 6 Ví­ctor Daniel Martínez O. 2009-08-11 03:19:45 UTC
Created attachment 356970 [details]
"pacmd ls" output

Comment 7 Lennart Poettering 2009-09-07 22:18:08 UTC
Is this F10 specific? Can you reproduce this on F11?

Comment 8 Adam Pribyl 2009-09-18 10:10:58 UTC
For refference see also bug 524007

Comment 9 Michael Schwendt 2009-09-21 08:53:12 UTC
Lennart, this is reproducible on F11, but happens also without PulseAudio. For example, see the thread

  https://www.redhat.com/archives/fedora-devel-list/2009-July/msg00554.html

where I reproduced it _without_ PulseAudio and saw the same problems with poll(). For a couple of weeks I've thought it had been fixed by a kernel upgrade that touched ALSA (which turnt deadlocks into underruns for me), but it's still there according to other users and not specific to Audacious.

Comment 10 Lennart Poettering 2009-10-14 21:54:01 UTC
Ok, reassigning to the kernel then.

Comment 11 Bug Zapper 2009-11-18 11:47:39 UTC
This message is a reminder that Fedora 10 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 10.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '10'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 10's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 10 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 12 Bug Zapper 2009-12-18 09:17:38 UTC
Fedora 10 changed to end-of-life (EOL) status on 2009-12-17. Fedora 10 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


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