Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 301143

Summary: Audacity CPU consumption rises steadily when it is not being used
Product: Gentoo Linux Reporter: G. Náray <g_naray>
Component: Current packagesAssignee: Gentoo wxWidgets project <wxwidgets>
Status: RESOLVED FIXED    
Severity: normal CC: proaudio, richard
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to wxGTK to fix the leaking of timer handles when the application is not active
Patch to the ebuild for wxGTK 2.8.10.1 to apply the required fix

Description G. Náray 2010-01-15 22:00:27 UTC
Audacity CPU consumption rises steadily when it is not being used

Reproducible: Always

Steps to Reproduce:
If an Audacity window is left open and not being used (so it does not have focus) then it's CPU usage will slowly rise until (if left long enough) it uses all the available CPU.

Actual Results:  
Audacity uses all the available CPU after a while.

Expected Results:  
Audacity should not use all the available CPU when idling.

This is a bug described on webpage of Audacity. For more details, see:
http://wiki.audacityteam.org/wiki/Known_Issues
It is worth mentioning that the solution and patch for this problem is also found there. To be sure, here is the URL of patch (for wxGTK):
http://trac.wxwidgets.org/changeset/62397?format=diff&new=62397
Comment 1 Richard Ash 2010-01-15 22:19:02 UTC
To clarify, the leakage occurs in wxGTK and affects other applications (including all wxPython ones), fixing it needs the patch applying to wxGTK-2.8.10.1 and and ebuild version bump. Audacity (all beta versions) should then start behaving itself.

So this is a wxGTK bug in the 2.8.10.1-r* ebuilds, not an Audacity one.
Comment 2 Richard Ash 2010-01-18 21:24:50 UTC
Created attachment 216839 [details, diff]
Patch to wxGTK to fix the leaking of timer handles when the application is not active

This is the upstream patch ...
Comment 3 Richard Ash 2010-01-18 21:25:44 UTC
Created attachment 216841 [details, diff]
Patch to the ebuild for wxGTK 2.8.10.1 to apply the required fix

... and this is the patch to the ebuild so that the patch gets applied.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2010-01-19 01:22:44 UTC
Thanks, fixed in -r4.