[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [plasmashell] [Bug 368838] plasmashell memory leak when slideshow is used for wallpaper/media frame/
From:       Matt Whitlock <bugzilla_noreply () kde ! org>
Date:       2018-05-17 14:29:07
Message-ID: bug-368838-17878-cdnad1njXg () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=368838

--- Comment #120 from Matt Whitlock <kde@mattwhitlock.name> ---
(In reply to Ovidiu Chi from comment #117)
> > I am running a slideshow of 2560x1600 images every 2 seconds with QSG_RENDER_LOOP=basic
> 
> @Matt, You'd have to start the slideshow then, after a little while(a few
> seconds), change the duration (e.g. from 3s to 2s).

Okay, I have restarted plasmashell with QSG_RENDER_LOOP=basic QSG_INFO=1, and I
do indeed see this in the output:

qt.scenegraph.general: QSG: basic render loop

I set a slideshow at an interval of 3 seconds and started monitoring
plasmashell's memory usage and VRAM usage. It has been a few minutes, and I see
no extreme rise in memory usage. (Plasmashell, since it hosts a
garbage-collected runtime environment, does grow in memory usage for a little
while after startup until it is "warm.")

Something I forgot to mention before: I do make sure to show some tooltips in
the task switcher, pop up the applications menu, pop up the calendar, etc., to
be certain that there are some previously rendered but now hidden windows. This
was the trigger of the logic bug originally.

Now I change the slideshow interval from 3 seconds to 2 seconds. I observe no
extreme increase in plasmashell's memory usage or VRAM usage. Plasmashell's
usage still gently rises over time, due to the other leak, which is still
unaddressed, but the major VRAM leak is not present.


(In reply to David Edmundson from comment #118)
> Qt [switches] based on graphic driver. Some don't support GL use in threads.

You would think that Mesa/Gallium/RadeonSI (AMDGPU) would be modern enough for
Qt to use the threaded renderer by default, but "basic" is still the default on
my system. I am going to leave the QSG_RENDER_LOOP=threaded in my session
environment, as I experience no problems with it whatsoever.

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic