Bug 468361 - gnome-applet-music slows down after long use
Summary: gnome-applet-music slows down after long use
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-applet-music
Version: 8
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Gordon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-24 11:20 UTC by Sjoerd Mullender
Modified: 2008-11-19 14:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-19 14:53:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sjoerd Mullender 2008-10-24 11:20:53 UTC
Description of problem:
I play music through rhythmbox whenever I'm at the computer.  I monitor this music using the gnome music applet.  After several days or perhaps weeks I notice a significant slow down of the applet.  Normally switching between artist, album and track information goes smoothly, but after a while it becomes jerky.

Currently the music applet uses 44% of my CPU (2.4 GHz Intel Core2 Quad CPU), which is a massive amount of CPU usage for such a supposedly simple program.

I noticed using strace that the applet (or the python process that is run) does lots of (failing) stat system calls.  In the 5 or so seconds that I traced, there were 80791 lines of strace output, 80448 of these were calls to stat(), all of which failed.  The arguments to these stat calls were these four files:
/usr/share/locale/en.UTF8/LC_MESSAGES/music-applet.mo
/usr/share/locale/en/LC_MESSAGES/music-applet.mo
/usr/share/locale/en_US.UTF8/LC_MESSAGES/music-applet.mo
/usr/share/locale/en_US/LC_MESSAGES/music-applet.mo

To give an idea of the time frame, my current invocation of gnome-applet-music was started on Oct 9 and today is Oct 24.  I have played music most working days for 8 or so hours a day.

After removing the music applet from the panel and adding it back (i.e. restarting it), the number of system calls has reduced significantly.  In again about 5 seconds, there were only 1446 system calls of which 1080 were calls to stat.  Also, the process now only uses 1% of the CPU.

Version-Release number of selected component (if applicable):
gnome-applet-music-2.4.0-1.fc8.x86_64

How reproducible:
100% if you wait long enough.

Steps to Reproduce:
1.start music-applet
2.start playing music
3.wait
  
Actual results:
Over time, the music applet starts using more and more CPU, updating the music information becomes jerky.

Expected results:
Constant low CPU usage, constant smooth operation.

Additional info:
This is on Fedora 8.  I cannot really test this on Fedora 9, since I cannot upgrade my work system myself, and at home I don't play music nearly as much.

Comment 1 Peter Gordon 2008-10-24 11:26:29 UTC
No, I've been experiencing the same thing on F9, only intermittenly. Unfortunately it's not as predictable as I'd like in terms of timing. (Sometimes it'll start acting up after only a day, sometimes a full week.) But at least it is reproducable and I'm not the only one noticing it. That's a good sign. :)

I'm going to try to track this down a bit more over the weekend. This is really one thing that's been bugging me a lot (and from my brief tests in a KVM instance, also spuriously happens in Rawhide).

Thanks for the bug report!

Comment 2 Peter Gordon 2008-10-24 19:14:16 UTC
I just realized that this is fixed in 2.4.2, which hit Rawhide in late August; but I was also working on updates for gLabels and Empathy at the time, so I must've forgotten to enqueue the update in Bodhi. I'll submit that momentarily, and once 2.4.2 hits the repos, this should no longer be an issue.

Comment 3 Fedora Update System 2008-10-24 19:15:44 UTC
gnome-applet-music-2.4.2-1.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/gnome-applet-music-2.4.2-1.fc9

Comment 4 Fedora Update System 2008-10-24 19:16:25 UTC
gnome-applet-music-2.4.2-1.fc8 has been submitted as an update for Fedora 8.
http://admin.fedoraproject.org/updates/gnome-applet-music-2.4.2-1.fc8

Comment 5 Fedora Update System 2008-10-30 12:47:47 UTC
gnome-applet-music-2.4.2-1.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gnome-applet-music'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-9190

Comment 6 Fedora Update System 2008-10-30 12:56:27 UTC
gnome-applet-music-2.4.2-1.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gnome-applet-music'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-9299

Comment 7 Sjoerd Mullender 2008-11-04 09:32:47 UTC
After having run the updated applet for a few days, I haven't seen any performance degradation.  So I'm happy.  Thanks.

Comment 8 Fedora Update System 2008-11-19 14:53:35 UTC
gnome-applet-music-2.4.2-1.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2008-11-19 14:56:18 UTC
gnome-applet-music-2.4.2-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.