When using Nvidia closed driver (even the most recent beta 304.22), plasma-desktop gradually leaks memory, until it consumes all free RAM. I run it with valgrind (see the attachment) which detects tons of definitive leaks. OS: Debian testing, x86_64. Kernel: 3.2.0-3 xserver-xorg-core: 1.12.1 GPU: Quadro FX 1600M/PCIe/SSE2 Driver: Nvidia closed driver 304.22 Reproducible: Always Steps to Reproduce: 1. Log in, let the system run. Actual Results: 1. plasma-desktop eats RAM continuously. Expected Results: 1. plasma-desktop should not consume all RAM.
Created attachment 72565 [details] Valgrind log with memory leaks Output of valgrind run of plasma-desktop filtered for memory leaks: valgrind --tool=memcheck --leak-check=full plasma-desktop
I tested the same scenario with some other Nvidia cards, and the bug doesn't happen except with Quadro FX 1600M. It could be hardware specific.
I found the culprit setting which triggers the leak. In the system tray clock > Digital Clock Settings > Appearance > Show seconds. When it's on - the leak is active. When it's off - it's not leaking. Still it didn't manifest itself on other GPU (desktop, Nvidia 7300gs) for me. So it still can be KDE or Nvidia specific.
This bug is fixed with Nvidia's driver 304.51.
on KDE 4.9.3 using the nvidia binary I see a similar leak. Should I try to get a similar valgrind log? If so, what's the best way to start plasma desktop through valigrind. I usually login through kdm and don't start kde manually.
I see that this bug is not entirely gone. The leak happens in Xorg process, but it's caused by plasma-desktop not releasing resources properly, which can be checked with xrestop: See https://devtalk.nvidia.com/default/topic/524486/linux/memory-leak-in-xorg-with-quadro-fx-1600m-pcie-sse2/ To run plasma-desktop with valgrind just kill the plasma-desktop process, and run it through valgrind from the terminal (as here: https://bugs.kde.org/show_bug.cgi?id=303625#c1 ).
I wasn't able to attach my log as it's was pretty large. Here's a link: http://www.aylward.me/~john/plasma-desktop.leak.log I ran it overnight with almost no user interaction. It ran for about 9.5 hours.