Created attachment 133931 [details] screenshot After a single day running RAM is completely depleted.
Do you have any 3rd-party widgets in use?
No, it's the most minimalist desktop possible: https://i.imgur.com/RqnbT6T.png Although Deepin and Cinammon are also installed on this system.
After uninstalling the rest of desktop environments the problem seems gone.
Not gone. Perhaps auto-reseting plasmashell would be a good idea if it is detected that the difference of RAM during boot and later on is quite different. Perhaps there could be a timer which checks for that hourly.
The commands for restart are: killall plasmashell; plasmashell > /dev/null 2>&1 & disown
If an app that disables composition is launched, RAM returns to its nominal value.
Bump x4. I'd appreciate if this bug takes priority - it might be causing other accidental threads being created in relation to memory leaks and mistaking side effects in other places (such as I did with plasma widgets). It makes it impossible to keep a desktop linux distro running KDE for several days and it's making the desktop environment give a really poor impression and experience.
I discovered a while ago that, in my case, the leak was caused by a tray icon: qsyncthingtray. Yet it would be smart that the plasma service has a maximum memory limit. Systemd allows that, and automatically restarts the service once reached. For the moment I'm using the following software to accomplish that: https://gitlab.com/es20490446e/plasma-leakguard
Created attachment 156694 [details] valgrind trace I am not sure if it's the same underlying issue, but in my case plasma's memory footprint grows from 275 mb to 20GB if I don't restart it. Attaching a valgrind trace, unsure how useful
that was a screenshot, here is the valgrind file. too big to attach https://mega.nz/file/J0AhFIwK#pI_pFGmN8gWZCjHAjeuo1APerJ1rWoJavFPuwq3o1eo
https://mega.nz/file/o8pBARSY#QxC_k6BYt84bSUQje7RI74QNqMwYA9UjIuf3iMSFdMg video of plasmashell memory usage growing to 22GB in the space of less than 3 minutes.
Pawel, please submit a new bug report for your issue because there's almost no chance it's caused by the same issue as this bug. Almost every memory leak has a different root cause. Thanks! Alberto, since it seems like your issue was caused by a misbehaving 3rd-party app, I'll close this now. Please do submit a bug report for the developers of qsyngthingtray!