Bug 73461

Summary: cpu overload with alsa 1.0.1
Product: [Unmaintained] arts Reporter: Giovanni Venturi <giovanni>
Component: generalAssignee: Stefan Westerfeld <stefan>
Status: RESOLVED FIXED    
Severity: normal CC: andreas.krebl, regnaultn
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Fix
Small test app for verification

Description Giovanni Venturi 2004-01-25 14:27:01 UTC
Version:           sconosciuto (using KDE 3.1.5)
Installed from:    compiled sources
Compiler:          gcc version 3.3.2
OS:          Linux (i686) release 2.4.24

Sometimes at KDE startup or when kaboodle play a song KDE say me:
"Sound server fatal error: cpu overload, aborting."
It's happening with KDE 3.1.5 qt 3.1.2 all compiled from CVS KDE_3_1_BRANCH and with alsa 1.0.1. I recompiled alsa and kdelibs again, but nothin.
(It happens also with KDE 3_2_BRANCH but when I installed alsa 1.0.1, I don't recompiled 3.2 branch.)
Comment 1 Bernhard Rosenkraenzer 2004-01-27 11:30:43 UTC

*** This bug has been marked as a duplicate of 73264 ***
Comment 2 Bernhard Rosenkraenzer 2004-01-27 14:02:37 UTC
Created attachment 4377 [details]
Fix

Fix for bug 73461
Comment 3 Bernhard Rosenkraenzer 2004-01-27 14:05:02 UTC
Created attachment 4378 [details]
Small test app for verification

Adding a test application to prove the ALSA detection I'm using in attachment
#4377 [details] actually works - compile with gcc -o alsatest alsatest.c -lasound and run
it w/ different sound systems loaded for a quick test of the checking code.
Comment 4 Bernhard Rosenkraenzer 2004-02-10 09:25:46 UTC
*** Bug 73264 has been marked as a duplicate of this bug. ***
Comment 5 Bernhard Rosenkraenzer 2004-02-10 09:26:38 UTC
Reopen [Fix is attached here, not in the resolved:duplicate bug]
Comment 6 Bernhard Rosenkraenzer 2004-02-10 09:28:30 UTC
*** Bug 74171 has been marked as a duplicate of this bug. ***
Comment 7 Giovanni Venturi 2004-02-18 11:57:41 UTC
> Fix
>
> Fix for bug 73461
I didn't understand but this bug is closed or not because I didn't see your 
patch into arts module on CVS. And it happens also with alsa 1.0.2 of the 
kernel 2.6.3. On recently KDE 3.2 BRANCH.

Comment 8 Giovanni Venturi 2004-02-19 01:29:35 UTC
I removed autodetect and I set ALSA directly and now it works. The bug can be 
closed. Thank you.

Comment 9 Arnold Krille 2004-02-20 17:53:36 UTC
Autodetection of alsa should be fixed. In the meantime set the output to alsa directly, not autodetect...

Arnold
Comment 10 Luc de Louw 2004-03-14 21:40:48 UTC
Seems not to fixed yet, at least not in the current HEAD.
I'm using alsa 1.0.3, Kernel 2.6.4, KDE HEAD as of 2004-03-14

rgds

Luc
Comment 11 Jannick Kuhr 2004-08-28 22:54:40 UTC
I still get "Sound server fatal error: cpu overload, aborting." using arts with Gentoo on AMD64, KDE 3.3.0 and even if I select alsa manually.

In addition the system freezes, if I check "realtime priority" and play some sound.

I'm using alsa-drivers of kernel 2.6.7 (emu10k1 & via82xx)

JAK
Comment 12 Allan Sandfeld 2004-08-28 23:03:37 UTC
That is likely a different issue. Please report the output of starting artsd with debug ("artsd -l0"). And open a new bug-report if the ALSA-driver is loaded.
Comment 13 Jannick Kuhr 2004-08-29 10:47:56 UTC
That's the output:

artsd version is 1.3.0
gsl: using Unix98 pthreads directly for mutexes and conditions
[artsd:  6484] SoundServerStartup --> got lock
autodetecting driver:
 - toss: 4
 - esd: -1
 - null: -1
 - alsa: 15
 - oss: 10
... which means we'll default to alsa
ALSA driver: default
buffering: 7 fragments with 1024 bytes (audio latency is 40.6 ms)
ALSA lib pcm_hw.c:549:(snd_pcm_hw_start) SNDRV_PCM_IOCTL_START failed: Broken pipe
Closing ALSA-driver
virtualize StereoVolumeControl
ALSA driver: default
buffering: 7 fragments with 1024 bytes (audio latency is 40.6 ms)
ALSA lib pcm_hw.c:549:(snd_pcm_hw_start) SNDRV_PCM_IOCTL_START failed: Broken pipe
audio format is 44100 Hz, 16 bits, 2 channels
addDirectory(/usr/kde/3.3/lib/mcop,)
addDirectory(/usr/kde/3.3/lib/mcop/Arts,Arts)
addDirectory(/usr/kde/3.3/lib/mcop/Arts/Environment,Arts::Environment)
addDirectory(/usr/kde/3.3/lib/mcop/Noatun,Noatun)
addDirectory(/usr/kde/3.3/lib/mcop/Amarok,Amarok)
addDirectory(/home/jannick/.mcop/trader-cache,)
can't register Arts::MidiManager
There are already artsd objects registered, looking if they are active...

Error: Can't add object reference (probably artsd is already running).
       If you are sure it is not already running, remove the relevant files:

       /tmp/mcop-jannick/Arts_SoundServerV2
       /tmp/mcop-jannick/Arts_SoundServer
       /tmp/mcop-jannick/Arts_SimpleSoundServer
       /tmp/mcop-jannick/Arts_PlayObjectFactory
       /tmp/mcop-jannick/Arts_AudioManager

Synth_PLAY: closing audio fd
Closing ALSA-driver
[artsd:  6484] SoundServerStartup <-- released lock