New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eating 20-25% of CPU #246
Comments
From john.maguire on April 24, 2010 09:11:53 I'm pretty sure this is the analyzer. Starting a song with the analyzer on and then Labels: Component-UI |
From andrew.gaydenko on April 24, 2010 10:40:15 I have restarted the player - it's OK now. Probably I have tried to turn analizer on |
From biglouis87 on April 30, 2010 11:20:04 I also confirm the high cpu usage, but I think the analyzer is not the only cause of |
From andrew.gaydenko on May 04, 2010 21:55:13 More long and thoughtful observation definitely shows the problem still exists: |
From john.maguire on May 07, 2010 06:18:34 I made a change recently which should have improved this. Any luck? |
From andrew.gaydenko on May 07, 2010 06:25:00 John, Am rebuilding... |
From andrew.gaydenko on May 07, 2010 06:37:17 r858 has the problem also. But it seems I have found possible reason: after app |
From andrew.gaydenko on May 07, 2010 06:50:05 Sorry for noise. Idea wrt systray is wrong. |
From andrew.gaydenko on May 21, 2010 07:32:42 Probably it will help to narrow the bug: eating can start after, say, 5 minutes after |
From andrew.gaydenko on May 26, 2010 01:00:48 As far as the bug is absolute showstopper preventing from everyday player use and, |
From jkflying on May 26, 2010 14:56:02 I'm really liking what I've seen so far with Clementine (small download, not Using 10.04 Lucid (Gnome) |
From davidsansome on May 27, 2010 13:49:19 In r991 I've almost halved the CPU usage while the window is open by changing the Also you might want to try compiling in release mode (cmake .. - If you're getting high CPU consumption while the window is minimised then that's Try running this from the commandline, it's a similar pipeline to the one Clementine gst-launch uridecodebin uri=file:///path/to/some/music ! audioconvert ! audio/x-raw- Labels: -Priority-Medium Priority-High |
From andrew.gaydenko on May 27, 2010 14:04:50 David, Yes, CPU eating takes place when the app is hidden (tray icon is visible only) also. It is possible to have from few minutes to few (3-4) hours with "lucky" 1-2% CPU The problem isn't gstreamer related. Well, it may be. But I have not met the problem I hate all kinds of Equalizers and ReplayGains :-) and such options are turned off. I'll try 'gst-launch' tomorrow. |
From davidsansome on May 27, 2010 16:00:39 Ok thanks. I'll try to reproduce the problem on a Kubuntu box tomorrow. If I can't then I'll get |
From andrew.gaydenko on May 28, 2010 03:24:32 Have tried 'gst-launch' with expected result - no problems. |
From davidsansome on May 28, 2010 10:16:25 I was able to reproduce the problem here :) |
From andrew.gaydenko on May 28, 2010 10:22:47 Already have noticed and am building :-) As far as testing can take many hours |
From andrew.gaydenko on May 28, 2010 11:05:48 David, sorry, already have got high CPU consumption :-( |
From davidsansome on May 28, 2010 11:10:58 Bah! Ok, I'll keep looking... |
From jkflying on May 29, 2010 01:27:24 I'm able to get rid of the high CPU consumption by disabling the 'glow' in the playlist. Oh, and I think you may have introduced a new bug by caching the text: if you edit |
From andrew.gaydenko on May 29, 2010 02:06:28 To check jkflying's way have started testing with empty StartGlowing() method body. P.S. BTW, my eyes are very happy with eliminating additional unneeded visual effect :-) |
From andrew.gaydenko on May 29, 2010 02:39:45 No, empty StartGlowing() doesn't help. jkflying, are you sure the problem is indeed eliminated for you? The thing is, for me |
From jkflying on May 29, 2010 03:58:39 I think we have different issues. Mine would start the moment the 'pulsing' of the |
From jkflying on May 29, 2010 04:00:16 Another issue with the caching: if the columns are resized the currently playing line |
From davidsansome on May 29, 2010 10:21:06 I have 8 cores and I don't get the problem :p Andrew: I've left it playing for 24 hours now and I'm still on 1-2% usage. Could you Then leave it playing until you see the high CPU usage. Press Ctrl+C, and type: If all the threads are in poll or pthread_cond_wait then you just happened to stop it Hopefully the backtrace will give me some idea what's causing the problem! |
From jkflying on May 30, 2010 00:19:06 Hang on. I think I've seen it. Even when paused, Clementine will take about 10% of |
From andrew.gaydenko on May 30, 2010 00:47:48 jkflying, all symptoms your have decribed fit my case also. David, I never use the app just in playing mode. Most common way - create playlist The app is in debug mode now, and I have catched 6-7 eatings, but at all cases only |
From andrew.gaydenko on May 30, 2010 05:58:45 David, I have another Ctrl-C cases - all with the samed result (poll and |
From davidsansome on May 31, 2010 15:27:50 Right, I have some more things for you to try:
|
From jkflying on June 01, 2010 07:45:59 My gdb is giving funny results so I changed some of the cmake options using -i to The funny thing is, I can't reproduce the bug now. I've been trying for several Any clues? |
From davidsansome on June 27, 2010 06:32:22 Ok cool take your time :) |
From andrew.gaydenko on June 27, 2010 15:57:36 David, Reproting: I'am able to reproduce the issue with r1366 - r1377 . Last hour am testing r1378 without any success, taking in mind "success" meaning here: it is the issue reproduction :-) I'm going to continue current r1378 session, but at case you have some reason to stop the session - I'm ready also. |
From andrew.gaydenko on June 27, 2010 17:51:19 I surrender to reproduce high CPU usage with r1378 - additional two hours didn't help :-) |
From himynameiszacHandiamapirate on June 27, 2010 20:41:37 fingers crossed |
From himynameiszacHandiamapirate on June 28, 2010 21:49:33 Oh dear, is .4 being released before figuring this one out? I feel like you guys may have finally hit on the source of the problem, and high cpu usage is going to be a real stickler for some people (not to belittle any of the crazy super excellent changes that have been made since .3)... |
From davidsansome on June 29, 2010 11:50:53 Yeah sorry about that, I've pushed back 0.4 enough already, and this fix will need a bit of testing to make sure it doesn't break crossfading I think. Andrew - I'll try to do a fix soon and get you to test it :) |
From andrew.gaydenko on June 29, 2010 20:54:50 David, yes, I'm on-line for testing. Have you some hook now? Himynameiszac Handiamapirate, I think we can be slightly more kind to developers :-) I mean, all those accompanying tasks such releasing (for plenty of platforms!), announcing here and there, and there... and so on - all these tasks demand developers' time, preventing them to apply their efforts to more interesting for them and valueable for us - users - activity - writing a code itself ;-) |
From himynameiszacHandiamapirate on June 29, 2010 21:08:32 Was I unkind in any way? Do I really come off as though I do not grasp these basic concepts? Sheesh. |
From himynameiszacHandiamapirate on June 29, 2010 21:10:57 Or is the internet really completely cutting me off from understanding that you made a joke just now? My head is spinning... |
From andrew.gaydenko on June 29, 2010 21:50:00 I mean at a moment when most 0.4 release related work is done, it isn't efficient (wrt developers' efforts) to postpone a release (and redo some work later) when new information about some (yes, popular, but with limited audience) bug has appeared - at situation when both fixing and testing (with yet not predictable results) demand efforts also. Yes, it is a joke. Any joke is partly a joke, isn't it? :-) No complain, just humble opinion. |
From himynameiszacHandiamapirate on June 29, 2010 22:11:05 The bug doesn't even affect me, but I do think it's an important one to address. I was just sticking up for the fact that you've been talking about it for two months. Oh well. |
From davidsansome on June 30, 2010 13:41:30 Could you switch back to trunk and try r1394 ? I've fixed what I think was causing the problem. Keep those fingers crossed! |
From himynameiszacHandiamapirate on June 30, 2010 13:53:13 It's been very hard to type, in the meantime... :P |
From andrew.gaydenko on June 30, 2010 14:03:20 David, sorry, we are still not lucky. A little change is: instead of 20-25% I see 17-20% now. |
From davidsansome on June 30, 2010 15:20:21 Damn! Ok, it must not have been what I thought it was, so I've split up the change that fixed it before into a load more little changes for you to try. Switch back to the gstreamer-light branch and try r1396 to r1402 . This is the weirdest bug I've ever seen :S |
From andrew.gaydenko on June 30, 2010 17:05:21 r1396 usage is 25-26% (even slightly higher). r1397 - during an hour can not reproduce the issue. Continueing... Keep your fingers relaxed - don't provoke high CPU usage! ;-) |
From andrew.gaydenko on June 30, 2010 17:32:21 r1397 is also affected. Continue with next revisions. |
From andrew.gaydenko on June 30, 2010 21:04:47 David, It seems like all is OK with gstreamer globally :-) I was able to reproduce high CPU usage with all r1396 - r1402 revisions. Probably, I just wasn't lucky with reproducing the issue during previous series of testing - you see, I still don't see any reproducable steps set, and even at multi-hours testings it is rather difficult to say "yes, this revision is OK". OK. With two last revisions ( r1401 , r1402 ) I tried another way to reproduce the issue rather my common way (last one is a navigating via systray icon context menu). I have catch the issue with just double-clicking on the playlist items and for both revision has got the same behaviour: when high CPU usage "starts", it is ~15-18%. If at this point I hide the app main window by clicking on systray icon, usage rises up to 25%. Next main window unhiding "cured" the situation at both cases (~4%). So, it seems like some relation with UI does exist. Probably, we can test this way: remove (one by one) few controls - scope, seek slider, volume slider, current track blinking, and I'll test all these variants - this time starting from "most empty" one :-) |
From davidsansome on July 01, 2010 12:35:05 Just an idea, but I hadn't completely done all the changes in r1402 . Try r1409 in the branch - this should be identical to r1378 that possibly fixed the problem before. |
From andrew.gaydenko on July 01, 2010 18:34:48 David, I wasn't aware r1402 still has something undeleted in comparison with previous series' "good" case. During last four hours I can not reproduce the issue with r1409 . Probably, we must not be too fast, and there is a sense to test the branch more. To make testing more smooth it would be handy for me to have volume regulating in hand. Is it possible to return the regulating, keeping app's state intact from other points of view? If it possible, I would test timerless barnch day or two to be more sure. What do you think? Of course, I'm ready to follow any other scenario you will suggest. |
From davidsansome on July 02, 2010 12:24:30 I left that change in there because I thought it couldn't possibly have that kind of effect on the CPU usage - the timer was doing absolutely nothing! Obviously I was wrong :) |
From davidsansome on July 02, 2010 12:25:11 Err sorry, r1410 not r1401 |
From andrew.gaydenko on July 02, 2010 13:03:38 He-he... Indeed, crossfading and analyzer are malefic features ;-) OK, I'm testing trunk/ r1410 . |
From andrew.gaydenko on July 04, 2010 00:15:29 All these hours (except sleeping) I can not reproduce the issue with r1410 . If other affected users have not other opinion, I would close the issue as fixed. |
From davidsansome on July 04, 2010 03:38:44 That's great :) Thanks again for taking the time to test this, I'm glad we finally managed to find a solution! Status: Fixed |
From nicholasdrouin on September 03, 2013 16:06:08 found: Its the mood bar. I have several hundred 2 hour tracks and it is trying to get the mood for each. Disable that and BAM 30% cpu down to 2-6 % |
From elib6565 on September 18, 2013 16:17:19 Sorry to be the SECOND person to highjack a dead thread, but I had the same problem, and I verify that turning off mood bar and turning off analyzer get the application down to 8 to 10 % from 74% plus. Using a 6 year old (and low spec) system, so this is what I must deal with when using feature advanced apps. Wanted to be sure others knew. |
From andrew.gaydenko on April 24, 2010 17:41:40
With
the player eats 20-25% of CPU (from 'top' report) - even being hidden in
system tray and paused! Being stopped eats nothing. Analizer is turned off
at all.
Expected value is 1-2% as for other players (also with the same gstreamer
and with FLACs).
Where is that 'while' loop without sleep? ;-)
Original issue: http://code.google.com/p/clementine-player/issues/detail?id=246
The text was updated successfully, but these errors were encountered: