You are not logged in.

#1 2019-04-07 15:37:03

Ambyjkl
Member
Registered: 2015-12-05
Posts: 33

Plasmashell x11 memory leak

This does NOT seem to be a duplicate of https://bbs.archlinux.org/viewtopic.php?id=243979, since I'm not using the oxygen theme but breeze-dark.

For the past few days, I've been experiencing a weird memory leak in plasmashell causing it to eventually use up some 2-3 GB of X11 memory. I've basically been running a script that restarts it every 15 minutes to alleviate the symptoms for now. Here are my versions of plasma-workspace (which contains plasmashell) and its recursive dependencies for reference: https://pastebin.com/RJQ6q4JR

Here is a screenshot right now, where it's using over a gig of x11 memory: https://prnt.sc/n8ota9

My best guess it's not freeing some pixmap or something somewhere. It could be a related issue as the one above, but I'm not sure. Is anyone else facing this same issue?

Offline

#2 2019-04-07 15:40:01

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

Re: Plasmashell x11 memory leak

Yes, same here

Offline

#3 2019-04-07 18:45:01

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

Re: Plasmashell x11 memory leak

Is there a bug report for this?


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

Offline

#4 2019-04-07 20:35:02

Ambyjkl
Member
Registered: 2015-12-05
Posts: 33

Re: Plasmashell x11 memory leak

kokoko3k wrote:

Is there a bug report for this?

@kokoko3k no, not yet

Offline

#5 2019-04-08 12:54:40

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

Re: Plasmashell x11 memory leak

What is your hardware? I just checked on two nvidia (gtx 1060 and gtx 750ti with proprietary driver) and i've just 23k and 77k of pixmaps loaded.


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

Offline

#6 2019-04-08 14:05:45

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

Re: Plasmashell x11 memory leak

Same here, nvidia GPU with proprietary seems fine, haven't checked on my intel laptop yet. Standard, non-dark breeze though

Last edited by V1del (2019-04-08 14:06:35)

Offline

#7 2019-04-08 22:09:49

Ambyjkl
Member
Registered: 2015-12-05
Posts: 33

Re: Plasmashell x11 memory leak

I'm running Intel integrated 620 on the latest arch kernel. I'll test on the lts kernel and let you know if it's happening there. This might just be a driver bug?

Offline

#8 2019-05-10 17:23:37

Self-Perfection
Member
From: Russia
Registered: 2010-12-16
Posts: 8

Re: Plasmashell x11 memory leak

I have the same issue:

http://self-perfection.homeip.net/image … domain.png

`xrestop` indicates, that this leaked pixmap memory is related to plasmashell. And running `kquitapp5 plasmashell && plasmashell` drops Xorg memory usage to normal.

According to graph Xorg started to leak about the same time I upgraded plasma-workspace from 5.14.x to 5.15.x.

Also it seems to be related to intel video. I use:

$ inxi --graphics
Graphics:  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics driver: i915 v: kernel
           Display: x11 server: X.Org 1.20.4 driver: intel resolution: 1920x1080~60Hz

Also memory maps directly show that memory leaked in /i915:

# pmap -x -p $(pidof Xorg) | head -20
1306:   /usr/lib/Xorg -nolisten tcp -auth /var/run/sddm/{377320b3-66db-45c6-aac2-fce784945c1f} -background none -noreset -displayfd 17 -seat seat0 vt1
Address           Kbytes     RSS   Dirty Mode  Mapping
000055664b7ee000     180       0       0 r---- /usr/lib/Xorg
000055664b81b000    1576    1124       0 r-x-- /usr/lib/Xorg
000055664b9a5000     444     156       0 r---- /usr/lib/Xorg
000055664ba14000      16      16      16 r---- /usr/lib/Xorg
000055664ba18000      24      24      24 rw--- /usr/lib/Xorg
000055664ba1e000     128      60      60 rw---   [ anon ]
000055664ca36000   76316   75992   75992 rw---   [ anon ]
00007f64253f2000    8100    8100    8100 rw-s- /i915 (deleted)
00007f6426d7d000    6664    6664    6664 rw-s- /i915 (deleted)
00007f64273ff000    8100    8100    8100 rw-s- /i915 (deleted)
00007f6427be8000    7680    7680    7680 rw-s- /i915 (deleted)
00007f6428368000    7920    7740    7740 rw-s- /i915 (deleted)
00007f6428b24000    7680    7680    7680 rw-s- /tmp/#31647510 (deleted)
00007f64292a4000    7680    7680    7680 rw-s- /i915 (deleted)
00007f6429a24000    8192    8192       0 rw-s- /i915 (deleted)
00007f642a224000    7680    7680    2020 rw-s- /i915 (deleted)
00007f642a9a4000    8100    8100    8100 rw-s- /tmp/#31166531 (deleted)
00007f642b18d000    7680    7680    2904 rw-s- /i915 (deleted)

Almost all RSS of Xorg process is in /i915 chunks:

# pmap -x -p $(pidof Xorg)|awk '/i915/{sum+=$3} END{print sum}' 
836616
# ps -o rss -C Xorg
  RSS
1012412

I tried to figure out what is inside this leaked to /i915 memory areas dumping them with gdb, but to no avail. My hypothesis was that it might contain stored screen states (1920*1080*4=8294400 is suspiciously close to size of these chunks). And indeed  every fourth byte is 0xFF. But attemps to decode image failed. It kinda there is something in the data, apparently there is 512 bytes wide pattern, but overall - no recognisable image.

Also: see relevant bugrepot in KDE bugtracker: https://bugs.kde.org/show_bug.cgi?id=405667


moderator edit -- replaced oversized image with link.
Pasting pictures and code

Last edited by 2ManyDogs (2019-05-10 18:56:18)

Offline

#9 2019-05-21 08:45:19

devbazilio
Member
Registered: 2019-05-21
Posts: 1

Re: Plasmashell x11 memory leak

I have also this bug on one of my PC with intel gpu. I have to kill & restart plasmashell every 2-3 days as memory taken by X.org is only growing up. I think this is not bug in x.org as once plasmashell is killed the memory taken by x.org backs to very small amount (200-300m) I'm using kde5

Offline

#10 2019-07-04 08:09:03

Self-Perfection
Member
From: Russia
Registered: 2010-12-16
Posts: 8

Re: Plasmashell x11 memory leak

After update to 5.16.0 (or probably 5.16.1) I don't observe this leak anymore.

Offline

Board footer

Powered by FluxBB