Bug 450600

Summary: plasma_session memory leak
Product: [Plasma] plasmashell Reporter: le_dino <palletonde>
Component: Startup processAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: behzad.a_ir, fabian, kde, lee295012, nate, nicolas.fella, patrick.f.king
Priority: NOR    
Version: 5.24.1   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.24.3

Description le_dino 2022-02-20 06:21:42 UTC
SUMMARY
I've noticed that my system seems to suffer giant memory leaks over time, coming from process plasma_session. Researching told me that various people experience this from process plasmashell, but it doesn't seem to be my case as it's sitting on about 670mb compared to the current 15gb from plasma_session.
Rebooting fixes it but eventually it'll come back.
I don't turn it off overnight (I have my reasons for it) and when I turn the monitors back on I'm usually welcomed with a series of notifications that say kde has crashed? I don't know if that has relevance on the issue.

I couldn't tell when this started but it's relatively recent as I can't say I've seen this happen last month or so. I tried looking in the kde bug tracker but I'm not experienced with this stuff just yet so I didn't find anything related to plasma_session memory leaks.
It just keeps increasing and I don't know what to do.
I made a post on reddit which suggested filing a bug report, so here I am

OBSERVED RESULT
Memory usage way too high, growing over 10, 12, 14gb and counting

EXPECTED RESULT
Definitely not >10gb of plasma_session

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.10
KDE Plasma Version: 5.24.1
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-28-generic (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2
Comment 1 Behzad A 2022-02-20 15:47:52 UTC
Possibly related issue
https://bugs.kde.org/show_bug.cgi?id=447952
Comment 2 David Edmundson 2022-02-23 23:36:54 UTC
Should be fixed as of today.
Comment 3 Nicolas Fella 2022-02-23 23:40:38 UTC
are you referring to https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1487?
Comment 4 Fabian Vogt 2022-02-26 16:07:16 UTC
(In reply to Nicolas Fella from comment #3)
> are you referring to
> https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1487?

If so, the high memory usage was because of excessive logging, which now ends up in some log files on the system.
Please check whether e.g. ~/.local/share/sddm/*-session.log look reasonable.
Comment 5 Fabian Vogt 2022-02-26 16:07:46 UTC
(had to reopen first to set NEEDSINFO)
Comment 6 David Edmundson 2022-02-26 19:12:28 UTC
>> are you referring to

yes
Comment 7 Bug Janitor Service 2022-03-13 04:35:18 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Patrick King 2022-03-22 02:52:44 UTC
I'm also experiencing this problem, currently sitting at 11.4 / 16 gib consumed by plasma_session.

The issue tags say this is addressed in 5.24.3, is that the case?

OS: Neon 20.04 focal
Kernel: x86_64 Linux 5.13.0-30-generic
Uptime: 3d 3h 51m
Packages: 2858
Shell: bash 5.0.17
Resolution: 5759x1080
DE: KDE 5.91.0 / Plasma 5.24.2
WM: KWin
GTK Theme: Breeze [GTK2], Breeze-Dark [GTK3]
Icon Theme: breeze-dark
Disk: 1.3T / 2.0T (65%)
CPU: AMD FX-6350 Six-Core @ 6x 3.9GHz
GPU: NVIDIA GeForce GTX 650
RAM: 15153MiB / 15842MiB
Comment 9 Bug Janitor Service 2022-04-06 04:34:51 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Patrick King 2022-04-09 22:21:48 UTC
Replying to add: I've been on Plasma 5.24.3 for a few weeks, and today plasmashell is up to 2.3gb of memory.

There's only one log file in the mentioned directory, and `~/.local/share/sddm/xorg-session.log` is zero bytes.

Happy to provide more info if desired.
Comment 11 Bug Janitor Service 2022-04-24 04:35:03 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Bug Janitor Service 2022-05-09 04:35:02 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!