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

Bug 408529

Summary: x11-themes/gtk-engines-xfce:0 causes, for example, plugins in panel leak memory
Product: Gentoo Linux Reporter: NiTr0 <nitr0>
Component: [OLD] UnspecifiedAssignee: XFCE Team <xfce>
Status: RESOLVED FIXED    
Severity: normal CC: brho, dark.knight.ita, john, pariksheet.nanda
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: http://bugzilla.xfce.org/show_bug.cgi?id=8521
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: requested valgrind log
Valgrind log of cpufreq plugin
compressed output of cpugraph run through valgrind
Patch suggested in upstream bug 8521

Description NiTr0 2012-03-16 22:15:34 UTC
Plugin memory consumption continuously grows, and after some days it consumes some GBs of memory. After process killing memory is freed, and growing starts again.
I have quad-core CPU, AMD64 OS arch. I noticed leakage not so early because mostly I used console mode on this PC (it's a home server), and not so long time I need GUI apps that runs for a days.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-03-17 16:03:21 UTC
Once you have some meaningful data to attach here, reopen the bug:

http://wiki.xfce.org/howto/panel_plugin_debug#debug_with_valgrind_full_example
Comment 2 Pariksheet Nanda 2012-05-29 01:52:26 UTC
Created attachment 313459 [details]
requested valgrind log
Comment 3 brho 2012-05-31 21:36:30 UTC
Created attachment 313759 [details]
Valgrind log of cpufreq plugin

I have the same problem.  I attached the valgrind output from wrapping cpufreq as described on the (old?) wiki page.  

One caveat: the wrapped plugin complained with the message "(xfce4-cpufreq-plugin:27899): CRITICAL **: _xpp_provider_signal: assertion `GDK_IS_WINDOW (window)' failed" in the terminal in which I started xfce4-panel.  I didn't see the actual plugin running on the panel, and I had to kill the process from the console.  I don't know if that messes up the valgrind output or not.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-05-31 21:42:42 UTC
Use the "See also: " field in this bug and file a new bug at http://bugzilla.xfce.org/
with the valgrind information attached (and anything else they will ask)
Comment 5 brho 2012-05-31 23:21:35 UTC
Created attachment 313769 [details]
compressed output of cpugraph run through valgrind

This valgrind output is for cpugraph.  The previous one was cpufreq, which wasn't the plugin in question.  (Sorry about that).  I also uploaded this one to xfce's bug tracker (bug https://bugzilla.xfce.org/show_bug.cgi?id=8521).
Comment 6 John J. Aylward 2012-06-18 05:24:17 UTC
a tempororay fix if you want to continue to use the plugin is to send an INT signal to it:

kill -s INT $(ps -eo pid,comm= | grep 'panel-.*-cpu' | awk '{print $1}')

you should be able to throw that in a nightly cron
Comment 7 Pariksheet Nanda 2012-08-26 12:04:40 UTC
Created attachment 322252 [details, diff]
Patch suggested in upstream bug 8521

Upstream's suggested patch fixes the issue for me using xfce4-cpugraph-plugin and "Xfce" style appearance.  No leak for 48 hours.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-09-05 11:09:11 UTC
Patch added as

=x11-themes/gtk-engines-xfce-3.0.0-r201:0