linuxmint / cinnamon-screensaver

The Cinnamon screen locker and screensaver program
GNU General Public License v2.0
151 stars 86 forks source link

cinnamon-screensaver memory usage increasing significantly over time #72

Open fbouchet opened 9 years ago

fbouchet commented 9 years ago

I've observed that cinnamon-screensaver tends to end up using a lot of memory when I'm not restarting the system for many days. After 39 days running, I reached 422MB in resident memory (488MB of virtual one). A system restart made that value drop to a normal value around 20MB, but since then it has been linearly increasing, reaching 105MB after a week without restart.

I'm using version 2.2.4 with Linux Mint 17 and the nvidia-331 (version 331.38-0ubuntu7.1) proprietary driver, a dual screen configuration, and my graphic card is a nVidia Quadro K2000 with 2GB of RAM.

Contrary to issue #70, I have relatively few errors reported in my .xsession-errors file, but here are the ones found after a week running: (cinnamon-screensaver:2501): GLib-CRITICAL _: Source ID 374090 was not found when attempting to remove it (cinnamon-screensaver:2501): GLib-CRITICAL _: Source ID 745504 was not found when attempting to remove it (cinnamon-screensaver:2501): GLib-CRITICAL **: Source ID 1224423 was not found when attempting to remove it JS ERROR: !!! Exception was: [object _private_GLib_Error] JS ERROR: !!! message = '":2:6: Parse error: unexpected identifier `failed', expected value"' JS ERROR: !!! fileName = 'undefined' JS ERROR: !!! lineNumber = 'undefined' JS ERROR: !!! stack = 'undefined'

And a few more of the style "Source ID xxxx was not found when attempting to remove".

dhdurgee commented 9 years ago

I see it using 54.6MiB after a week here. Cinnamon itself shows 232.9 MiB after a week here. I see other errors in the log beside the ones I listed in my error, just not in tremendous volumes like the two I listed. As I just updated my error, there are over a million of them after a week of uptime. Wow!

clonemeagain commented 9 years ago

Online 29 days: VIRT:1053MB, RES:381MB..

Running cinnamon-screensaver-command --exit causes it to drop back to very little..

leigh123linux commented 7 years ago

Which screensaver are you using?

ghost commented 7 years ago

Adding to this: cinnamon-screensaver just leaked to 1.6gb after ~2 days and an hour of uptime here. I have the screensaver turned off. (more precisely, set to the Never timeout) It's on the Screen Locker screensaver (default on Linux Mint + Cinnamon)

Running Linux Mint 18.1 on 4.10.0-21-generic #23~lp1671360 SMP Fri May 5 14:24:20 CST 2017 x86_64 x86_64 x86_64 GNU/Linux (custom patched kernel to resolve a bug so that my Ryzen CPU can boot into Linux Mint)

Nvidia GTX 1050 GPU with Nvidia-381.22 proprietary drivers.

.xsession-errors is filled with Window manager warning: Window 0x4003aef (win397) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense. so this may be an unrelated bug

Roman-Skripka commented 7 years ago

Mine becomes this big in 20 days of uptime. I'm using the latest spotify app and the cover along with play controls is displayed on top of lock screen (may be related?). I see this memory leakage for a long time. screenshot-area-2017-06-19-145331

mainmachine commented 4 years ago

FYI this seems to still be an issue, albeit I only see memory usage grow to significant size (~1.4GB) after a day or two between reboots. Killing the screensaver process and restarting seems to resolve the issue: cinnamon-screensaver-command -e; cinnamon-screensaver & After issuing the above, the new cinnamon-screensaver process is using a reasonable ~20MB of memory. This is running cinnamon 4.2.4 on Ubuntu 18.04.

lisandromc commented 4 years ago

Same issue as mainmachine's. Same workaround for me. Using cinnamon 4.4.6 on Mint 19.3.

dszwcz commented 4 years ago

Same issue using Cinnamon 4.4.8 on Mint 19.3

Simonxxx84 commented 3 years ago

Same problem in Linux Mint 20.1 Cinnamon v4.8.6. Memory leak in cinnamon-screensaver.

mainmachine commented 3 years ago

I now work around this entirely on my desktop machine by setting the screensaver to "Never". I just use screen blanking after 45 minutes. I won't use this approach on my laptop because I want the password protection of an actual screensaver.