This forum has been archived. All content is frozen. Please use KDE Discuss instead.

bug (?): amaroK 1.2.2 high CPU usage

Tags: None
(comma "," separated)
Jani Huhtanen
Karma
0
Hi!

Just downloaded and compiled amarok 1.2.2. I find amarok promising but the amount of cpu time it\'s taking is _way_ too much to be normal.

Some facts:

- amaroK 1.2.2, compiled with gcc 3.4.2 from released source package with following configure:
CFLAGS=\"-O3 -march=athlon -funit-at-a-time -pipe\" CXXFLAGS=$CFLAGS ./configure

- audio engine: gstreamer 0.8.9 also compiled with gcc 3.4.2 and with similar config (that goes with the plugins too).

- gstreamer using alsasink

- linux 2.6.10

- machine: Athlon 800Mhz with 1Gb of mem

- CPU usage of amarokapp process aprox. 92%, while being idle (ie. only playlist visible, no music playing).

- OProfile says that most time in amarokapp is taking BoomAnalyzer, but I have some doubts about my skills in using oprof.. so here\'s the top 10:

081c8340 166 0.0784 0 0 0 0 (no location information) amarokapp BoomAnalyzer::analyze(std::vector const&)

0822a060 126 0.0595 0 0 0 0 (no location information) amarokapp sqlite3VdbeExec

080765b0 121 0.0571 0 0 0 0 (no location information) amarokapp anonymous symbol from section .plt

081f9600 34 0.0161 0 0 0 0 (no location information) amarokapp parseCellPtr

081a49ce 32 0.0151 0 0 0 0 (no location information) amarokapp __i686.get_pc_thunk.bx

081fd630 26 0.0123 0 0 0 0 (no location information) amarokapp sqlite3BtreeMoveto

081ca990 24 0.0113 0 0 0 0 (no location information) amarokapp Analyzer::Base::demo()

081fbaf0 20 0.0094 0 0 0 0 (no location information) amarokapp sqlite3BtreeKeySize

081ca100 18 0.0085 0 0 0 0 (no location information) amarokapp Analyzer::Base2D::qt_invoke(int, QUObject*)

081fc460 18 0.0085 0 0 0 0 (no location information) amarokapp fetchPayload


I tried different audio engines.. nothing. There\'s nothing in any preferences that helps. Is this a bug or is amarok just really picky about optimization flags?
Jani Huhtanen
Karma
0
Just noticed that the oprofile output was almost useless :blush: , sorry about that. Most of the time is actually taken by the libqt-mt.so.3.3.3. Altough amarokapp is the process using this library. I\'ll try to figure what functions are there using the time or causing the use and post my results here..
alok garg
Registered Member
Posts
3
Karma
0
hi,
I am experiencing the same problem.80-90 % cpu usage with amarok 1.2.2 with xine backend(same story with arts backend). Switched back to 1.2.1 and no problems at all.I am using suse 9.2.

bakwas
Korrigan
Karma
0
Yep same problem, on a Mandrake 10.1.
The high CPU usage appears only after playing the first song and then keeps going whether playing or not. No action except closing the software actually solves it.
Problem occcurs with GStreamer, Arts and Xine...
Also reverted to 1.2.1 which works fine after all !
eric
Karma
0
Same thing here, running 1.2.2 on Xandros 3 OCE. Amarok 1.2.1 did not exhibit this problem.

eric
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS
Alright, we\'ve solved the riddle. It\'s a KHTML bug in KDE 3.3, which got exposed by a code change in amaroK 1.2.2. We\'ve fixed the issue in amaroK CVS, and are pondering to do a quick bugfix release.

Workarounds:
* Upgrade to amaroK CVS
OR
* Upgrade to KDE 3.4

Post edited by: markey, at: 2005/03/16 12:44


--
Mark Kretschmann - Amarok Developer
eric
Karma
0
How about a patch for 1.2.2? Or is that not feasible.
Palantir
Karma
0
markey wrote:
Workarounds:
* Upgrade to amaroK CVS
OR
* Upgrade to KDE 3.4Post edited by: markey, at: 2005/03/16 12:44


I have upgraded to KDE 3.4 but I still have amarok using almost all my CPU during playback :( Downgrading for now :(
I\'m using arts output
Palantir
Karma
0
Palantir wrote:
Downgrading for now :(


:(
Downgrading didn\'t solve the problem :( Still the same in 1.2.1 :(
After some 10 - 15 seconds of playback I get three amarokapp processes which eat up mu CPU :(
User avatar
eean
KDE Developer
Posts
1016
Karma
0
OS
Well, you have a different issue entirely then. Probably an issue with your engine, try another one.


Amarok Developer
Palantir
Karma
0
Yes, that\'s right :) I was just going to post that after upgrading, somehow amarok swithed engine from arts to aKode and I didn\'t notice it :) Now I\'m using xine engine and everything works fine.
Thanks!
knoxy
Karma
0
I get 100% CPU usage when Amakrok is sitting idle...not playing anything.

As soon as I start playing something CPU usage drops to normal levels.
As soon as I press Stop CPU jumps back to 100% and stays there.

Otherwise Amarok is great!

running amarok 1.2.2, KDE3.4, slackware current, kernel 2.6.11
knoxy
Karma
0
Upgraded to 1.2.3. CPU still jumps to 100% when idle/paused.
schakal
Karma
0
Hi have the same problem wenn i press pause or stop. (but not wen amarok starts only when i have played a song an the press stop or pause)
i use a gentoo install whit these useflags:
[code:1] +arts -debug +flac +gstreamer +kde -kdeenablefinal +mad -mysql -noamazon +oggvorbis +opengl -visualization -xine -xinerama +xmms[/code:1]
schakal
Karma
0
sorry i have forget too say that i use \"amarok 1.2.3 (Using KDE 3.4.0)\" and the gstreamer engine


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]