major memory leak on plasmashell

Bug #1502556 reported by mrl586
52
This bug affects 10 people
Affects Status Importance Assigned to Milestone
plasma-framework
Fix Released
Medium
plasma-workspace (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

It seems that plasmashell stole whole memory (RAM+swap) after login to Plasma 5 desktop.

[ 1138.989686] Out of memory: Kill process 1304 (plasmashell) score 913 or sacrifice child
[ 1138.989694] Killed process 1304 (plasmashell) total-vm:19406712kB, anon-rss:6731080kB, file-rss:0kB

tux@Z50:~$ lsb_release -rd
Description: Ubuntu Wily Werewolf (development branch)
Release: 15.10
tux@Z50:~$ apt-cache policy plasma-workspace
plasma-workspace:
  Asennettu: 4:5.4.2-0ubuntu1
  Ehdokas: 4:5.4.2-0ubuntu1
  Versiotaulukko:
 *** 4:5.4.2-0ubuntu1 0
        500 http://fi.archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: plasma-workspace 4:5.4.2-0ubuntu1
ProcVersionSignature: Ubuntu 4.2.0-12.14-generic 4.2.1
Uname: Linux 4.2.0-12-generic x86_64
ApportVersion: 2.19-0ubuntu1
Architecture: amd64
CurrentDesktop: KDE
Date: Sun Oct 4 08:53:15 2015
InstallationDate: Installed on 2015-10-04 (0 days ago)
InstallationMedia: Kubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20151003)
SourcePackage: plasma-workspace
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
In , Pesda1-0 (pesda1-0) wrote :

Hi!
I have ArchLinux with Qt 5.4, KDE Framework 5.7.0 and KDE Plasma 5.2.0 installed on laptop.
During launch plasmashell uses almost twice more, than in KDE 4.14. During use plasmashell utilize over 600MB - that is more than as for KDE.
Install was made by different way:
- by deleting KDE 4.14 and then installing Plasma 5 with KDE Framework from official repository ArchLinux
- by installing clear ArchLinux and after that installing Plasma 5 with KDE Framework
- by installing clear ArchLinux and after that compiling Plasma 5 with KDE Framework from git sources

No one of this methods does not improve situation with using RAM on Plasma 5. In this form it is not suitable for use, even with 5.2.1 version released. In 4.14 plasma uses ~60mb ram on cold start, and not more than 80mb during use whole day. At case of 5.2.1 - 600mb by half day. This is more than all system and browser.
Hope, that this very big issue will be fixed with nearest releases.

Here is my explanation screenshots:
http://res.cloudinary.com/metsys/image/upload/v1425513469/kde5/image.png
http://res.cloudinary.com/metsys/image/upload/v1425513470/kde5/image1.png
http://res.cloudinary.com/metsys/image/upload/v1425513469/kde5/image2.png
http://res.cloudinary.com/metsys/image/upload/v1425513468/kde5/image3.png
http://rghost.net/private/8Qgfs2rd4/f05d5b1e87aad02d863e9009e864c8da]plasmashell.smaps

luebking advice me post this issue here, in bug tracker

here is my first post: https://forum.kde.org/viewtopic.php?f=289&t=125251

Reproducible: Always

Steps to Reproduce:
In dedails

Expected Results:
use max 100 mb ram ))

Revision history for this message
In , Pesda1-0 (pesda1-0) wrote :
Revision history for this message
In , Zolotopypov Vova (vova7890) wrote :

Welcome into JS world! :)

Revision history for this message
In , Pesda1-0 (pesda1-0) wrote :
Revision history for this message
In , NForce (nforce25) wrote :

I see the same exact problem on my Gentoo 64bit laptop.
Plasma 5.2.1, KF5.7, Qt 5.4.1

Revision history for this message
In , Cyberbeat-p (cyberbeat-p) wrote :

Since I upgraded to plasma-5 I often run into an unresponsible (because of swapping) desktop, and have to hard-reset. Please have a look memory consumption please. I cannot upgrade my RAM anymore.

Revision history for this message
In , Anmeldungen-w (anmeldungen-w) wrote :

I'm affected to.

Which desktop applets are you using?
I'm not using any additional desktop applets, besides the following builtins:
- K-Menu
- Virtual Desktops Switcher
- Window switcher
- Clock

Revision history for this message
In , Andreas Berger (hatbollen) wrote :

I've got what I assume to be the same problem. I upgraded to Kubuntu 15.04 with Plasma 5.2.
On boot plasmashell uses ~160MB ram. I left the machine idle with nothing but a Konsole running, and a few hours later plasmashell had 3.2GB res RAM.

Sadly I'm not sure what logs I should attach to let anyone make sense of this.

Revision history for this message
In , U26 (u26) wrote :

memsys, how did you create that valgrind output?

most importantly, how did you close valgrind/plasmashell.
Almost all these traces are just in Qt and it seems unlikely that's the problem.

can all of you above try removing applets to see if we can pinpoint one causing a problem.

Can you all above tell me what graphic card you're using + driver versions.

Revision history for this message
In , Cyberbeat-p (cyberbeat-p) wrote :

It happens on two different machines for me, one is an intel GM45 Express with a recent i915 driver

Revision history for this message
In , Andreas Berger (hatbollen) wrote :

The only plasmoids I've got running in my tray are notifications, volume control, network, klipper and removable devices. I don't see any memory being freed up if I stop/remove any of them.

I'm using the nvidia 346.47 driver on a nvidia 770GTX card.

Revision history for this message
In , Pesda1-0 (pesda1-0) wrote :

David Edmundson,
Here is info about graphic card and driver version:
http://res.cloudinary.com/metsys/image/upload/v1427053941/kde5/image.png

This is valgrind launch command:
localhost% valgrind --tool=memcheck --leak-check=full --leak-resolution=high --log-file=Plasma_Debug plasmashell and file created https://yadi.sk/d/pIXnTtd6fSbqB and https://yadi.sk/d/BiviLfVWfSbyd

"how did you close valgrind/plasmashell" - what do you mean? It's not clear for me, sorry for question.

All log files was created with default installed applets, if it matter, ok, I remove them and make new one test/log files.

Regards

Revision history for this message
In , Pesda1-0 (pesda1-0) wrote :

Here is plasma launch without applets. After ~20 minutes closed by Ctrl+C https://yadi.sk/d/Szh6GAwTfSgqv
Here is valgrind results https://yadi.sk/d/WE0wP5xgfSgyS

Revision history for this message
In , Pesda1-0 (pesda1-0) wrote :

https://yadi.sk/d/voVYIUg2fTRMH
- Plasma launch with 1 empty panel and 3 applets:
1. org.kde.plasma.kickoff
2. org.kde.plasma.systemtray (by adding this applet plasmashell crashed (KCrash: Application 'plasmashell' crashing...)
3. org.kde.plasma.taskmanager
After attempt to add third applet valgrind shutdown ([1] + exit 253 valgrind --tool=memcheck --leak-check=full --leak-resolution=high plasmashel)

and
https://yadi.sk/d/7jH9HwSBfTRi8 result of command:
valgrind --tool=memcheck --leak-check=full --leak-resolution=high --log-file=Plasma_Debug_3 plasmashell

Revision history for this message
In , Anmeldungen-w (anmeldungen-w) wrote :

It happens to me mostly some time after the screen was locked, but I can't confirm it is really related to each other.

Revision history for this message
In , Marco Martin (notmart) wrote :

*** Bug 345711 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Spamkill (spamkill) wrote :

Have traced this down to the qt app: transmission-qt

The memory usage continuously rises while seeding with this app, after some time, possibly as much as an hour. Then immediately stops rising once I kill the app.

Transmission-gtk is fine.

This continues through the latest beta to 5.3.

Revision history for this message
In , U26 (u26) wrote :

Transmission-qt makes plasmashell use more memory?

Does it have a system tray icon? Does that icon do anything "odd"?

Revision history for this message
In , Spamkill (spamkill) wrote :

Ok David, that's it!

When I turn off the tray icon in transmission-qt (under preferences>desktop), the memory usage stops rising.

Good to know.

Revision history for this message
In , Spamkill (spamkill) wrote :

Sorry, didn't answer your question, David.

It is the plasmashell using the memory, and no, the icon was not doing anything odd, when on.

Revision history for this message
In , Asoliverez-v (asoliverez-v) wrote :

I have the same problem with plasmashell. I have no plasmoids on the desktop, and only a minimal menu bar.

My suspicion is that non-native apps are the issue. I use sparkleshare (a mono app), which I haven't managed to display in the system tray. Whenever it's running, plasmashell memory usage starts going up totally out of control.

Revision history for this message
In , bugzy (bugzylittle) wrote :

I experience the same problems on plasma 5.3 with no plasmoids, but with owncloud sync client running. I notice the problem only after I unlock the lock screen, and in my case Xorg.bin does exactly the same thing. Whereas "plasmashell" uses up to 2GB of Ram, Xorg.bin doubles the ram usage. I have attached smaps and screenshots from ksysguard.

Revision history for this message
In , bugzy (bugzylittle) wrote :

Created attachment 92365
Plasma memory usage smap export

Revision history for this message
In , bugzy (bugzylittle) wrote :

Created attachment 92366
ksysguard detailed view of plasmashell memory usage

Revision history for this message
In , bugzy (bugzylittle) wrote :

Created attachment 92367
ksysguard view of plasmashell and xorg memory usage

Revision history for this message
In , bugzy (bugzylittle) wrote :

I forgot to add that I am using Fedora packages:
Fedora 21
Linux 3.19.5-200.fc21
KDE Plasma 5.3

Revision history for this message
In , bugzy (bugzylittle) wrote :

Also I do not have transmission-qt or transmission installed or running

Revision history for this message
In , U26 (u26) wrote :

bugzy, can you list what things you do have in the sysem tray?

Revision history for this message
In , bugzy (bugzylittle) wrote :

@ David Edmundson
On Desktop: I have owncloud-client 1.8.0 in the system tray
On Laptop: I have owncloud-client 1.8.0 and qsynergy 0.9.1 in the system tray

I am experimenting with turning off both applications later today to see if I can still reproduce the problem. I will let you know the results.

Revision history for this message
In , bugzy (bugzylittle) wrote :

Created attachment 92380
System Tray Items

It just occured to me that you asked me to list all items so here is a screenshot of my system tray

Revision history for this message
In , U26 (u26) wrote :

I pushed a few things in frameworks 5.11, I doubt they'll make a huge difference.
Also some leaks in libdbusmenu-qt which are pending merge.

I'll leave this open till I'm able to run the system tray under valgrind properly

Revision history for this message
In , bugzy (bugzylittle) wrote :

@ David Edmundson
Thanks.
Also, I was able to run a few "layman" tests, and can confirm that when I have neither owncloud client nor qsynergy in the tray, the memory usage stays sane.

Revision history for this message
In , ycollet (ycollet) wrote :

I installed Fedora 22 on a virtualbox without 3d acceleration.
I am experimenting huge processor load under kde -> plasmashell using 120% of processor on 2 procs.
After trying a little bit, I was able to get the processor load back to normal by removing all plasma widgets on my desktop.
Once I add a plasma widget, the processor load rise to 120 % (tested with just an analog clock, just a notes, and just a processor load watch).

Revision history for this message
In , ycollet (ycollet) wrote :

The version of kde installed under Fedora 22 is kf5 - 5.10.0

Revision history for this message
In , Stvad (x-rolt-m) wrote :

Same problem here.
Plasma 5.3.1
ArchLinux
Intel video.

Revision history for this message
In , ycollet (ycollet) wrote :

I performed some tests.
If I have just a notes and a clock plasma widget, there is no cpu overload.
If I put a cpu load monitor and / or a memory monitor plasma widget, then the cpu load rise to 120 %.

Revision history for this message
In , dan.boff (dan-boff) wrote :

Same issue here. After around 3h I have 2gb ram usage from plasmashell. I am not sure if this is an interaction with another program: I only noticed this issue after playing dota 2 for some time and the pc got barely responsible. Looking into ksysmon I saw that plasmashell uses a lot of ram. After killing it and restarting it, everything went back to normal.

Is this an interaction of programs that use plasmas notify system?

Revision history for this message
In , Alex (alexzkhr) wrote :

Downgraded kdebase-plasma to 15.04.1-1, didn't help too much (1.8Gb ram by plasma-desktop process while played wine game couple hrs)
Next downagraded qt4 to 4.8.6-6 ... leak is slowed.

Latest updates leaks simply by clicking button of konsole window on panel - each minimize leaks about 3kb, restore 1kb around...

with those 2 downgrades it is very slowed down as far as I see, now it hundreds of bytes of changes (instead kilobytes).

Revision history for this message
In , Alex (alexzkhr) wrote :

yeh.. 30-40 minutes of doing the same - konsole/chrome/pidgin .... still 104Mb (instead 800mb this morning).

So qt 4.8.7-1 makes plasma to leak and 4.8.6-6 not.

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

I am seeing a lot those:
 New Notification: "Kopete Messenger" "<html><i>someone someone</i> is now Online.</html>" -1 & Part of: 0
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:100: TypeError: Cannot read property of null
trying to show an empty dialog
Currrent active notifications: QHash()
Guessing partOf as: 0
 New Notification: "Kopete Messenger" "<html><i>someone someone</i> is now Online.</html>" -1 & Part of: 0
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:100: TypeError: Cannot read property of null
trying to show an empty dialog

And memory increases by ~1MB every notification.

I later also tested transmission-Qt5. It was making plasmashell use 1MB more memory per second or two.

Revision history for this message
In , Bvbfan-g (bvbfan-g) wrote :

Created attachment 93146
Every time crash on ram usage around 300M

Ram usage around click on clipboard or other in system tray. kf5.11 plasma 5.3.1

Revision history for this message
In , bugzy (bugzylittle) wrote :

@ycollet
I believe that the problem that you have described is different from the one being discussed here. I think it will be good to create a separate bug report for the cpu load issue. Nevertheless, I have experienced the CPU rise issue in similar circumstances. It seems that whenever you put a frequently updated plasmoid either in the system tray or on the desktop, the cpu spikes.
In my case, whenever my plasma-nm or the notification icon are showing the spinner (the semi-circular stuff that spins around the a pertinent icon in the system tray to indicate that work is being done) for loading a connection or displaying the status of a copy job that takes a while to complete, my CPU usage goes wild, and I know that it is not caused by the connection or the copy job (i.e. the same copy on cli shows no issues.)

Okay so the point of this comment was to move the CPU issue into another bug :). Sorry to divert from the discussion of this memory leak problem.

Revision history for this message
In , bugzy (bugzylittle) wrote :
Revision history for this message
In , Name_No (nomen-infitior) wrote :

Hello.

I am having same problem on my desktop: plasmashell eats as much memory as is can. I have even spotted 2g consumed in RES column of top.

After reading this bugreport I disabled tray icon for my Psi+ (it uses animated icons) and memory consumption has gone. I can't say that having no icon for IM is very convenient, but at least I don't need to restart plasmashell every day.

So I think this info may be helpful:
• there was an animated tray icon from third-party Qt-4 application (Qt 4.8.6)
• it was definetely "animating" while my session was locked, usually it was blinkig for the whole night
• i am not using any screensavers, just lock screen.
• I had to remove the animated tray icon to eliminate memory consumption
• there is one more tray icon from some KDE application (it says I have updates for my system) which is not animated and seems not to affect plasmashell's memory consumption.

Thank you.

Revision history for this message
In , Bvbfan-g (bvbfan-g) wrote :

Created attachment 93253
With Qt 5.4.2 debug symbols

Revision history for this message
In , miku84 (miku84) wrote :

Same issue on Manjaro Plasma 5.3.1, KF5.11

I found one issue which causes memory increasement:
When I click to the panel to add widgets, plasmashell CPU usage became about 10% from zero and memory increases continuously (about 30 MB in a minute).

Even if there is no change on the panel the memory increasement does not disapear.

Other programs may increase plasmashell as well as after a few hours plasmashell memory takes about 600MB instead of the starting 200MB.

But for one issue, there is the add widgets function in the panel which creates huge memory usage.

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

Since this is likely because of the use of JS, any way to implement garbage collecting?

Revision history for this message
In , gonssal (gonssal) wrote :

I can confirm the huge RAM usage in (K)ubuntu 15.04, after updating from 14.10.

I was using two panels (one bottom, one top) in the first screen of a dual screen setup. I had some application icons, show desktop, trash icon, the systray and the clock in the top panel and the taskbar in the bottom one. Backgrounds set to black color in both screens. Systray elements: kmix, networkmanager, klipper, notifications and updates. No desktop widgets.

I can't give more info because after finding KDE was using 2,7GB of my 4GB RAM I immediatelly went back to the 14.10 installation backup so I could start working. Not updating until Javascript is grounded I guess.

Revision history for this message
In , Filip Sobalski (pinkeen) wrote :

Arch linux
extra/plasma-workspace 5.3.1-1 (plasma)

Memory usage of plasmashell climbs drastically (in like 30mins, not sure yet if this related to background kio_ssh file copy), desktop becomes choppy, when mem usage reaches 6.6GiB (sic!) it crashes.

Revision history for this message
In , David V (charon00) wrote :

I am also seeing this problem in the KDE spin of Fedora 22 (plasma-workspace.x86_64, v5.3.1-2). After using the system for a while (not sure on the amount of time), RAM usage is around 3-4 gigs with just the desktop and Konsole running.

Not sure if this is the same issue, but when the memory usage is high the desktop starts flickering when I select applications from the taskbar, and windows aren't rendered completely/correctly.

Revision history for this message
In , U26 (u26) wrote :

>Also, I was able to run a few "layman" tests, and can confirm that when I have neither owncloud client nor qsynergy in the tray, the memory usage stays sane.

I think we can be pretty sure it happens with certain system tray icons.

qbittorrent spits out TootltipChanged signals once a second, the others probably do the same. Which means if there is even a tiny leak updating SNIs, it will fill up pretty quickly.

Though, I still can't reproduce locally, and valgrind showed everything being fine.

There was a fix in Qt > 5.4.1 to some QtDBus memory allocation.

Can someone confirm they still have it with that version of Qt?

Can people start a list of what apps trigger this, maybe we can find a useful pattern.

Finally, could someone with a leak capture the dbus traffic on their system whilst the memory is increasing.
ideally with bustle, or worst case dbus-monitor. Note these may contain personal information from whatever else is running, so be careful before sending.

Revision history for this message
In , Bvbfan-g (bvbfan-g) wrote :

(In reply to David Edmundson from comment #50)
About me, widgets has a leaks, media player, weather and ones with timers, they fast increase RAM usage.

Revision history for this message
In , U26 (u26) wrote :

Could you be a lot more specific.
Obviously adding more things is going to increase the usage

What I'm concerned about are where we add something and that starts a continued rise of usage when left idle.

Revision history for this message
In , miku84 (miku84) wrote :

Have you tried this one?

"When I click to the panel to add widgets, plasmashell CPU usage became about 10% from zero and memory increases continuously (about 30 MB in a minute). Even if there is no change on the panel the memory increasement does not disapear."

Revision history for this message
In , U26 (u26) wrote :

Yes.

Revision history for this message
In , Spamkill (spamkill) wrote :

(In reply to David Edmundson from comment #50)
> >Also, I was able to run a few "layman" tests, and can confirm that when I have neither owncloud client nor qsynergy in the tray, the memory usage stays sane.
>
> I think we can be pretty sure it happens with certain system tray icons.
>
> qbittorrent spits out TootltipChanged signals once a second, the others
> probably do the same. Which means if there is even a tiny leak updating
> SNIs, it will fill up pretty quickly.
>
> Though, I still can't reproduce locally, and valgrind showed everything
> being fine.
>
> There was a fix in Qt > 5.4.1 to some QtDBus memory allocation.
>
> Can someone confirm they still have it with that version of Qt?
>
> Can people start a list of what apps trigger this, maybe we can find a
> useful pattern.
>
> Finally, could someone with a leak capture the dbus traffic on their system
> whilst the memory is increasing.
> ideally with bustle, or worst case dbus-monitor. Note these may contain
> personal information from whatever else is running, so be careful before
> sending.

David, transmission-qt on Arch Linux with all latest plasma and Qt-5.4.2, is still increasing RAM as before, as I enable Prefs>Desktop>"Show Transmission icon in the notification area". Disabling it stops it.

Have not tried bustle, however notice that it is in the AUR. Please post how to use and grab what/where the information you need.

Thanks

Revision history for this message
In , Bvbfan-g (bvbfan-g) wrote :

(In reply to David Edmundson from comment #52)
Look RAM usage then start player with mpris2 (dragon, juk, etc) media player is loading, RAM will increasly by every stop -> start player.

Revision history for this message
In , 1806whiteguard (1806whiteguard) wrote :

I just add zram to the system like this https://wiki.debian.org/ZRam and now I see no any "memory leak" at all, not by plasmashell, not by iceweasel (firefox) and so on and no any freezing. I guess all problems goes from memory cache and swap.

Revision history for this message
In , Alex (alexzkhr) wrote :

Not sure :/ Something changed in Qt. Frozen 4.8.6 just works, had 32-bit of 4.8.7 yet - Skype failed to start, had to rollback it too.

Revision history for this message
In , Bvbfan-g (bvbfan-g) wrote :

I can notice, after 7 days of usage nor restart nor logout with kf 5.12 since tagged, nor high ram, nor cpu usage nor radomply crashes. Can anyone confirm?

Revision history for this message
In , dan.boff (dan-boff) wrote :

Yes, RAM usage doesn't increase anymore for me. Would be interesting what the cause was

Revision history for this message
In , Cyberbeat-p (cyberbeat-p) wrote :

For me this is also solved now

Revision history for this message
In , David (davidmarch007) wrote :

With Kf5.13 and plasma 5.4 the problem seems to have returned for me. plasmashell is currently using 2.4G.

Revision history for this message
In , mrDoctorWho (mrdoctorwho) wrote :

Have that problem been backported to KDE4? The plasma-desktop process begin leaking for about 1MB per 1-2 seconds when I start transmission-qt in my Archlinux with KDE4 (kdebase-workspace 4.11.22-2). Just like described above.

Revision history for this message
In , Weigelt-bernd (weigelt-bernd) wrote :

I have the same problem with 5.14 and Qt 5.5 on two systems.

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

Transmission-Qt must be doing something weird.
There are obviously some memory leaks in plasmashell but the transmission issue is one of the notable ones.
Perhaps someone should be contacting the transmission Qt frontend maintainer.
His name is "Jordan Lee" according to the https://trac.transmissionbt.com/browser/trunk/AUTHORS
(An email is in the Authors file as well)

Revision history for this message
In , Weigelt-bernd (weigelt-bernd) wrote :

Hi

i think, my problem is more related to this bug https://bugs.kde.org/show_bug.cgi?id=352854
But will observe both bugs

Revision history for this message
mrl586 (mrl586) wrote :
Revision history for this message
In , Justgivemeafkenaccountplx (justgivemeafkenaccountplx) wrote :

I'm seeing a slow but steady increase in Plasma memory usage which means I have to reboot my system at least once a day.

I see others are also pinning this on notification tray updates. The memory leak only seems to happen when I'm running the ownCloud client, which has an entry in the "Status & Notifications" area. Sounds like this happens whenever an application updates its notification area, since my memory leak is quite slow, but Transmission which updates far more frequently than ownCloud client apparently suffers much worse. (I don't know, I don't have Transmission installed)

Please let me know if there are any further details or tests that may help :)

Running Manjaro (ie. Arch, more or less) with Plasma 5.4.2, Qt 5.5.0, Frameworks 5.15.0, Apps 15.08.2.

Thanks :)

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

(In reply to Dan Mac from comment #67)
> I'm seeing a slow but steady increase in Plasma memory usage which means I
> have to reboot my system at least once a day.
>
> I see others are also pinning this on notification tray updates. The memory
> leak only seems to happen when I'm running the ownCloud client, which has an
> entry in the "Status & Notifications" area. Sounds like this happens
> whenever an application updates its notification area, since my memory leak
> is quite slow, but Transmission which updates far more frequently than
> ownCloud client apparently suffers much worse. (I don't know, I don't have
> Transmission installed)
>
> Please let me know if there are any further details or tests that may help :)
>
> Running Manjaro (ie. Arch, more or less) with Plasma 5.4.2, Qt 5.5.0,
> Frameworks 5.15.0, Apps 15.08.2.
>
> Thanks :)

You can simply restart plasmashell (kquitapp5 plasmashell && sleep 5 && plasmashell & disown). logging off/logging back in also restarts Xorg process in case it is eating up memory as well. You don't have to reboot your machine.

Revision history for this message
In , microchip (neutrino8) wrote :

Hello,

Any progress on this?

I just installed openSUSE Leap 42.1 and am also suffering from this issue. I have to kill and restart plasmashell every day while looking at how much it consumes memory.

Revision history for this message
In , Alex (alexzkhr) wrote :

ok.. i will NOT unfreeze 4.8.6 KDE yet i did and it goes...on arch

Revision history for this message
In , Alex (alexzkhr) wrote :

(In reply to alexzkhr from comment #71)
> ok.. i will NOT unfreeze 4.8.6 KDE yet i did and it goes...on arch

QT i meant :D 4.8.6

Revision history for this message
In , microchip (neutrino8) wrote :

I have a strong suspicion that the leak is in the network component of the shell. Whenever I add a networking monitoring widget, memory consumption increases each time that widget refreshes its info. I tried two different network monitoring widgets and I get the same behavior.

If I remove them, then memory consumption remains more or less steady, only at times very slightly increasing. I cannot fully blame the network component as memory still increases, but very very slightly

This is on a openSUSE Leap 42.1 install with Qt 5.5.0 and latest stable KF5

Revision history for this message
In , Wojtask9 (wojtask9) wrote :

Created attachment 95400
valgrind with memory leak

I hit the same problem with RAM usage.
I don't have any special widgets (only Yahoo Weather Widget) or icon's in tray.

Revision history for this message
In , Name_No (nomen-infitior) wrote :

This looks pretty similar to https://bugs.kde.org/show_bug.cgi?id=314919

Is it possible that the same problem exists in plasma 5 while it got fixed in plasma4?

Is there any hope that any plasma developer installs Psi and traces the bug?

Revision history for this message
In , Goldedragon (goldedragon) wrote :

I've this bug, too. By ksysquard's data, plasmashell starts from ~90M RAM usage and growing it up continiously. It can eat approximately 100-200M per hour, even without any user activity. After running in console 'kquitapp5 plasmashell && sleep 5 && plasmashell & disown', memory usage is restored to ~90M and still growing again. I've not installed any third-party widgets or some manually builded packages. Turning effects off and|or widgets removing doesn't help.

Configuration info: Arch Linux 64-bit distribution with latest updates, AMD Phenom 810x4 CPU, GF 9800GT video with Nouveau drivers & Mesa installed, GB MA790X-DS4 motherboard, 8GB RAM, Plantronics wireless audio, wired network driven by Network Manager.

Revision history for this message
In , Wojtask9 (wojtask9) wrote :

(In reply to Dmitry from comment #76)
> I've this bug, too. By ksysquard's data, plasmashell starts from ~90M RAM
> usage and growing it up continiously. It can eat approximately 100-200M per
> hour, even without any user activity. After running in console 'kquitapp5
> plasmashell && sleep 5 && plasmashell & disown', memory usage is restored to
> ~90M and still growing again. I've not installed any third-party widgets or
> some manually builded packages. Turning effects off and|or widgets removing
> doesn't help.
>
> Configuration info: Arch Linux 64-bit distribution with latest updates, AMD
> Phenom 810x4 CPU, GF 9800GT video with Nouveau drivers & Mesa installed, GB
> MA790X-DS4 motherboard, 8GB RAM, Plantronics wireless audio, wired network
> driven by Network Manager.

I have almost the same situation except that htop and ksysguard shows that plasmashell only uses (~80MB-90MB) but my whole system is out of free memory.

After plasmashell restart and type "echo 1 > /proc/sys/vm/drop_caches" everything back's to normal.
This happen on my laptop (Intel graphics) and older second PC-box (Radeon card).

After some debugging I ran plasmashell with GALLIUM_HUD="requested-VRAM,requested-GTT,VRAM-usage,GTT-usage" and noticed strange thing.
VRAM goes to max, then GTT goes to max. After VRAM and GTT is full then htop and ksysguard show that something start eating my free memory. I'm not sure if this is possible but it looks like if VRAM and GTT is full then mesa/driver/etc is trying to use system memory. The eaisiest way to reproduce this is hovering over taskbar and desktop items.

I know nothing about OpenGL but I can imagine that textures are not removed and we have memory leak :)

Dmitry can you run plasmashell with GALLIUM_HUD (if you are using noveau mesa driver) and see if you will have similar effects ? :)

Revision history for this message
In , U26 (u26) wrote :

A comment in a Plasma 4 bug update today is very interesting.

>Was fixed for me by installing the 'freetype2' instead of the 'freetype2-infinality-git', installed earlier. >Looks like this was memory leak in the 'freetype2-infinality-git'.

*if* that's the culprit, it's going to cross over into being this.

(https://bugs.kde.org/show_bug.cgi?id=342374#c51)

Could you guys see if it makes a difference.

Revision history for this message
In , microchip (neutrino8) wrote :

@David Edmunson

I don't have that freetype2 pkg installed on my system, but memory still rises

Revision history for this message
In , Wojtask9 (wojtask9) wrote :

freetype2 without infinality didn't help.

But I recompiled qt and plasma5 without gles2 support (Gentoo USE="-gles2 -gles") and now everything looks correct and even better (apps uses less memory and everything is smoother).

Revision history for this message
In , andre.vmatos (andre-vmatos) wrote :

Getting this issue in Arch Linux testing with plasma 5.5. Just had to close all my apps and restart desktop, because Xorg was at 2.7G RAM usage. Xorg is the main issue, as it's memory usage raises faster than that of plasma. Plasma 5.4 didn't show this problem. 5.4.95 did, and issue is still present in 5.5 final.

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

(In reply to André Vitor de Lima Matos from comment #81)
> Getting this issue in Arch Linux testing with plasma 5.5. Just had to close
> all my apps and restart desktop, because Xorg was at 2.7G RAM usage. Xorg is
> the main issue, as it's memory usage raises faster than that of plasma.
> Plasma 5.4 didn't show this problem. 5.4.95 did, and issue is still present
> in 5.5 final.

Did you happen to suspend or hibernate during the session where Xorg reached 2.7G RAM?

Revision history for this message
In , andre.vmatos (andre-vmatos) wrote :

(In reply to Hussam Al-Tayeb from comment #82)
> Did you happen to suspend or hibernate during the session where Xorg reached
> 2.7G RAM?

Yes. I suspend my system often (at least once a day).

Revision history for this message
In , andre.vmatos (andre-vmatos) wrote :

(In reply to André Vitor de Lima Matos from comment #83)
> (In reply to Hussam Al-Tayeb from comment #82)
> > Did you happen to suspend or hibernate during the session where Xorg reached
> > 2.7G RAM?
>
> Yes. I suspend my system often (at least once a day).

But exactly now, my Xorg is at 1G ram, and increasing, plasmashell 151M (ok). I have not suspended this session, rebooted computer by the morning (kernel 4.3.1 update).

Revision history for this message
In , Bvbfan-g (bvbfan-g) wrote :

Provide output of xrestop.

Revision history for this message
In , andre.vmatos (andre-vmatos) wrote :

Created attachment 95993
xrestop

xrestop output, with Xorg at 655M res memory usage. Not too helpful, I think, as look like a lot of memory is "missing", suggesting a memory leak inside X.

Revision history for this message
In , AnAkIn (anakin-cs) wrote :

I have the same issue, Arch Linux and Plasma 5.5. Xorg is currently using 1,2 GB of memory. Plasmashell 196M. It happened yesterday as well.
I'm not using infinality. I don't use suspend or hibernate.

Revision history for this message
In , andre.vmatos (andre-vmatos) wrote :

Anyone knows which packages and options to recompile in ArchLinux to remove OpenGL2 ES from plasma/kwin, so I could test if it's the problem's source?

Revision history for this message
In , andre.vmatos (andre-vmatos) wrote :

Created attachment 96025
xrestop of valgrind session

Ran Xorg with debug symbols (in Xorg server and Intel driver). Finished session with Xorg (and valgrind) taking around 830M RES mem, 1120M VIRT mem.
Looks like creating windows increase memory usage. Closing windows free some resources, but not everything.

Revision history for this message
In , andre.vmatos (andre-vmatos) wrote :

Created attachment 96026
Xorg's pmap of previous session, without valgrind, around 1.3G

This pmap dump is from a previous session, without valgrind or debug symbols in Xorg, that took around 1.3G RAM. Notice in the begining of the file, [anon] memory address taking almost all 1.3G RAM (memory leak)

Revision history for this message
In , andre.vmatos (andre-vmatos) wrote :

Created attachment 96027
Xorg's pmap of valgrind+debug symbols session

In this one, memory usage looks more scattered than without valgrind or debug symbols. Still, finished it with 830M+ RAM usage by xorg.

Revision history for this message
In , andre.vmatos (andre-vmatos) wrote :

Created attachment 96028
valgrind log of Xorg with debug symbols, from start to end

Xorg's valgrind run, with debug symbols, through shell script with following command line:
exec valgrind --error-limit=no --leak-check=full --log-file=/tmp/Xorg-valgrind.log /usr/lib/xorg-server/Xorg.valgrind "$@"
Finished with 830M+ RAM usage, even with no windows open.

Revision history for this message
In , Georg Grabler (ggrabler) wrote :

Experiencing this as well for quite some time now. Went up to 2gb within 4 hours, 4gb within 8 hours. Pretty linear.

It's always happening, having a pretty fresh kubuntu 15.10 install (with updates). I can reproduce it by being afk, so let me know if I can do anything to get this backtraced.

Revision history for this message
In , ilna (a-gaydenko) wrote :

I have got - not scientific :) - feeling the leak is correlated with workspace background: using solid color helps.

Revision history for this message
In , Georg Grabler (ggrabler) wrote :

Interestingly, for me, extremely reproducable if I'm running Wine OpenGL applications. There I've like 1mb/s mem leak. Running no wine OpenGL application, it seems to be pretty stable.

But why would plasmashell freak out because of wine OpenGL applications?

Fact is, as soon as I start an OpenGL application in Wine (as WoW), plasmashell it leask 920k/s. As soon as I close it, it stops leaking. Note that normal Wine applications don't start the leak, as in example the Battle.net Launcher.

So that seems to be connected at least.

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

I have an idea but it is difficult to explain. Picture a compositor written in Qt5 and using opengl. Applications using libx11 directly and not Qt5 are causing leaks.

Revision history for this message
In , Georg Grabler (ggrabler) wrote :

Decided to put some time on this issue tonight. Happens on the following distributions:
Arch, KUbuntu, OpenSUSE, Fedora (KDE Build), Tanglu (3.0, 4.0 Alpha), Manjaro, Mint

Happens on DEs: Only KDE. DEs Tested:
KDE, Unity, Gnome, LXQt, KDE, LXDE, Cinnamon, MATE, Xfce.

Revision history for this message
In , AnAkIn (anakin-cs) wrote :

I think the leak only happens when I play CS GO (OpenGL app) and plasmashell is running. I now stop the plasmashell process while playing, and Xorg seems to have a normal memory usage.

Revision history for this message
In , Georg Grabler (ggrabler) wrote :

I think so too. Especially if wine was leaking in libx11, we'd see a different pattern (other DEs would very likely leak too!).

I didn't experience this on native OpenGL applications (yet) though, but I'l do some checks on that as well the next few days.

Revision history for this message
In , ilna (a-gaydenko) wrote :

(In reply to AnAkkk from comment #98)
> I think the leak only happens when I play CS GO (OpenGL app)...

I guess this generalization is too wide: I don't play games at all, but the leak takes place.

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

(In reply to Andrew Gaydenko from comment #100)
> (In reply to AnAkkk from comment #98)
> > I think the leak only happens when I play CS GO (OpenGL app)...
>
> I guess this generalization is too wide: I don't play games at all, but the
> leak takes place.

Perhaps everything not gtk3/Qt5/sdl2 is causing leaks?

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

Anyone on NVIDIA proprietary driver and getting memory leaks in Xorg process, can you try the following?
1) swapoff -a
2) quit all applications and anything minimized to your system tray but keep a terminal open and restart kwin (kwin_x11 or something --replace & disown).
3) close your terminal application.
4) Then ctrl+alt+F3 or F4 then ctrl+alt+f1 back to your session.
5) swapon -a
6) Check if Xorg process is now using less memory (in other terms, if some garbage collection happened).

Revision history for this message
In , Elizabeth Myers (elizabeth-d) wrote :

I am having the same problem as André Vitor de Lima Matos. Here's what I know:

* Only killing the X server reclaims the memory (killing plasmashell/kwin_x11 doesn't release it); it leaks about 5GB per day
* Plasma/kwin 5.5.2 (has been occurring for a while though)
* EGL/OpenGL 2.0 are my compositing options, but it happens with xrender too
* Using Intel driver 2.99.917-r2, Xorg 1.17.4, Kernel 4.3.3
* No real widgets besides the default
* I run thunderbird from time to time (but leaks even when I don't run it), firefox (5 or so tabs, no inordinate memory usage), pidgin (a few conversations), konversation (about 35 tabs or so), and konsole (pretty much vim, htop, and basic system administration tasks).
* plasmashell is using about 200M of memory, kwin_x11 is using about 40M of memory
* xrestop shows nothing out of the ordinary
* Suspending does not worsen it (I don't hibernate)
* I run infinality
* I have only one tray icon not from KDE: pidgin, and it blinking doesn't seem to worsen the problem after a cursory look
* Closing/opening windows doesn't seem to cause it (though it changes memory usage slightly, it doesn't resolve the general leak)
* Rolling over the task manager (looking at thumbnails) doesn't cause it

I'm at a loss as to what more I can do, though, to elucidate the bug. It seems to happen under ill-defined circumstances.

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

(In reply to Elizabeth Myers from comment #103)
> I am having the same problem as André Vitor de Lima Matos. Here's what I
> know:
>
> * Only killing the X server reclaims the memory (killing
> plasmashell/kwin_x11 doesn't release it); it leaks about 5GB per day
Can you try my suggestion please? close all applications including system tray ones after disabling swap. restart kwin_x11/plasma and ctrl+alt+f3 or f4 and then ctrl+alt+f1 back to your X session.
I would like to know if ctrl+alt+f* operations are triggering garbage collection in Xorg.

> * I run infinality
I think infinality patches can cause issues

Revision history for this message
In , Elizabeth Myers (elizabeth-d) wrote :

(In reply to Hussam Al-Tayeb from comment #104)
> Can you try my suggestion please? close all applications including system
> tray ones after disabling swap. restart kwin_x11/plasma and ctrl+alt+f3 or
> f4 and then ctrl+alt+f1 back to your X session.

I usually don't have swap enabled. The memory usage goes down when I close the apps and switch to a TTY to kill plasma and kwin_x11 (more from closing apps than anything else) but the leaked memory seems to remain.

Note though I only tried this when X was using about 300MB of memory (it starts with about 100). I will try it when the memory usage goes up again to the gigabyte range.

> I think infinality patches can cause issues

I've never had issues with them. I can try switching, but call me skeptical.

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

(In reply to Elizabeth Myers from comment #105)
> I usually don't have swap enabled. The memory usage goes down when I close
> the apps and switch to a TTY to kill plasma and kwin_x11 (more from closing
> apps than anything else) but the leaked memory seems to remain.
Thank you. That is what I was trying to figure out.
If I understand correctly, closing an application and then switching to a TTY and back causes Xorg to release the xserver memory used for that application. If memory leaks remain afterwards, then this indicates issues with the xorg driver and the compositor (kwin_x11 in your case).

Revision history for this message
In , AnAkIn (anakin-cs) wrote :

I never had swap enabled, and didn't use infinality either. For some reason I haven't had the issue the last few days though, it looks like it fixed itself for me. I have no idea what changed, maybe this is after I updated to Plasma 5.5.2.

Revision history for this message
In , andre.vmatos (andre-vmatos) wrote :

Confirming that at least main memory leak is gone in plasma 5.5.2. Creating and closing lots of windows (which triggered leak previously) doesn't seem to leak anymore, as Xorg recovers memory after that windows were closed.

Revision history for this message
In , Elizabeth Myers (elizabeth-d) wrote :

I've tried another compositing WM (xfwm4) and I have no leaks. It definitely seems to be something KDE is doing.

Revision history for this message
In , Painless-roaster (painless-roaster) wrote :

problem still exists on a version 5.5.3
apparently any plasmoid refresh take next leak
just set the display seconds in clock and during the day plasmashell take 600 mB ram

Revision history for this message
In , Rex Dieter (rdieter) wrote :

That test case is not reproducible for me, clock widget with seconds displayed... plasmashell hasn't grown any over the course of the past few minutes at least.

Revision history for this message
In , Bvbfan-g (bvbfan-g) wrote :

(In reply to painless roaster from comment #110)
Did you use Breeze? https://bugs.kde.org/show_bug.cgi?id=357800
Select Oxygen LookAndFeeel, logout - login make same tests.

Revision history for this message
In , Painless-roaster (painless-roaster) wrote :

(In reply to Rex Dieter from comment #111)
> That test case is not reproducible for me, clock widget with seconds
> displayed... plasmashell hasn't grown any over the course of the past few
> minutes at least.

Few minutes is very short time for test with clock.

Faster test:
 - download plasmoid thermal monitor and set:
     - refresh speed - 0.1s
     - create 5 fields for temperature monitoring (physical id and 4 cores)
 - in this test is leak speed is 12MB / minute

Is any chance for use memory leak profiler please? For example compile plasma-workspace with library jemalloc and use jeprof.
Valgrind is too slow and not monitor during run. But jemalloc is ideal library for memory monitoring.

Revision history for this message
In , Painless-roaster (painless-roaster) wrote :

(In reply to Rex Dieter from comment #111)
> That test case is not reproducible for me, clock widget with seconds
> displayed... plasmashell hasn't grown any over the course of the past few
> minutes at least.

I tried leak with thermal monitor on second pc. Leak exists, but it is slower (500kB / minute) . But for leak need set 6 virtual workspaces.

Revision history for this message
In , Painless-roaster (painless-roaster) wrote :

(In reply to Anthony from comment #112)
> (In reply to painless roaster from comment #110)
> Did you use Breeze? https://bugs.kde.org/show_bug.cgi?id=357800
> Select Oxygen LookAndFeeel, logout - login make same tests.

Leak (new test with thermal monitor) exists with oxygen and breeze .

Revision history for this message
In , Troy Volin (tmvolin) wrote :

I find that the leak persists even when the screensaver kicks in (overnight), so I wake to "kquitapp5 plasmashell && sleep 10s && plasmashell &>/dev/null & disown" every day.
I have a handful of systray icons which are handled by the xembed-sni-proxy, and I wonder if that contributes.
Also, if I let plasmashell's stdout and stderr come to my terminal window, I see xcb errors every time i move my mouse pointer over the taskbar and hover from one window marker to the next.
I don't know if either of these facts are helpful.

Revision history for this message
In , Bvbfan-g (bvbfan-g) wrote :

(In reply to painless roaster from comment #113)
> Faster test:
> - download plasmoid thermal monitor and set:
> - refresh speed - 0.1s
> - create 5 fields for temperature monitoring (physical id and 4 cores)
> - in this test is leak speed is 12MB / minute
>
> Is any chance for use memory leak profiler please? For example compile
> plasma-workspace with library jemalloc and use jeprof.
> Valgrind is too slow and not monitor during run. But jemalloc is ideal
> library for memory monitoring.

I cannot confirm i use it regular since it created, not remember, not leak at all. Tell your graphic driver, mine is radeon, your nvidia?

Revision history for this message
In , Painless-roaster (painless-roaster) wrote :

(In reply to Anthony from comment #117)
> (In reply to painless roaster from comment #113)
> > Faster test:
> > - download plasmoid thermal monitor and set:
> > - refresh speed - 0.1s
> > - create 5 fields for temperature monitoring (physical id and 4 cores)
> > - in this test is leak speed is 12MB / minute
> >
> > Is any chance for use memory leak profiler please? For example compile
> > plasma-workspace with library jemalloc and use jeprof.
> > Valgrind is too slow and not monitor during run. But jemalloc is ideal
> > library for memory monitoring.
>
> I cannot confirm i use it regular since it created, not remember, not leak
> at all. Tell your graphic driver, mine is radeon, your nvidia?

nouveau 1.0.12

$ uname -a
Linux 4.3.3-303.fc23.x86_64 #1 SMP Tue Jan 19 18:31:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

$ lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GT216 [GeForce 210] (rev a2)

$ rpm -q xorg-x11-drv-nouveau
xorg-x11-drv-nouveau-1.0.12-1.fc23.x86_64

Revision history for this message
In , Painless-roaster (painless-roaster) wrote :

valgrind detect memor leak (from 15minutes run) here:

==13702== 56,137,960 bytes in 32,858 blocks are definitely lost in loss record 62,663 of 62,663
==13702== at 0x4C28C50: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==13702== by 0x7496DFA: QSGBatchRenderer::Renderer::map(QSGBatchRenderer::Buffer*, int, bool) (in /usr/lib64/libQt5Quick.so.5.5.1)
==13702== by 0x7499074: QSGBatchRenderer::Renderer::uploadBatch(QSGBatchRenderer::Batch*) (in /usr/lib64/libQt5Quick.so.5.5.1)
==13702== by 0x74A4375: QSGBatchRenderer::Renderer::render() (in /usr/lib64/libQt5Quick.so.5.5.1)
==13702== by 0x74B00AE: QSGRenderer::renderScene(QSGBindable const&) (in /usr/lib64/libQt5Quick.so.5.5.1)
==13702== by 0x74B08FA: QSGRenderer::renderScene(unsigned int) (in /usr/lib64/libQt5Quick.so.5.5.1)
==13702== by 0x74C0DDD: QSGRenderContext::renderNextFrame(QSGRenderer*, unsigned int) (in /usr/lib64/libQt5Quick.so.5.5.1)
==13702== by 0x750ADCA: QQuickWindowPrivate::renderSceneGraph(QSize const&) (in /usr/lib64/libQt5Quick.so.5.5.1)
==13702== by 0x74DB78A: ??? (in /usr/lib64/libQt5Quick.so.5.5.1)
==13702== by 0x74DC890: ??? (in /usr/lib64/libQt5Quick.so.5.5.1)
==13702== by 0xA9D041B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib64/libQt5Widgets.so.5.5.1)
==13702== by 0xA9D58E5: QApplication::notify(QObject*, QEvent*) (in /usr/lib64/libQt5Widgets.so.5.5.1)

Revision history for this message
In , Wojtask9 (wojtask9) wrote :

(In reply to painless roaster from comment #119)
> valgrind detect memor leak (from 15minutes run) here:
>
> ==13702== 56,137,960 bytes in 32,858 blocks are definitely lost in loss
> record 62,663 of 62,663
> ==13702== at 0x4C28C50: malloc (in
> /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==13702== by 0x7496DFA:
> QSGBatchRenderer::Renderer::map(QSGBatchRenderer::Buffer*, int, bool) (in
> /usr/lib64/libQt5Quick.so.5.5.1)
> ==13702== by 0x7499074:
> QSGBatchRenderer::Renderer::uploadBatch(QSGBatchRenderer::Batch*) (in
> /usr/lib64/libQt5Quick.so.5.5.1)
> ==13702== by 0x74A4375: QSGBatchRenderer::Renderer::render() (in
> /usr/lib64/libQt5Quick.so.5.5.1)
> ==13702== by 0x74B00AE: QSGRenderer::renderScene(QSGBindable const&) (in
> /usr/lib64/libQt5Quick.so.5.5.1)
> ==13702== by 0x74B08FA: QSGRenderer::renderScene(unsigned int) (in
> /usr/lib64/libQt5Quick.so.5.5.1)
> ==13702== by 0x74C0DDD: QSGRenderContext::renderNextFrame(QSGRenderer*,
> unsigned int) (in /usr/lib64/libQt5Quick.so.5.5.1)
> ==13702== by 0x750ADCA: QQuickWindowPrivate::renderSceneGraph(QSize
> const&) (in /usr/lib64/libQt5Quick.so.5.5.1)
> ==13702== by 0x74DB78A: ??? (in /usr/lib64/libQt5Quick.so.5.5.1)
> ==13702== by 0x74DC890: ??? (in /usr/lib64/libQt5Quick.so.5.5.1)
> ==13702== by 0xA9D041B: QApplicationPrivate::notify_helper(QObject*,
> QEvent*) (in /usr/lib64/libQt5Widgets.so.5.5.1)
> ==13702== by 0xA9D58E5: QApplication::notify(QObject*, QEvent*) (in
> /usr/lib64/libQt5Widgets.so.5.5.1)

probably fixed in qt-5.5.2 nad qt-5.6.0
https://bugreports.qt.io/browse/QTBUG-48799

Revision history for this message
In , Painless-roaster (painless-roaster) wrote :

now i compiling qt5-qtdeclarative package with this patch

Revision history for this message
In , Painless-roaster (painless-roaster) wrote :
Revision history for this message
In , Troy Volin (tmvolin) wrote :

I know it's not exactly appropriate to discuss distro-specifics here, but I know Rex Dieter is subscribed to this bug.
Of the two patches listed here as resolving this (very important) problem, one is for plasma-breeze and the other is for qt5-qtdeclarative. It looks like the latter is only committed against QT 5.6.

Rex (or other Fedora-type person), how can we communicate to the relevant Fedora package maintainers that we need a backport of this for QT 5.5.1 ?
(It looks like KDE bug 357800 for breeze is already in a 5.5.x context, and not a problem in master.)

Revision history for this message
In , Rex Dieter (rdieter) wrote :

Backported patches are now included in qt5-qtdeclarative-5.5.1-4 builds (and newer), see also
https://bodhi.fedoraproject.org/updates/?packages=qt5-qtdeclarative

Revision history for this message
In , microchip (neutrino8) wrote :

Are there any openSUSE packagers of the QT components that are subbed to this bug report? If so, please backport it please.

Revision history for this message
In , Justgivemeafkenaccountplx (justgivemeafkenaccountplx) wrote :

As someone who understood some of the words in this thread, thank you to everyone involved in diagnosing and producing a fix for this. I look forward to the update on Manjaro :)

Revision history for this message
In , Troy Volin (tmvolin) wrote :

Thanks, Rex!
And thanks to all who diagnosed this.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in plasma-workspace (Ubuntu):
status: New → Confirmed
Revision history for this message
unicorp99 (unicorp99) wrote :

x64 Kubuntu 16.04

lsb_release -rd
Description: Ubuntu 16.04 LTS
Release: 16.04

Revision history for this message
Cqoicebordel (cqoicebordel) wrote :

I see something similar. After 12h running without any action on my part (during the night), plasmashell went from ~130MB of RAM to ~2GB, with a constant 2% usage of CPU.

x64 Kubuntu 16.04
plasma-workspace : 4:5.5.5.2-0ubuntu1

Revision history for this message
MadEddy (mad-eddy) wrote :

The same here. After 9h plasmashell stole 3.7 Gibi of my 6 Gibi RAM. How got this in a release? A LTS...

Kubuntu 16.04 LTS x64 (New install, no upgrade)

$ apt-cache policy plasma-workspace
plasma-workspace:
  Installiert: 4:5.5.5.2-0ubuntu1
  Installationskandidat: 4:5.5.5.2-0ubuntu1
  Versionstabelle:
 *** 4:5.5.5.2-0ubuntu1 500
        500 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Cqoicebordel (cqoicebordel) wrote :

Yeah, plasmashell is too big a beast to ever work without issue. Breaking it up into smaller apps would help a lot.

BTW, I added a valgrind log of an idle plasmashell, which is using ~15% CPU, and increasing its memory usage by ~4MB/min

Revision history for this message
MadEddy (mad-eddy) wrote :

Update: Looks like i found something...
I switched for my NV GTS450 from the "nouveau" to the "nvidia" (non-free) driver. Now the memory leak seemingly disappeared. Huh? Crazy!
After 2h plasmashell stays still at 150-160 Kibibyte.

Can someone reproduce this? Hope it helps. Greets

Revision history for this message
Cqoicebordel (cqoicebordel) wrote :

Holy shit !
I confirm that it seems to have solved the issue here too. I switched from nouveau to nvidia 340 for my GeForce 8400 GS, and now, the memory seems to have reached a stability point (for me between 280-340 MB).
Thanks !

Revision history for this message
unicorp99 (unicorp99) wrote :

bug/1587635: also, in kde 5.6.4 from backports - plasmashell memory leak
also, on 5.5.1 kde and 4.4 original kernel - plasmashell memory leak

reproduce:

Update:
if i switch to proprientary nvidia driver (v361, GT430) - then memory NO leak,
if i switch to noveau - then memory leak.

Revision history for this message
In , I-kde (i-kde) wrote :

Still getting this in plasmashell 5.6.4 (ubuntu backported) with insane cpu and ram usage, and often crashes when searching. Not sure if related.

Revision history for this message
Lemmiwinks (lemmiwinks) wrote :

I also see this memory leak with the nvidia driver v346 and the nouveau driver as well, so no real difference here for me.

What we probably need is a backport of these two patches mentioned in this KDE bug report:

https://bugs.kde.org/show_bug.cgi?id=344879#c122

otherwise plasmashell will continue to eat more and more memory with every plasma screen update, like opening a plasmoid, systray item menu, etc.

I tried Fedora 24, which is build against QT 5.6 and it does not suffer from this problem.

Revision history for this message
In , Olivier-becquaert (olivier-becquaert) wrote :

I have quite a similar issue with Archilinux and plasma 5.7.4

Revision history for this message
In , Futurepilot-0 (futurepilot-0) wrote :

Still seeing this with Kubuntu 16.10. plasma-shell using 1GB of RAM by the end of the day. Plasma 5.7.5

Revision history for this message
In , Lastique (andysem) wrote :

I also have this problem on Kubuntu 16.10 and created a new ticket #372384.

Revision history for this message
Hans Meier (herrmeier) wrote :

In the midst of 2017, the memory leak still exists...
I'd like to help you, if I can.

:~$ inxi -F -z -! 31
System: Kernel: 4.4.0-78-generic x86_64 (64 bit) Desktop: KDE Plasma 5.8.6 Distro: Ubuntu 16.04 xenial
Machine: System: LENOVO product: 3484JBG v: ThinkCentre Edge72
           Mobo: LENOVO model: N/A v: 0B98401 PRO Bios: LENOVO v: F1KT70AUS date: 06/12/2015
CPU: Quad core Intel Core i5-3470S (-MCP-) cache: 6144 KB
           clock speeds: max: 3600 MHz 1: 1911 MHz 2: 1891 MHz 3: 1724 MHz 4: 1964 MHz
Graphics: Card: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz, 1920x1080@60.00hz
           GLX Renderer: Mesa DRI Intel Ivybridge Desktop GLX Version: 3.0 Mesa 12.0.6
Audio: Card Intel 6 Series/C200 Series Family High Definition Audio Controller driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.4.0-78-generic
Network: Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           IF: p5p1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Sensors: System Temperatures: cpu: 29.8C mobo: 27.8C
           Fan Speeds (in rpm): cpu: N/A
Info: Processes: 283 Uptime: 2 days Memory: 2897.5/7807.0MB Client: Shell (bash) inxi: 2.2.35

:~$ sudo apt-cache policy plasma-workspace
plasma-workspace:
  Installiert: 4:5.8.6-0ubuntu1~ubuntu16.04~ppa2
  Installationskandidat: 4:5.8.6-0ubuntu1~ubuntu16.04~ppa2
  Versionstabelle:
 *** 4:5.8.6-0ubuntu1~ubuntu16.04~ppa2 500
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
     4:5.5.5.2-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

My solution on most days:
ALT + F2
kquitapp5 plasmashell && kstart plasmashell

Revision history for this message
Vasilis (vasilis-vlachoudis) wrote :

I am having a similar problem here with the newest Kubuntu (KDE 5.38).
I have the impression the problem is coming from the Slideshow on the desktop, and my huge monitor resolution. plasmashell uses an incredible amount of 10g of resident memory on a fresh restart (killall plasmashell; kstart plasmashell), which after a few days it increases to eat up all memory 32g.

Changed in plasma-framework:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.