You are not logged in.

#1 2017-07-07 14:57:30

mcgyver
Member
Registered: 2016-04-21
Posts: 8

Plasmashell memory leak after latest Qt update

Hi everyone,

I updated yesterday two arch Linux systems and on both I found that Plasmashell is always growing in memory occupation, and never releasing it. It seems like a memory leak somewhere.

The problem was solved when I downgraded the Qt packages to the previous version:

% pacman -Q | grep qt5   
attica-qt5 5.35.0-1
libdbusmenu-qt5 0.9.3+16.04.20160218-1
phonon-qt5 4.9.1-4
phonon-qt5-vlc 0.9.1-2
polkit-qt5 0.112.0+git20160226-1
poppler-qt5 0.56.0-1
pyqt5-common 5.8.2-4
python2-pyqt5 5.8.2-4
qca-qt5 2.1.3-4
qscintilla-qt5 2.10-1
qt5-base 5.9.0-2
qt5-connectivity 5.9.0-1
qt5-declarative 5.9.0-1
qt5-graphicaleffects 5.9.0-1
qt5-location 5.9.0-1
qt5-multimedia 5.9.0-1
qt5-quickcontrols 5.9.0-1
qt5-quickcontrols2 5.9.0-1
qt5-script 5.9.0-1
qt5-scxml 5.9.0-1
qt5-sensors 5.9.0-1
qt5-serialport 5.9.0-1
qt5-speech 5.9.0-1
qt5-svg 5.9.0-1
qt5-tools 5.9.0-1
qt5-webchannel 5.9.0-1
qt5-webengine 5.9.0-2
qt5-webkit 5.9.0-1
qt5-websockets 5.9.0-1
qt5-x11extras 5.9.0-1
qt5-xmlpatterns 5.9.0-1

Is anyone experiencing the same problem?
Any suggestion on how to solve this issue is welcome!
Thank you!

Offline

#2 2017-07-07 15:15:39

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: Plasmashell memory leak after latest Qt update

For me, it grows even with the previous qt version(s), are you sure you are not affected so it is not the following?
https://bbs.archlinux.org/viewtopic.php?id=216541

However i did not tried to upgrade yet, so maybe the things will just get worse for me too, grrr...

Last edited by kokoko3k (2017-07-07 15:17:14)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#3 2017-07-07 15:27:27

mcgyver
Member
Registered: 2016-04-21
Posts: 8

Re: Plasmashell memory leak after latest Qt update

No, not really... I don't have the same problem now.
RAM usage just oscillates within "acceptable" values (roughly 350MB to 500MB) depending on activity.
With the upgrade, RAM would be used so quickly that I had to restart Plasmashell every 10 minutes or so...

Offline

#4 2017-07-07 18:06:04

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: Plasmashell memory leak after latest Qt update

mcgyver,  I went ahead and closed and dust binned your other thread.  In the future, it is better to use the report link to ask a moderator to move the thread.  One of us are usually hanging around so such requests are generally handled quickly.

Thanks.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2017-07-11 07:15:41

girlbythesea
Member
Registered: 2016-12-19
Posts: 9

Re: Plasmashell memory leak after latest Qt update

[deleted]

Last edited by girlbythesea (2023-01-28 01:34:27)

Offline

#6 2017-07-11 08:12:12

hfenigma
Member
Registered: 2017-06-29
Posts: 30

Re: Plasmashell memory leak after latest Qt update

I had the same problem in kokoko3k's post https://bbs.archlinux.org/viewtopic.php?id=216541
On the contrary, the plasmashell memory leak seems to be fixed in KDE 5.36.0 / Plasma 5.10.3 / Qt 5.9.1 for me now.
At the time of writing, I have a session with 3:42 uptime, but plasmashell is only using 172540k memory.

Update:
The plasmashell memory leak is not fixed, the memory usage is still growing and never get released, but somehow slower than before.

Update:
A new session with 3:31 uptime and plasmashell already used 565548K memory.  T__T

Last edited by hfenigma (2017-07-14 08:39:52)

Offline

#7 2017-07-14 17:00:28

mcgyver
Member
Registered: 2016-04-21
Posts: 8

Re: Plasmashell memory leak after latest Qt update

Update:

Today I performed a system-wide update and the problem is still there: in 30 seconds plasmashell was running it occupied 800MB T__T

Anyone has any clue on this?

@Girlbythesea: I have not reported it, as I am not sure where to report it.

UPDATE: Just filed a bug report. Hope it will get handled quickly. Please vote for it: https://bbs.archlinux.org/viewtopic.php … 0#p1724570

Last edited by mcgyver (2017-07-14 17:22:50)

Offline

#8 2017-07-14 18:10:03

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: Plasmashell memory leak after latest Qt update

I cannot reproduce your observations, have you tried to use a blank session, or better a complete new user with the stock plasma desktop?
It could be useful to isolate the problem.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#9 2017-07-14 18:45:17

hfenigma
Member
Registered: 2017-06-29
Posts: 30

Re: Plasmashell memory leak after latest Qt update

Here are some information from

journalctl -b -p warning..alert

https://ptpb.pw/CL5s

Note all those plasmashell and kwin_x11 warnings. Maybe this will be helpful.

Edit: sigsegv is my hostname, ignore that.

Last edited by hfenigma (2017-07-14 18:47:52)

Offline

#10 2017-07-14 18:55:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,665

Re: Plasmashell memory leak after latest Qt update

What kind of plasmoids/widgets are you using? In the past often updated widgets like RAM or CPU monitors could lead to a leak. Or if you have something that updates a systray icon there used to be a leak where old images wouldn't be discarded and every update of the tray icon lead to a leak. Maybe one of these resurfaced.

@hfenigma
Kwin "errors" are normal. That's due to the asynchronous nature of the X server there's a chance that it tries to access a window that is already closed or in the process of being closed.

Offline

#11 2017-07-14 22:33:09

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: Plasmashell memory leak after latest Qt update

mcgyver wrote:

UPDATE: Just filed a bug report. Hope it will get handled quickly. Please vote for it: https://bbs.archlinux.org/viewtopic.php … 0#p1724570

Voting for this is completely useless because this is not an Arch bug. If you really want to help fixing this, subscribe to the upstream report https://bugs.kde.org/show_bug.cgi?id=381000 and provide the info that the developers ask for (but please don't just add an empty "me too" comment)

Offline

#12 2017-07-15 01:22:21

hfenigma
Member
Registered: 2017-06-29
Posts: 30

Re: Plasmashell memory leak after latest Qt update

@V1del
No extra plasmoids/widgets are used. Nothing that specially updates a systray icon as well.
See the screenshot for details.
https://ibb.co/etLwSv

Offline

#13 2017-07-16 16:03:01

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: Plasmashell memory leak after latest Qt update

arojas wrote:

subscribe to the upstream report https://bugs.kde.org/show_bug.cgi?id=381000

That bug relates both CPU usage issues and this memory leak to the Wallpaper Slideshow. I've switched to just a regular image to see if that makes a difference with the memory leak. I'll report back with results to this thread and the KDE bug report. If you want to try this as well, be sure to restart KDE (or just log out and back in) after you made the change.

Edits:
Not using Wallpaper Slideshow is definitely a work-around, at least so far, here's some stats:

Time: 09:56
  PID USER      PR  NI    VIRT    RES  %CPU %MEM     TIME+ S COMMAND 
12528 twelvei+  20   0 3691.1m 380.2m   0.8  2.4   0:20.75 S plasmashell

Time: 13:00
  PID USER      PR  NI    VIRT    RES  %CPU %MEM     TIME+ S COMMAND 
12528 twelvei+  20   0 3691.0m 383.4m   4.0  2.4   7:20.17 S plasmashell

Last edited by twelveeighty (2017-07-16 19:15:00)

Offline

#14 2017-07-18 14:04:07

mcgyver
Member
Registered: 2016-04-21
Posts: 8

Re: Plasmashell memory leak after latest Qt update

Ok... done a few more experiments, and seems that the background slideshow is the culprit.

If I select a specific background image, Plasmashell does not grow in memory usage.
If I start changing background picture, every time I select a new one the memory usage grows (and memory is never released).

Hope this helps others.
I'll try and file a bug under KDE, although I do not understand why it should not be filed under Qt...

Thank you everyone for your help!

Offline

#15 2017-07-19 01:52:07

boes
Member
Registered: 2012-03-17
Posts: 28

Re: Plasmashell memory leak after latest Qt update

oh thank you, i'm also experiencing this issue with my pc. guess i just need to turn off the slide show then.
and btw, this issue only affects my pc, while my laptop doing just fine with the same setting.
is it perhaps related to graphic card/driver. my pc has nvidia, while laptop uses amd

Offline

#16 2017-07-19 02:59:18

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: Plasmashell memory leak after latest Qt update

mcgyver wrote:

I'll try and file a bug under KDE

Like I said in my earlier post, this bug is already filed with KDE, with Wallpaper Slideshow identified as having issues with both CPU and RAM. If you can contribute new/improved stats/info to that bug, that may be of use to the devs upstream.

Offline

Board footer

Powered by FluxBB