#881015 Massive memory leak in ksmserver

Package:
plasma-workspace
Source:
plasma-workspace
Description:
Plasma Workspace for KF5
Submitter:
Julien Aubin
Date:
2018-12-30 23:24:03 UTC
Severity:
important
#881015#5
Date:
2017-11-07 06:34:19 UTC
From:
To:
Hi,

I've remarked that since latest update of Debian (9.2) ksmserver is
affected by
a massive memory leak. Over one week running it is eating 10 GB of RAM and
things are getting up and up. A restart of the KDE session temporarily fixes
the issue.

My system :
Debian 9.2 / AMD64
KDE
Intel Core i7 4970
32 GB RAM
NVidia GeForce GTX 1070 w/ blob 375.82

Could you please fix it ? Thanks a lot !

#881015#10
Date:
2017-11-07 18:22:34 UTC
From:
To:
Hi! Do you have the wallpaper images changing from time to time?
Because there is an upstream bug for that and it could not be solved
so far (to the best of my knowledge).

#881015#15
Date:
2017-11-07 18:24:26 UTC
From:
To:
Hi,

No I don't.

However I saw today a Skype update which could be related to the issue.
Cannot recall exactly whether the issue came with Skype update or with 9.2
release.

I'll keep you updated with this issue.

2017-11-07 19:22 GMT+01:00 Lisandro Damián Nicanor Pérez Meyer <
perezmeyer@gmail.com>:

#881015#20
Date:
2017-11-07 18:22:34 UTC
From:
To:
Hi! Do you have the wallpaper images changing from time to time?
Because there is an upstream bug for that and it could not be solved
so far (to the best of my knowledge).

#881015#25
Date:
2017-11-07 18:24:26 UTC
From:
To:
Hi,

No I don't.

However I saw today a Skype update which could be related to the issue.
Cannot recall exactly whether the issue came with Skype update or with 9.2
release.

I'll keep you updated with this issue.

2017-11-07 19:22 GMT+01:00 Lisandro Damián Nicanor Pérez Meyer <
perezmeyer@gmail.com>:

#881015#30
Date:
2017-11-11 09:57:43 UTC
From:
To:
Hi,

Not related to skype. It started again. 13 GB of memory.

Looks like at the same time a process named tracker-extract was eating 12
GB memory. Comes from tracker-extract package, used for some indexation.

2017-11-07 19:24 GMT+01:00 Julien Aubin <julien.aubin@gmail.com>:

#881015#35
Date:
2017-11-11 09:57:43 UTC
From:
To:
Hi,

Not related to skype. It started again. 13 GB of memory.

Looks like at the same time a process named tracker-extract was eating 12
GB memory. Comes from tracker-extract package, used for some indexation.

2017-11-07 19:24 GMT+01:00 Julien Aubin <julien.aubin@gmail.com>:

#881015#40
Date:
2017-11-11 11:13:53 UTC
From:
To:
The leak continues - 200 MB memory / hour.

2017-11-11 10:57 GMT+01:00 Julien Aubin <julien.aubin@gmail.com>:

#881015#45
Date:
2017-11-11 11:13:53 UTC
From:
To:
The leak continues - 200 MB memory / hour.

2017-11-11 10:57 GMT+01:00 Julien Aubin <julien.aubin@gmail.com>:

#881015#50
Date:
2017-11-23 06:05:45 UTC
From:
To:
Hi,

It looks like launching 3D video games like American Truck Simulator or
other ones tends to trigger the leak.
Before launching the game, letting KDE run for one night : 4 GB total
memory consumption
Yesterday evening, right after closing the game : 5 GB
Now (early morning) : 7 GB w/ ksmserver as the top memory consumer

2017-11-11 12:15 GMT+01:00 Debian Bug Tracking System <owner@bugs.debian.org

#881015#55
Date:
2017-11-23 06:19:23 UTC
From:
To:
Another precision is that I start most of these games in windowed mode.

2017-11-23 7:09 GMT+01:00 Debian Bug Tracking System <owner@bugs.debian.org>
:

#881015#60
Date:
2018-12-12 19:19:23 UTC
From:
To:
Hi,

Looks like an upstream fix has been done for this issue, see
https://bugs.kde.org/show_bug.cgi?id=373274

Could you please backport the fix as it is VERY annoying ?

Thanks,

#881015#65
Date:
2018-12-30 23:20:20 UTC
From:
To:
Le mer. 12 déc. 2018 à 20:19, Julien Aubin <jul.aubin@laposte.net> a écrit :

The bug is fixed in 5.8.7 and looks like quite a lot of Debian KDE
users complain about it, see
http://forums.debian.net/viewtopic.php?f=6&t=135222

It is also fixed in testing and so on and has to deal with the way
ksmserver handles child process output.

The fix seems to be in the following commits :
https://cgit.kde.org/plasma-workspace.git/commit/?id=17eeb58ae42596195d6a841c06d17721b7af2c14
https://cgit.kde.org/plasma-workspace.git/commit/?id=0f19e92f3e85d064de9cebf280fa8e085485c2e0
https://cgit.kde.org/plasma-workspace.git/commit/?id=ea3f87c5df0251838da71c473fd7b790c932d8b0

Could you please cherrypick them and put them in stable ?

Thanks a lot