xfce4-volumed takes 100% cpu when system is idle for some time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GStreamer |
Invalid
|
Medium
|
|||
Xfce4 Mixer |
Fix Released
|
Critical
|
|||
Xfce4 Volumed |
Incomplete
|
High
|
Steve Dodier-Lazaro | ||
gstreamer0.10 (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
xfce4-volumed (Ubuntu) |
Invalid
|
Medium
|
Steve Dodier-Lazaro |
Bug Description
I guess this is not a bug directly in xfce4-volumed, but somewhere else, but so far I don't know yet what happens exactly. Every time when my system is idle for some time and the display goes into suspend mode, xfce4-volumed will start to take 100% cpu. Definitely not what I want from an idle system...
From top output with threading enabled I see e.g.
Tasks: 490 total, 4 running, 400 sleeping, 0 stopped, 86 zombie
Cpu(s): 26.1%us, 31.5%sy, 0.0%ni, 42.2%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3927536k total, 1927212k used, 2000324k free, 94156k buffers
Swap: 4192924k total, 0k used, 4192924k free, 794384k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5367 bernd 20 0 477m 7692 4508 R 99.6 0.2 53:17.69 xfce4-volumed
(without threading support the shown pid is 5353, so parent parent pid).
strace -p 5367:
poll([{fd=9, events=
poll([{fd=9, events=
bernd@bathl ~>ll /proc/5367/fd
total 0
lr-x------ 1 bernd users 64 2009-08-23 19:00 0 -> /dev/null
l-wx------ 1 bernd users 64 2009-08-23 19:00 1 -> /dev/null
lr-x------ 1 bernd users 64 2009-08-23 19:00 10 -> pipe:[15861]
l-wx------ 1 bernd users 64 2009-08-23 19:00 11 -> pipe:[15861]
lrwx------ 1 bernd users 64 2009-08-23 19:00 12 -> /dev/snd/controlC2
lr-x------ 1 bernd users 64 2009-08-23 19:00 13 -> pipe:[15868]
l-wx------ 1 bernd users 64 2009-08-23 19:00 14 -> pipe:[15868]
lrwx------ 1 bernd users 64 2009-08-23 19:00 15 -> socket:[15872]
lr-x------ 1 bernd users 64 2009-08-23 19:00 16 -> pipe:[15874]
l-wx------ 1 bernd users 64 2009-08-23 19:00 17 -> pipe:[15874]
lrwx------ 1 bernd users 64 2009-08-23 19:00 18 -> socket:[15878]
lr-x------ 1 bernd users 64 2009-08-23 19:00 19 -> pipe:[15886]
l-wx------ 1 bernd users 64 2009-08-23 19:00 2 -> /dev/null
l-wx------ 1 bernd users 64 2009-08-23 19:00 20 -> pipe:[15886]
lrwx------ 1 bernd users 64 2009-08-23 19:00 21 -> socket:[15891]
lr-x------ 1 bernd users 64 2009-08-23 19:00 22 -> pipe:[15893]
l-wx------ 1 bernd users 64 2009-08-23 19:00 23 -> pipe:[15893]
lrwx------ 1 bernd users 64 2009-08-23 19:00 24 -> socket:[15897]
lrwx------ 1 bernd users 64 2009-08-23 19:00 3 -> socket:[15691]
lr-x------ 1 bernd users 64 2009-08-23 19:00 4 -> pipe:[15693]
l-wx------ 1 bernd users 64 2009-08-23 19:00 5 -> pipe:[15693]
lrwx------ 1 bernd users 64 2009-08-23 19:00 6 -> socket:[15694]
lr-x------ 1 bernd users 64 2009-08-23 19:00 7 -> pipe:[15860]
l-wx------ 1 bernd users 64 2009-08-23 19:00 8 -> pipe:[15860]
lrwx------ 1 bernd users 64 2009-08-23 19:00 9 -> /dev/snd/controlC1 (deleted)
Hrm, somehow /dev/snd/controlC1 was deleted, while the filedescriptor was still open. What could be responsible for that?
WORKAROUND:
In a terminal :
sudo apt-get remove xfce4-volumed <hit enter>
to remove xfce4-volumed will stop it from consuming 100% of your cpu, with the side effect of probably making the keyboard volume and control keys not work. It also breaks volume change / mute toggle notifications if the notification server used supports x-canonical-
Changed in xfce4-volumed (Ubuntu): | |
assignee: | nobody → Steve Dodier (sidi) |
status: | New → Incomplete |
Changed in xfce4-volumed (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
Changed in gstreamer: | |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in gstreamer: | |
importance: | Unknown → Medium |
status: | Unknown → Invalid |
Changed in xfce4-mixer: | |
importance: | Unknown → Critical |
status: | Unknown → Fix Released |
Changed in xfce4-volumed (Ubuntu): | |
status: | Confirmed → Invalid |
If I add a mixer plugin to my panel, it works fine. The volume is controlled properly and the CPU does not max out.
Some time later, I repeatedly notice it has begun using 100% of both my cores.
I have an onboard sound chipset that dmixes properly with alsa. I do not use a sound daemon of any kind. I also have a (mostly-unsupported by Linux) Creative X-Fi sound card which is plugged in but unused. The plugin detects the following sound cards:
NVidia CK804 (Alsa mixer) - this is the onboard chipset that I use all the time.
Monitor Integrated Webcam (Alsa mixer) - one of my DFP microphones
pcsp (Alsa mixer) - I have no idea what this is.
Monitor Integrated Webcam (Alsa mixer) - one of my DFP microphones (dual monitors)
Realtek ALC850 rev 0 (OSS Mixer) - I'm assuming this could be my X-Fi, but it really looks like something else. In any case, I've not seen it before.
That's the list exactly as I'm given it. I haven't been able to find out what causes the mixer to go crazy. My sound card is not disconnecting as in bug 4962, but I think it may be a related problem, so I would suggest taking both bugs into account.
Thanks for all of your hard work. All of us appreciate XFCE.
Other information:
Linux atlas 2.6.28-ARCH #1 SMP PREEMPT Tue Mar 17 06:42:43 UTC 2009 i686 Dual Core AMD Opteron(tm) Processor 165 AuthenticAMD GNU/Linux
Motherboard containing audio chipset: Asus A8n-SLI-Premium
Exact version of plugin and panel:
xfce4-mixer 4.6.0-2
xfce4-panel-4.6.0-1