Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366117 - kde-base/kmix-4.6.2: 100% cpu usage on a single cpu core
Summary: kde-base/kmix-4.6.2: 100% cpu usage on a single cpu core
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-05 17:06 UTC by Kai Krakow
Modified: 2011-08-06 09:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Krakow 2011-05-05 17:06:25 UTC
All of a sudden kmix decided to use 100% cpu (well, about 97%, going up and down by a few percents when watched in top).

The backtrace seems useless but when doing an strace I get lots of lines per second (about 1-2 screens full per second) of these:


kakra@xxxxxxxx ~/.kde $ strace -p $(pidof kmix)
Process 12510 attached - interrupt to quit
brk(0x420f000)                          = 0x420f000
brk(0x4230000)                          = 0x4230000
brk(0x4251000)                          = 0x4251000
brk(0x4272000)                          = 0x4272000
brk(0x4293000)                          = 0x4293000
brk(0x42b4000)                          = 0x42b4000
......(lots repeated)

This seems to be different from the pulseaudio problems reported elsewhere because when I had that problem it helped to just remove all kmix related files from .kde and restart kmix. This didn't help this time.

When trying to change volume (eg by hot key), it takes up to several minutes for the volume bar to appear and actually change volume, and it then takes ages for the bar to vanish again. Kmix is just totally unresponsive, not actually frozen.

Here's the useless backtrace. If you got any hints how to make it useful please guide me:


kakra@xxxxxxxx ~/.kde $ gdb /usr/bin/kmix $(pidof kmix)
GNU gdb (Gentoo 7.2 p1) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/kmix...Reading symbols from /usr/lib64/debug/usr/bin/kmix.debug...done.
done.
Attaching to program: /usr/bin/kmix, process 12510
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib64/debug/lib64/ld-2.11.3.so.debug...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00007f4f8b6aa06b in ?? ()
(gdb) thread apply all bt full

Thread 1 (process 12510):
#0  0x00007f4f8b6aa06b in ?? ()
No symbol table info available.
#1  0x00007f4f8cc41e8b in ?? ()
No symbol table info available.
#2  0x0000000000000000 in ?? ()
No symbol table info available.


Reproducible: Sometimes

Steps to Reproduce:
1. Use kmix with pulseaudio
2. Rarely kmix will become unresponsive, volume controls hardly react to input




My system uses pulseaudio:
media-sound/pulseaudio-0.9.22-r1
Comment 1 Kai Krakow 2011-05-05 17:10:21 UTC
I just did

$ rm -Rf $HOME/.kde4/share/apps/kmix/

and now the problem is gone. But that is just curing the symptom for a while and not permanently fixing the problem.

So, I did not delete all kmix related files from my profile, sorry for the noise. It is probably thus related to pulseaudio in contrast to what I wrote before. The directory contained files directly related to pulseaudio (German filenames):

$ ls $HOME/.kde4/share/apps/kmix/
PulseAudio.Aufnahmegeräte.1.default.xml
PulseAudio.Streams_aufnehmen.1.default.xml
PulseAudio.Wiedergabegeräte.1.default.xml
PulseAudio.Aufnahmestreams.1.default.xml
PulseAudio.Streams_wiedergeben.1.default.xml
PulseAudio.Wiedergabestreams.1.default.xml
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-08-05 20:45:02 UTC
Could you please try 4.6.5 or 4.7.0 and check if this still happens?
Is there an upstream bug report that you know of?
Comment 3 Kai Krakow 2011-08-05 20:57:13 UTC
It didn't happen in a while since I removed one soundcard from my system and am now only using the onboard sound card. Since I changed the hardware configuration I'm not sure if I could ever confirm KDE 4.7 would make any difference.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2011-08-06 09:40:39 UTC
OK, thanks a lot for your help!