Bug 372447 - Plasma 5 causes memory leak in Xorg
Summary: Plasma 5 causes memory leak in Xorg
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.8.3
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-13 22:41 UTC by Mircea Kitsune
Modified: 2020-11-24 17:49 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (102.63 KB, image/png)
2016-11-13 22:42 UTC, Mircea Kitsune
Details
Screenshot (107.91 KB, image/png)
2016-11-13 22:42 UTC, Mircea Kitsune
Details
top (4.69 KB, text/plain)
2016-11-13 22:42 UTC, Mircea Kitsune
Details
free (230 bytes, text/plain)
2016-11-13 22:43 UTC, Mircea Kitsune
Details
stack trace of memory leak (7.74 KB, text/plain)
2017-09-30 21:51 UTC, Phil KdeBugs
Details
valgrind , shows massive memory allocation. Does not run sufficiently to profiel (213.64 KB, text/plain)
2017-09-30 22:43 UTC, Phil KdeBugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mircea Kitsune 2016-11-13 22:41:06 UTC
After approximately two days of uptime, Xorg starts consuming more memory than it normally should. Xorg usually reaches over 200 MB, and if modifying plasmoids or restarting the 'plasmashell' process frequently it can even go over 400 MB!
Comment 1 Mircea Kitsune 2016-11-13 22:42:01 UTC
Created attachment 102217 [details]
Screenshot
Comment 2 Mircea Kitsune 2016-11-13 22:42:25 UTC
Created attachment 102218 [details]
Screenshot
Comment 3 Mircea Kitsune 2016-11-13 22:42:58 UTC
Created attachment 102219 [details]
top
Comment 4 Mircea Kitsune 2016-11-13 22:43:18 UTC
Created attachment 102220 [details]
free
Comment 5 Mircea Kitsune 2016-11-13 23:02:18 UTC
For comparison: After restarting Xorg (control + alt + backspace) and logging back in, Xorg only used about 35 MB. That amount does slowly increase, and it's hard to tell when it does so legitimately or when it might be the result of a leak.
Comment 6 Phil KdeBugs 2017-09-30 21:51:51 UTC
Created attachment 108107 [details]
stack trace of memory leak

plasma-workspace  4:5.8.6-2.1 
xserver-xorg 1:7.7+19

debian stretch
Comment 7 Phil KdeBugs 2017-09-30 21:54:05 UTC
Hi,

This might help. My workstation has 256GB of memory, so I had plenty of time to catch plasmashell in the act of chewing up all the memory it could. When I first caught it , it has reached 1.5GB!!

This is a brand new install of debian stretch, completely up-to-date (30Sep2017).

I attached the debug trace when I attached GDB and saw where it was stuck.
Comment 8 Phil KdeBugs 2017-09-30 22:43:58 UTC
Created attachment 108109 [details]
valgrind , shows massive memory allocation. Does not run sufficiently to profiel

Valgrind. Some direction of what to look for would help.
Comment 9 David Edmundson 2017-10-01 15:23:30 UTC
Please see the memory leak and upstream Qt bug in 381000
Comment 10 Christoph Feck 2017-10-12 19:43:05 UTC
Debian does not use Qt 5.9 yet. Still it would be interesting if a recent version of Qt and/or Plasma makes a difference.
Comment 11 Justin Zobel 2020-11-09 06:23:04 UTC
381000 was closed and many Qt updates have happened since then.

Mircea, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved, thanks.
Comment 12 Bug Janitor Service 2020-11-24 04:33:50 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 13 Mircea Kitsune 2020-11-24 17:49:26 UTC
Haven't seen this one in a long time, definitely safe to assume it was solved by now.