Bug 379338 - huge memory usage. from 0 to 16Gb in less than 30 seconds
Summary: huge memory usage. from 0 to 16Gb in less than 30 seconds
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: aurorae (show other bugs)
Version: 5.9.4
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 379735 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-04-29 07:36 UTC by Jaime Torres
Modified: 2017-07-22 16:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
mgraesslin: Wayland+
mgraesslin: X11-


Attachments
glxinfo (26.08 KB, text/plain)
2017-04-29 07:36 UTC, Jaime Torres
Details
Valgrind output of a nested kwin_wayland (19.65 KB, application/gzip)
2017-04-29 10:05 UTC, Jaime Torres
Details
one of the massif.output (11.54 KB, application/gzip)
2017-04-29 10:19 UTC, Jaime Torres
Details
the other massif output (21.82 KB, application/gzip)
2017-04-29 10:21 UTC, Jaime Torres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Torres 2017-04-29 07:36:46 UTC
Created attachment 105254 [details]
glxinfo

In a laptop with 8Gb of RAM, opensuse Tumbleweed, and an integrated Intel graphic card, that uses the sddm session chooser, as soon as I start a "plasma (wayland)" session, kwin_wayland starts to use big amounts of memory: from 0 to 16Gb in less than 30 seconds.

The laptop becomes unresponsive in less than 30 seconds. 
How can I debug where the the problem is to make this bug report useful?
Comment 1 Martin Flöser 2017-04-29 08:53:32 UTC
Can you try to only run a nested kwin_wayland in an X11 session and check whether the problem happens there as well. If yes, that would allow to run valgrind on it. If not we need to look for another solution. Investigating the startup of the Plasma Wayland session is unfortunately not trivial.

I reduced the importance to major as currently we don't have critical bugs on Wayland yet.
Comment 2 Jaime Torres 2017-04-29 10:05:10 UTC
Created attachment 105255 [details]
Valgrind output of a nested kwin_wayland
Comment 3 Jaime Torres 2017-04-29 10:06:50 UTC
There are also thousands of lines like the following in the stdout:

The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/maximize.svgz" doesn't contain any of the prefixes ("pressed-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/maximize.svgz" doesn't contain any of the prefixes ("deactivated")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/close.svgz" doesn't contain any of the prefixes ("deactivated-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/close.svgz" doesn't contain any of the prefixes ("pressed-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/close.svgz" doesn't contain any of the prefixes ("deactivated")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/alldesktops.svgz" doesn't contain any of the prefixes ("deactivated-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/alldesktops.svgz" doesn't contain any of the prefixes ("pressed-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/alldesktops.svgz" doesn't contain any of the prefixes ("deactivated")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/decoration.svgz" doesn't contain any of the prefixes ("innerborder-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/decoration.svgz" doesn't contain any of the prefixes ("decoration-maximized-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/restore.svgz" doesn't contain any of the prefixes ("deactivated-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/restore.svgz" doesn't contain any of the prefixes ("pressed-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/restore.svgz" doesn't contain any of the prefixes ("deactivated")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/maximize.svgz" doesn't contain any of the prefixes ("deactivated-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/maximize.svgz" doesn't contain any of the prefixes ("pressed-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/maximize.svgz" doesn't contain any of the prefixes ("deactivated")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/close.svgz" doesn't contain any of the prefixes ("deactivated-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/close.svgz" doesn't contain any of the prefixes ("pressed-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/close.svgz" doesn't contain any of the prefixes ("deactivated")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/alldesktops.svgz" doesn't contain any of the prefixes ("deactivated-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/alldesktops.svgz" doesn't contain any of the prefixes ("pressed-inactive")
The image "/home/jtorres/.local/share/aurorae/themes/air-oxygen/alldesktops.svgz" doesn't contain any of the prefixes ("deactivated")

I'm going to check if I have air-oxygen installed and check again.
Comment 4 Jaime Torres 2017-04-29 10:19:10 UTC
Created attachment 105258 [details]
one of the massif.output
Comment 5 Jaime Torres 2017-04-29 10:21:00 UTC
Created attachment 105259 [details]
the other massif output

I have installed all the air* oxygen* plasma-* packages i have found, and the messages are still there.
Comment 6 Martin Flöser 2017-05-02 07:41:28 UTC
Given the debug output it could be related to the window decoration you are using. I haven't tested aurorae much on Wayland, consider giving a try to the default breeze.
Comment 7 Martin Flöser 2017-05-02 07:58:05 UTC
Just had a look into massif and it seems to confirm that it is related to aurorae. There is one element of 677 MiB and it is from inside Aurorae. It might be possible that ac08c5ac9d4532b2506c76e8b69249b32d365aa3 fixed this issue, too. But that's only in master
Comment 8 Jaime Torres 2017-05-02 11:05:43 UTC
Confirmed, with breeze ("brisa"), kwin_wayland works perfectly fine.

You can close this bug, unless you think we should wait until the patch you mentioned is available in Tumbleweed, because I don't have a development environment in the laptop to test the master branch.
Comment 9 Christoph Feck 2017-05-12 01:09:05 UTC
*** Bug 379735 has been marked as a duplicate of this bug. ***
Comment 10 Martin Flöser 2017-07-22 16:23:30 UTC
Should be fixed in 5.10.4. At least I found a bug in Aurorae which made the session unusable (did not look at memory consumption but it recursively created OpenGL contexts, so yes quite likely memory increase) and fixed it.