GNOME Bugzilla – Bug 640554
Empathy leaks memory when cycling offline and online
Last modified: 2018-05-22 14:37:07 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
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
bug #636782 may also be part of the story.
Loads of leaks seem because of bug #636782 and/or bug #639976. Let's investigate this once they have been fixed.
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).
Any chance you could do some testing using latest Empathy and Folks?
-- 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.