← Back to team overview

desktop-packages team mailing list archive

[Bug 417778] Re: xfce4-volumed takes 100% cpu when system is idle for some time

 

Launchpad has imported 8 comments from the remote bug at
https://bugzilla.xfce.org/show_bug.cgi?id=5183.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2009-04-03T02:03:31+00:00 Hesperaux wrote:

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

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-volumed/+bug/417778/comments/0

------------------------------------------------------------------------
On 2009-04-05T20:09:06+00:00 Hesperaux wrote:

Hello again.

I wanted to update this bug, because I now know that it is directly
related to bug 4962. The plugin works properly without issue until I
turn off my monitors (something I do when I go away from my PC). When I
come back, and turn them on, I notice the CPU is at maximum usage. This
is because the USB microphone/hub/webcam imbedded in the monitors is one
of the available devices to control using the mixer plugin. As soon as
they are detached, it is the same issue as in bug 4962 - the CPU load
goes up immensely, as though the plugin is trying to check or configure
the microphones that were powered off. And obviously when they are
powered back on, it still freaks out. Hope this helps.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-volumed/+bug/417778/comments/1

------------------------------------------------------------------------
On 2009-08-21T06:26:48+00:00 Xfce-e wrote:

I have the same problem on xubuntu jaunty.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-volumed/+bug/417778/comments/2

------------------------------------------------------------------------
On 2010-01-09T13:03:47+00:00 Charlie Kravetz wrote:

This bug has been reported on Ubuntu Launchpad as:
 https://bugs.launchpad.net/bugs/417778

It is possible the root causes of both this bug and bug 4962 are the
same.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-volumed/+bug/417778/comments/30

------------------------------------------------------------------------
On 2010-01-09T16:04:58+00:00 cmeerw wrote:

I think this is caused by
https://bugzilla.gnome.org/show_bug.cgi?id=507527

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-volumed/+bug/417778/comments/33

------------------------------------------------------------------------
On 2010-10-03T10:40:27+00:00 Fork0 wrote:

(In reply to comment #4)
> I think this is caused by https://bugzilla.gnome.org/show_bug.cgi?id=507527

You're right (well, not caused by, but is related to).
There are changes on the bug, and a workaround (attached to the discussion).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-volumed/+bug/417778/comments/42

------------------------------------------------------------------------
On 2014-11-16T07:34:09+00:00 Robby Workman wrote:

Looks like this was a gstreamer bug that was fixed upstream:
https://bugzilla.gnome.org/show_bug.cgi?id=614545

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-volumed/+bug/417778/comments/44

------------------------------------------------------------------------
On 2014-11-16T08:25:19+00:00 Robby Workman wrote:

*** Bug 5460 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-volumed/+bug/417778/comments/45


** Changed in: xfce4-mixer
       Status: Unknown => Fix Released

** Changed in: xfce4-mixer
   Importance: Unknown => Critical

** Bug watch added: GNOME Bug Tracker #614545
   https://bugzilla.gnome.org/show_bug.cgi?id=614545

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gstreamer0.10 in Ubuntu.
https://bugs.launchpad.net/bugs/417778

Title:
  xfce4-volumed takes 100% cpu when system is idle for some time

Status in The GStreamer Multimedia Framework:
  Invalid
Status in xfce4-mixer:
  Fix Released
Status in Volume management daemon for XFCE 4:
  Incomplete
Status in “gstreamer0.10” package in Ubuntu:
  New
Status in “xfce4-volumed” package in Ubuntu:
  Confirmed

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=POLLIN|POLLERR|POLLNVAL}, {fd=7, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 2, -1) = 1 ([{fd=9, revents=POLLERR|POLLNVAL}])
  poll([{fd=9, events=POLLIN|POLLERR|POLLNVAL}, {fd=7, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 2, -1) = 1 ([{fd=9, revents=POLLERR|POLLNVAL}])

  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-icon-only  and x-canonical-synchronous notifications.

To manage notifications about this bug go to:
https://bugs.launchpad.net/gstreamer/+bug/417778/+subscriptions