Public bug reported:

Pulseaudio stops playing sound and starts hogging the cpu with regular
intervals since updating to karmic. After hogging around for a bit it
dies, only to be revived like a Phoenix a few moments later. This new
instance will play sound for a bit but eventually it also fails (rinse,
repeat).

Running pulseaudio -v in a terminal gives the following insight:

I: alsa-sink.c: Underrun!
N: alsa-sink.c: Increasing wakeup watermark to 40.00 ms
E: alsa-util.c: snd_pcm_avail() returned a value that is exceptionally large: 
4294956660 bytes (24347826 ms).
E: alsa-util.c: Most likely this is a bug in the ALSA driver 'snd_intel8x0'. 
Please report this issue to the ALSA developers.
E: alsa-util.c: snd_pcm_dump():
E: alsa-util.c: Hardware PCM card 0 'Intel 82801CA-ICH3' device 0 subdevice 0
E: alsa-util.c: Its setup is:
E: alsa-util.c:   stream       : PLAYBACK
E: alsa-util.c:   access       : MMAP_INTERLEAVED
E: alsa-util.c:   format       : S16_LE
E: alsa-util.c:   subformat    : STD
E: alsa-util.c:   channels     : 2
E: alsa-util.c:   rate         : 44100
E: alsa-util.c:   exact rate   : 44100 (44100/1)
E: alsa-util.c:   msbits       : 16
E: alsa-util.c:   buffer_size  : 16384
E: alsa-util.c:   period_size  : 16384
E: alsa-util.c:   period_time  : 371519
E: alsa-util.c:   tstamp_mode  : ENABLE
E: alsa-util.c:   period_step  : 1
E: alsa-util.c:   avail_min    : 16384
E: alsa-util.c:   period_event : 0
E: alsa-util.c:   start_threshold  : -1
E: alsa-util.c:   stop_threshold   : 1073741824
E: alsa-util.c:   silence_threshold: 0
E: alsa-util.c:   silence_size : 0
E: alsa-util.c:   boundary     : 1073741824
E: alsa-util.c:   appl_ptr     : 4885097
E: alsa-util.c:   hw_ptr       : 4866054
E: alsa-util.c: snd_pcm_delay() returned a value that is exceptionally large: 
393188 bytes (2228 ms).
E: alsa-util.c: Most likely this is a bug in the ALSA driver 'snd_intel8x0'. 
Please report this issue to the ALSA developers.
E: alsa-util.c: snd_pcm_dump():
E: alsa-util.c: Hardware PCM card 0 'Intel 82801CA-ICH3' device 0 subdevice 0
E: alsa-util.c: Its setup is:
E: alsa-util.c:   stream       : PLAYBACK
E: alsa-util.c:   access       : MMAP_INTERLEAVED
E: alsa-util.c:   format       : S16_LE
E: alsa-util.c:   subformat    : STD
E: alsa-util.c:   channels     : 2
E: alsa-util.c:   rate         : 44100
E: alsa-util.c:   exact rate   : 44100 (44100/1)
E: alsa-util.c:   msbits       : 16
E: alsa-util.c:   buffer_size  : 16384
E: alsa-util.c:   period_size  : 16384
E: alsa-util.c:   period_time  : 371519
E: alsa-util.c:   tstamp_mode  : ENABLE
E: alsa-util.c:   period_step  : 1
E: alsa-util.c:   avail_min    : 16384
E: alsa-util.c:   period_event : 0
E: alsa-util.c:   start_threshold  : -1
E: alsa-util.c:   stop_threshold   : 1073741824
E: alsa-util.c:   silence_threshold: 0
E: alsa-util.c:   silence_size : 0
E: alsa-util.c:   boundary     : 1073741824
E: alsa-util.c:   appl_ptr     : 4964477
E: alsa-util.c:   hw_ptr       : 4866180
W: ratelimit.c: 4203 events suppressed
W: ratelimit.c: 4572 events suppressed
W: ratelimit.c: 4301 events suppressed
W: ratelimit.c: 4232 events suppressed
Soft CPU time limit exhausted, terminating.
E: cpulimit.c: Received request to terminate due to CPU overload.
I: main.c: Daemon shutdown initiated.
I: module.c: Unloading "module-suspend-on-idle" (index: #0).
I: module.c: Unloaded "module-suspend-on-idle" (index: #0).
I: module.c: Unloading "module-device-restore" (index: #1).
I: module.c: Unloaded "module-device-restore" (index: #1).
I: module.c: Unloading "module-stream-restore" (index: #2).
I: module.c: Unloaded "module-stream-restore" (index: #2).
I: module.c: Unloading "module-card-restore" (index: #3).
I: module.c: Unloaded "module-card-restore" (index: #3).
I: module.c: Unloading "module-augment-properties" (index: #4).
I: module.c: Unloaded "module-augment-properties" (index: #4).
I: module.c: Unloading "module-alsa-card" (index: #5).
I: sink-input.c: Freeing input 0 "'Een Manier Om Thuis Te Komen' by 'Blof'"
I: sink.c: Freeing sink 0 "alsa_output.pci_8086_2485_sound_card_0"
I: source.c: Freeing source 0 "alsa_output.pci_8086_2485_sound_card_0.monitor"
I: source.c: Freeing source 1 "alsa_input.pci_8086_2485_sound_card_0"
I: card.c: Freed 0 "alsa_card.pci_8086_2485_sound_card_0"
I: module.c: Unloaded "module-alsa-card" (index: #5).
I: module.c: Unloading "module-hal-detect" (index: #6).
I: module.c: Unloaded "module-hal-detect" (index: #6).
I: module.c: Unloading "module-esound-protocol-unix" (index: #7).
I: module.c: Unloaded "module-esound-protocol-unix" (index: #7).
I: module.c: Unloading "module-native-protocol-unix" (index: #8).
I: client.c: Freed 1 "Rhythmbox Music Player"
I: module.c: Unloaded "module-native-protocol-unix" (index: #8).
I: module.c: Unloading "module-esound-protocol-tcp" (index: #9).
I: module.c: Unloaded "module-esound-protocol-tcp" (index: #9).
I: module.c: Unloading "module-native-protocol-tcp" (index: #10).
I: module.c: Unloaded "module-native-protocol-tcp" (index: #10).
I: module.c: Unloading "module-zeroconf-publish" (index: #11).
I: module.c: Unloaded "module-zeroconf-publish" (index: #11).
I: module.c: Unloading "module-default-device-restore" (index: #12).
I: module.c: Unloaded "module-default-device-restore" (index: #12).
I: module.c: Unloading "module-rescue-streams" (index: #13).
I: module.c: Unloaded "module-rescue-streams" (index: #13).
I: module.c: Unloading "module-always-sink" (index: #14).
I: module.c: Unloaded "module-always-sink" (index: #14).
I: module.c: Unloading "module-console-kit" (index: #15).
I: client.c: Freed 0 "ConsoleKit Session /org/freedesktop/ConsoleKit/Session1"
I: module.c: Unloaded "module-console-kit" (index: #15).
I: module.c: Unloading "module-position-event-sounds" (index: #16).
I: module.c: Unloaded "module-position-event-sounds" (index: #16).
I: module.c: Unloading "module-cork-music-on-phone" (index: #17).
I: module.c: Unloaded "module-cork-music-on-phone" (index: #17).
I: main.c: Daemon terminated.

pulseaudio -vvv adds loads of these to the mix:
D: protocol-native.c: Requesting rewind due to rewrite.
D: alsa-sink.c: Requested to rewind 65536 bytes.
D: alsa-sink.c: Mhmm, actually there is nothing to rewind.
...
... ad nauseam

In other words, pulseaudio self-destroys because it is hogging the CPU.
That in itself is good, the bad bit is what causes this hogging in the
first place. The finger is pointed at alsa here, to be more specific
towards the snd_intel8x0 driver. Then again there are similar reports
about snd_usb_audio and other drivers so it is still possible that the
root cause to this problem lies inside alsa or even pulseaudio itself.

There is nothing interesting in dmesg when these interruptions occur.

ProblemType: Bug
Architecture: i386
Date: Wed Jun 10 18:08:38 2009
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=UUID=071908d6-e4be-411f-ad61-9b35a018aa8a
Lsusb:
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 002: ID 0bb4:0bce High Tech Computer Corp. Vario MDA
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: IBM 26474MG
Package: linux-image-2.6.30-8-generic 2.6.30-8.9
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.30-8-generic 
root=UUID=b728ff02-8dd3-44ad-ab8c-c9159b1f0bcb ro quiet splash
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.30-8.9-generic
RelatedPackageVersions: linux-backports-modules-2.6.30-8-generic N/A
SourcePackage: linux
Uname: Linux 2.6.30-8-generic i686
dmi.bios.date: 07/06/2004
dmi.bios.vendor: IBM
dmi.bios.version: 1AET62WW (1.18 )
dmi.board.name: 26474MG
dmi.board.vendor: IBM
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: IBM
dmi.chassis.version: Not Available
dmi.modalias: 
dmi:bvnIBM:bvr1AET62WW(1.18):bd07/06/2004:svnIBM:pn26474MG:pvrNotAvailable:rvnIBM:rn26474MG:rvrNotAvailable:cvnIBM:ct10:cvrNotAvailable:
dmi.product.name: 26474MG
dmi.product.version: Not Available
dmi.sys.vendor: IBM

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
Pulseaudio dies after hogging the cpu for a while, points blame at alsa: 'Mhmm, 
actually there is nothing to rewind'
https://bugs.launchpad.net/bugs/385616
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to