After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 640554 - Empathy leaks memory when cycling offline and online
Empathy leaks memory when cycling offline and online
Status: RESOLVED OBSOLETE
Product: empathy
Classification: Core
Component: General
2.91.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on: 624624 639976 640551
Blocks:
 
 
Reported: 2011-01-25 17:09 UTC by Travis Reitter
Modified: 2018-05-22 14:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Travis Reitter 2011-01-25 17:09:47 UTC
With 4 real accounts in Empathy, if I cycle online -> offline -> online, the resident memory grows about 2.0 MiB every time I do so (not just the first time).

This is probably related to issues mentioned to me about Empathy's memory usage getting extremely high over time. For the (common) usage pattern of taking a laptop from home to an office (and back), only suspending, for months at a time, this would pose an obvious problem (and it may be even worse with different CMs than I'm using, etc.).

This problem has existed for a while, though I hadn't been able to reproduce it myself until recently.

Some of this is due to Folks leaking, but some is potentially due to Empathy leaking icons, etc.

The attached valgrind log is from running Empathy as:

G_SLICE=always-malloc G_DEBUG=gc-friendly,resident-modules valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 empathy
Comment 1 Travis Reitter 2011-01-25 17:16:40 UTC
See this valgrind log where I cycled offline and back 4 times:

http://people.collabora.co.uk/~treitter/bugs/bgo640554/vg-offline-cycle-4-times
Comment 2 Travis Reitter 2011-01-25 17:29:35 UTC
bug #636782 may also be part of the story.
Comment 3 Guillaume Desmottes 2011-01-26 08:50:21 UTC
Loads of leaks seem because of bug #636782 and/or bug #639976. Let's investigate this once they have been fixed.
Comment 4 Travis Reitter 2011-01-28 00:09:21 UTC
After my fix in libgee is applied (I was using the latest Folks from git in both cases), I cycled 4 times again and got this result:

http://people.collabora.co.uk/~treitter/bugs/bgo640554/vg-offline-cycle-fix-4-times

(there are also logs for 1 cycle before and after the fix in that directory as well)

Note that it's now definitely leaking 15 KiB instead of 25 KiB for 1 cycle and 17 KiB instead of 42 KiB (after 4 cycles). So the growth rate is much lower (~700 bytes/cycle instead of 6 KiB).

There's still work to be done even on the Folks side though, at least for the single cycle log, we're no longer definitely leaking (just possibly leaking). There's certainly work to be done on the Empathy side as well. (And some of this may just be missing suppressions on my side - if I recall correctly, those Pango leaks are false positives).
Comment 5 Guillaume Desmottes 2011-09-06 07:36:58 UTC
Any chance you could do some testing using latest Empathy and Folks?
Comment 6 GNOME Infrastructure Team 2018-05-22 14:37:07 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/empathy/issues/332.