Ticket #329 (closed defect: duplicate)

Opened 2 years ago

Last modified 19 months ago

CPU time limit stops deamon

Reported by: sladi Owned by: lennart
Milestone: Component: daemon
Keywords: cpu time limit daemon Cc: hhielscher@…, silfreed@…, thedave@…

Description

I have a problem because Pulseaudio just stops. I always listen to an internet readio mms stream and suddenly the music stops. I then have to restart Pulseaudio which I can use until the next shutdown of it. People in the IRC helped me to post the output here: http://pastebin.com/m286d0691 Then I also tried with '--no-cpu-limit' option. This caused Pulseaudio to use 99%-100% CPU according to top and I had to 'kill -9 PID#' it. The last line was 'I: protocol-native.c: connection died.' After that I did 'strace pulseaudio'. The output is here: http://pastebin.com/m72c9df3c

I use Debian Testing AMD64 an Creative X-Fi card, Pulseaudio 0.9.10, Kernel 2.6.25-2 and I listen using Totem Gstreamer Mozilla plugin (Iceweasel 3.0.1). My ~/.pulse/default.pa is here: http://pastebin.com/m721a74f3 ~/.asoundrc is: http://pastebin.com/m3b6af4f7

Attachments

pulseaudio-verbose-log-output-cpu-time-limit-exceeded.txt (4.7 kB) - added by silfreed 23 months ago.
pulseaudio -v log output when CPU time limit is exceeded (updated w/o line wraps)
pulseaudio-verbose-log-output-no-cpu-limit.txt (4.7 kB) - added by silfreed 23 months ago.
pulseaudio -v --no-cpu-limit log output when sound cuts out and CPU goes to 100%
lshw.txt (20.7 kB) - added by thedave 20 months ago.
Hardware listing of newjersey.banzai

Change History

Changed 2 years ago by sladi

I wanted to add that I have an AMDX2 dual core CPU. Also this seems similar to #245 but I can pause a stream just fine without 100% CPU usage.

Changed 2 years ago by lennart

Please note that the htting the CPU time limit is not a bug in itself. It is just the protection to not block your machine indefinitely in case a real bug happens.

Some versions of ALSA's "multi" module triggers readability too often. Please figure out if "multi" is in the pipeline for the alsa device that is opened.

Changed 2 years ago by manlypain

I have a core2 duo and I am also having this issue i use Ubuntu 64bit. I get the soft and hard cpu time out and pulse shuts down. I ran pulse from the command line after words and added the no-cpu-limit but it still stops working but it did not shut itself off like before. It put one of the cores of my cpu to 100. I could not get sound to play until i manually killed pulse and restarted it.

Everything works fine for like 10 minutes then it crashes. I have run tests to see if it crashing on a particular program but it crashes no matter what is using it. i will play music on a fresh reboot of the entire system and it will crash after a few minutes. it crashes on movies, music and flash. Each time pulse crashes it takes the other programs with it.

I use onboard sound from my Gigabyte GA-EX38t-DQ6 its a Realtek ALC889a in PA manager it show up as alsa_output.pci_8086_293e_sound_card_0_alsa_playback_0 and is described as ALSA PCM on front:0 (ALC882 Analog) via DMA i have it hooked up throught eh SPDIF

If you want any information let me know

Changed 2 years ago by sladi

Lennart, I don't have multi in the ALSA pipeline.

I responded to Lennart in the mailing list but maybe I should add it here. :)

Changed 23 months ago by hhielscher

  • cc hhielscher@… added

Changed 23 months ago by silfreed

I'm also experiencing the same problem. This typically happens for me when using Amarok w/ the Xine backend going to pulseaudio.

When I run it from the cli w/o -D I see the Soft/Hard CPU errors shortly after the music stops.

If I run it with the '--no-cpu-limit' the playback lasts longer but then the audio cuts out and pulseaudio uses 100% of one CPU just like others.

Let me know if there's anything I can do to help debug this.

pulseaudio 0.9.10 - pulseaudio-0.9.10-2.fc9.x86_64

Changed 23 months ago by silfreed

  • cc silfreed@… added

Changed 23 months ago by silfreed

pulseaudio -v log output when CPU time limit is exceeded (updated w/o line wraps)

Changed 23 months ago by silfreed

pulseaudio -v --no-cpu-limit log output when sound cuts out and CPU goes to 100%

Changed 23 months ago by silfreed

Attached are two verbose log outputs from pulseaudio runs; one with and one without --no-cpu-limit. There seems to be very little difference (other than I have to background and kill -9 pulseaudio when it dies from using the --no-cpu-limit switch).

This time adding the switch didn't extend the time audio worked for me like it did the previous time; both times audio only lasted for 1-2 minutes before cutting out.

Currently I have a VLC process eating up 200% cpu (dual core) that *may* be affecting how quickly pulseaudio cuts out, but I have had lots of experience previously where pulseaudio cuts out quickly while under low CPU usage.

The only other anecdotal evidence I can offer is that it seems that pulseaudio will run longer between cutting out if I let it dead for a period of time before I restart it. I haven't performed *any* analysis to determine if that's actually the case or not.

Changed 22 months ago by boi

I'm experiencing the same problem on my machine. I'm running Fedora 9 x86_64, which currently uses PulseAudio 0.9.8. I've experienced this problem since this summer (not sure exactly when).

The machine is an Athon X2 3800+, with AMD690 chipset ("shared memory" - I don't play games, so I don't care about blazing graphics performance) and the ATI SB600. I believe the codec is Realtek ALC883.

$ uname -r -v -m -o
2.6.26.6-49.fc8 #1 SMP Fri Oct 17 15:33:32 EDT 2008 x86_64 GNU/Linux

$ rpm -q pulseaudio
pulseaudio-0.9.8-5.fc8

$ cat /proc/asound/cards [[BR]]

 0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfe020000 irq 16

The only message from the driver I see at all occurs always right after starting PulseAudio: Nov 20 09:11:37 freebie kernel: hda-intel: Invalid position buffer, using LPIB read method instead.

I've tried using the position_fix parameter, but to no avail. To be honest, I didn't try much with kernel module parameters. I don't have issues with my sound not working at all or excessive skipping, which is what usually pops up when you look for snd-hda-intel parameters.

I can actually somewhat reproduce the problems: when I scroll a page in Firefox, either by keypresses or mouse, music sometimes skips or even hangs completely. If I restart PulseAudio by hand, the problem will usually pop up again, and I'll get the dreaded CPU limit exhausted messages. Other events seem to trigger this as well (eg. screen unblanking, switching desktops), but not nearly as reliably.

I've also seen and heard it stop when I wasn't even close to my computer, so user input is not the only trigger. Nor does my system have to be really busy when sound goes dead.

Applications don't seem to matter. I have the same issues with Amarok, vlc, mplayer and Flash.

I hope this is useful. Feel free to contact me if you need more info - it is really annoying. Last few weeks, I sometimes had to restart the bugger 10 times a day.

Changed 20 months ago by candrews

I have used pulseaudio 0.9.13 since the end of October when it became available in Gentoo, and never encountered this problem. I just upgraded to kernel 2.6.28, and immediately this problem appeared. I was able to avoid it by using the --no-cpu-limit parameter, and haven't encountered any negative affects of that yet. I hope this information helps.

Changed 20 months ago by thedave

Just to bump this and to add more detail, I am having the same issues in Fedora 10 x86_64. I am using the coax PCM output on the Soundblaster card.

My hardware config is:

[thedave@newjersey ~]$ uname -a Linux newjersey.banzai 2.6.27.9-159.fc10.x86_64 #1 SMP Tue Dec 16 14:47:52 EST 2008 x86_64 x86_64 x86_64 GNU/Linux [thedave@newjersey ~]$ rpm --query pulseaudio pulseaudio-0.9.13-6.fc10.x86_64 [thedave@newjersey ~]$ lspci -v 00:00.0 Host bridge: nVidia Corporation Device 0a80 (rev b1)

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: bus master, 66MHz, fast devsel, latency 0

00:00.1 RAM memory: nVidia Corporation Device 0a88 (rev b1)

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: bus master, 66MHz, fast devsel, latency 0

00:03.0 ISA bridge: nVidia Corporation Device 0aac (rev b2)

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: bus master, 66MHz, fast devsel, latency 0 I/O ports at 4f00 [size=256]

00:03.1 RAM memory: nVidia Corporation Device 0aa4 (rev b1)

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: 66MHz, fast devsel

00:03.2 SMBus: nVidia Corporation Device 0aa2 (rev b1)

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: 66MHz, fast devsel, IRQ 15 I/O ports at 4900 [size=64] I/O ports at 4d00 [size=64] I/O ports at 4e00 [size=64] Capabilities: <access denied>

00:03.3 RAM memory: nVidia Corporation Device 0a89 (rev b1)

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: 66MHz, fast devsel

00:03.4 RAM memory: nVidia Corporation Device 0a98 (rev b1)

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: 66MHz, fast devsel

00:03.5 Co-processor: nVidia Corporation Device 0aa3 (rev b1)

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 14 Memory at fad80000 (32-bit, non-prefetchable) [size=512K]

00:04.0 USB Controller: nVidia Corporation Device 0aa5 (rev b1) (prog-if 10 [OHCI])

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22 Memory at fad7f000 (32-bit, non-prefetchable) [size=4K] Capabilities: <access denied> Kernel driver in use: ohci_hcd

00:04.1 USB Controller: nVidia Corporation Device 0aa6 (rev b1) (prog-if 20 [EHCI])

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20 Memory at fad7ec00 (32-bit, non-prefetchable) [size=256] Capabilities: <access denied> Kernel driver in use: ehci_hcd

00:06.0 USB Controller: nVidia Corporation Device 0aa7 (rev b1) (prog-if 10 [OHCI])

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 21 Memory at fad7d000 (32-bit, non-prefetchable) [size=4K] Capabilities: <access denied> Kernel driver in use: ohci_hcd

00:06.1 USB Controller: nVidia Corporation Device 0aa9 (rev b1) (prog-if 20 [EHCI])

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 23 Memory at fad7e800 (32-bit, non-prefetchable) [size=256] Capabilities: <access denied> Kernel driver in use: ehci_hcd

00:08.0 Audio device: nVidia Corporation Device 0ac0 (rev b1)

Subsystem: ASUSTeK Computer Inc. Device 82fe Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22 Memory at fad78000 (32-bit, non-prefetchable) [size=16K] Capabilities: <access denied> Kernel driver in use: HDA Intel Kernel modules: snd-hda-intel

00:09.0 PCI bridge: nVidia Corporation Device 0aab (rev b1) (prog-if 01 [Subtractive decode])

Flags: bus master, 66MHz, fast devsel, latency 0 Bus: primary=00, secondary=01, subordinate=01, sec-latency=64 I/O behind bridge: 0000d000-0000dfff Memory behind bridge: fae00000-faefffff Capabilities: <access denied>

00:0a.0 Ethernet controller: nVidia Corporation Device 0ab0 (rev b1)

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20 Memory at fad7c000 (32-bit, non-prefetchable) [size=4K] I/O ports at c480 [size=8] Memory at fad7e400 (32-bit, non-prefetchable) [size=256] Memory at fad7e000 (32-bit, non-prefetchable) [size=16] Capabilities: <access denied> Kernel driver in use: forcedeth Kernel modules: forcedeth

00:0b.0 IDE interface: nVidia Corporation Device 0ab4 (rev b1) (prog-if 85 [Master SecO PriO])

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 21 I/O ports at c400 [size=8] I/O ports at c080 [size=4] I/O ports at c000 [size=8] I/O ports at bc00 [size=4] I/O ports at b880 [size=16] Memory at fad76000 (32-bit, non-prefetchable) [size=8K] Capabilities: <access denied> Kernel driver in use: ahci Kernel modules: ata_generic, pata_acpi

00:0c.0 PCI bridge: nVidia Corporation Device 0ac4 (rev b1) (prog-if 00 [Normal decode])

Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=02, subordinate=02, sec-latency=0 Capabilities: <access denied> Kernel driver in use: pcieport-driver Kernel modules: shpchp

00:10.0 PCI bridge: nVidia Corporation Device 0aa0 (rev b1) (prog-if 00 [Normal decode])

Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=03, subordinate=03, sec-latency=0 I/O behind bridge: 0000e000-0000efff Memory behind bridge: faf00000-fbffffff Prefetchable memory behind bridge: 00000000e0000000-00000000f9ffffff Capabilities: <access denied> Kernel modules: shpchp

00:15.0 PCI bridge: nVidia Corporation Device 0ac6 (rev b1) (prog-if 00 [Normal decode])

Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=04, subordinate=04, sec-latency=0 Capabilities: <access denied> Kernel driver in use: pcieport-driver Kernel modules: shpchp

01:06.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)

Subsystem: Creative Labs SB0090 Audigy Player Flags: bus master, medium devsel, latency 64, IRQ 18 I/O ports at dc00 [size=32] Capabilities: <access denied> Kernel driver in use: EMU10K1_Audigy Kernel modules: snd-emu10k1

01:06.1 Input device controller: Creative Labs SB Audigy Game Port (rev 03)

Subsystem: Creative Labs SB Audigy MIDI/Game Port Flags: bus master, medium devsel, latency 64 I/O ports at d880 [size=8] Capabilities: <access denied> Kernel driver in use: Emu10k1_gameport Kernel modules: emu10k1-gp

01:06.2 FireWire? (IEEE 1394): Creative Labs SB Audigy FireWire? Port (prog-if 10 [OHCI])

Subsystem: Creative Labs SB Audigy FireWire? Port Flags: bus master, medium devsel, latency 64, IRQ 19 Memory at faeff800 (32-bit, non-prefetchable) [size=2K] Memory at faef8000 (32-bit, non-prefetchable) [size=16K] Capabilities: <access denied> Kernel driver in use: firewire_ohci Kernel modules: firewire-ohci

03:00.0 VGA compatible controller: nVidia Corporation Device 086c (rev b1) (prog-if 00 [VGA controller])

Subsystem: ASUSTeK Computer Inc. Device 8356 Flags: bus master, fast devsel, latency 0, IRQ 23 Memory at fb000000 (32-bit, non-prefetchable) [size=16M] Memory at e0000000 (64-bit, prefetchable) [size=256M] Memory at f8000000 (64-bit, prefetchable) [size=32M] I/O ports at ec00 [size=128] [virtual] Expansion ROM at fafe0000 [disabled] [size=128K] Capabilities: <access denied> Kernel driver in use: nvidia Kernel modules: nvidiafb, nvidia

Changed 20 months ago by thedave

Hardware listing of newjersey.banzai

Changed 20 months ago by thedave

  • cc thedave@… added

Changed 19 months ago by lennart

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of #435

Note: See TracTickets for help on using tickets.