Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408529 - x11-themes/gtk-engines-xfce:0 causes, for example, plugins in panel leak memory
Summary: x11-themes/gtk-engines-xfce:0 causes, for example, plugins in panel leak memory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-16 22:15 UTC by NiTr0
Modified: 2012-09-05 11:09 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
requested valgrind log (cpugraph-valgrind-detailed.log,12.65 KB, text/plain)
2012-05-29 01:52 UTC, Pariksheet Nanda
Details
Valgrind log of cpufreq plugin (cpufreq-valgrind.log.bz2,96.38 KB, text/plain)
2012-05-31 21:36 UTC, brho
Details
compressed output of cpugraph run through valgrind (cpugraph-valgrind.log.bz2,48.12 KB, text/plain)
2012-05-31 23:21 UTC, brho
Details
Patch suggested in upstream bug 8521 (gtk-engines-xfce-3.0.0-plug-cairo-leak.patch,244 bytes, patch)
2012-08-26 12:04 UTC, Pariksheet Nanda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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