GNOME Bugzilla – Bug 523646
[Last.fm] Taking CPU and leaking memory
Last modified: 2008-04-29 17:34:06 UTC
There's something strange happening with the last.fm extension on trunk. After starting banshee, it takes about 38mb ram and ~0% CPU. Now, if I just switch to the last.fm source (neighborhood) and back to the library again (not playing anything) the CPU is constantly at 25-40% and the banshee process grows very quickly, about 100k every second.
Running with mono 1.2.6 btw
Same thing happens if you switch to the Recommended station too. The CPU seems to spike while those sources are active, but then still idles high on the Library.
When first switching to a last.fm station the CPU usage is about 5-10% for me, which is still too much but less then what I see when switching back to the library (25-40%). The memory consumption grows as soon as I switch to the last.fm source (no need to switch back to the library). When switching back from last.fm to the queue or an empty playlist the CPU usage is lower, around 7% (still much too high).
Created attachment 107731 [details] System Monitor Screenshot This is after running for a bit over an hour without any playback. After about 60min the process didn't seem to grow anymore so I openend the recommendations view and changed back to the library, and it started to grow again.
*** Bug 524984 has been marked as a duplicate of this bug. ***
The DAAP extension exhibits similar memory growth. Should I file that separately or are they both caused by something lower in the stack?
Fixed in svn. The bug was caused by the status messages that Last.fm (and maybe DAAP?) use to communicate with the user - if they had the spinner image, it kept firing animation events even after it should have been hidden.