Bug 382262 - Media frame plasmoid causes plasmashell memory leak
Summary: Media frame plasmoid causes plasmashell memory leak
Status: RESOLVED DUPLICATE of bug 381000
Alias: None
Product: kdeplasma-addons
Classification: Plasma
Component: General (show other bugs)
Version: 5.10.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-12 06:58 UTC by Kishore Gopalakrishnan
Modified: 2018-04-09 18:56 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kishore Gopalakrishnan 2017-07-12 06:58:30 UTC
Adding a picture frame plasmoid (the one described here: https://userbase.kde.org/Plasma/PictureFrame ; it does not seem to have a separate category, so I am reporting it under the 'general' component) to the desktop causes plasmashell's memory consumption to grow indefinitely. Pressing the 'next' or 'previous' arrows to change the displayed image makes the memory consumption increase faster.

Steps to reproduce:
1. Add a media frame plasmoid to the desktop.
2. Add a few pictures to it.
3. Open Ksysguard and observe the amount of RAM used by plasmashell.
4. Wait for the image to change, or change the image by pressing the buttons.

Observed result: memory consumption by plasmashell increases with each image change. 

Expected result: plasmashell should not consume unreasonable amounts of memory (in this case, I have observed its memory usage rising to up to 1.3 GB)

More info:
If we go to the 'detailed memory information' for plasmashell in Ksysguard, we see that the bulk of the memory is allocated to 'heap', and this is the component that grows on each image change.
Comment 1 Kishore Gopalakrishnan 2017-07-20 13:43:31 UTC
Duplicate of bug 381000?
Comment 2 Christoph Feck 2017-08-01 18:15:51 UTC
Let's assume it is. If you can still reproduce it after bug 381000 is fixed, please add a comment.

*** This bug has been marked as a duplicate of bug 381000 ***
Comment 3 Ruedi Hofer 2017-11-08 19:14:53 UTC
As of now, the bug is still there. Unfortunately.

KDE Plasma 5.11.3
KDE Frameworks 5.39.0
Qt 5.9.1
Kernel 4.13.0-16
kubuntu 17.10 ppa landing
Comment 4 makism 2017-11-17 15:25:51 UTC
I finally managed to track the memory leak in plasmashell into this widget.
still there in both Fedora 26 and 27 beta.

some details:
KDE Plasma 5.10.5
KDE Framewoks 5.39.0
Qt 5.9.2
Kernel: 4.13.12-300

GLX: Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) 
OpenGL version: 3.0 Mesa 17.2.4
Comment 5 Kishore Gopalakrishnan 2017-11-18 14:58:58 UTC
Bug #386844 (the issue #381000 this is marked as a duplicate of was forked into two separate bugs for the memory issue and the CPU usage issue) has been marked as fixed in Qt version 5.9.2. However, I am still able to reproduce this issue with the following software versions:

Plasmashell: 5.11.3
Qt5: 5.9.2
Frameworks: 5.40.0
Distro: Arch Linux
Comment 6 Ruedi Hofer 2018-01-24 13:07:44 UTC
As of now, the bug is still there. Unfortunately.

KDE Plasma 5.11.5
KDE Frameworks 5.41.0
Qt 5.9.1
Kernel 4.13.0-31
kubuntu 17.10 ppa landing
64 bit

This bug seems closed, but problem was never solved. How to reopen?
Comment 7 Christoph Feck 2018-02-14 22:13:10 UTC
Ruedi, see bug 368838.