Summary: | When kwin_x11 is running, animated wallpapers will cause heavy (video) memory leak when QT_XCB_GL_INTEGRATION=xcb_glx | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Fushan Wen <qydwhotmail> |
Component: | Image Wallpaper | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | adamska156, kde, kde, kishore96, nate, notmart, postix, psbkde, qydwhotmail |
Priority: | NOR | Flags: | qydwhotmail:
X11+
|
Version: | master | ||
Target Milestone: | 1.0 | ||
Platform: | openSUSE | ||
OS: | Linux | ||
See Also: |
https://bugs.kde.org/show_bug.cgi?id=454984 https://github.com/dark-eye/com.darkeye.animatedImage/issues/9 |
||
Latest Commit: | Version Fixed In: | ||
Attachments: |
leak.png
no leak.png |
Description
Fushan Wen
2022-06-12 23:43:52 UTC
Created attachment 149653 [details]
no leak.png
This is without kwin_x11 running.
Disable compositing and the leak seems also gone. No, disabling compositing doesn't help. qt_xcb_gl_integration=xcb_egl fixes the leak. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1845 With my Intel HD 620 GPU, I just tried setting a gif as my wallpaper and I see no memory increase. Need a bug report from more users after Plasma 5.26 is released I'm noticing this issue as well. It's definitely the new wallpaper gif I've set. I was using an old unsupported plugin for my animated wallpaper and decided to switch to the official support and was pretty much instantly hit with this bug. It quickly fills up my 32GB system. It's inconsistent sometimes though. Sometimes it takes 10 minutes. Other times it takes an hour to fill up the system. Not sure what the trigger is for the memory to start leaking. It seems that I am observing the same memory leak but with the task switcher visualization. Switching tasks permanently increases buffers/cache memory, /proc/sys/vm/drop_caches has no effect on it. That’s roughly 40 MB each time the Grid visualization shows up, and still 7 MB if Large Icons visualization is used. End effect is the system becoming unresponsive, happens roughly after a day for me. Restarting kwin_x11 releases the memory. Starting kwin_x11 with QT_XCB_GL_INTEGRATION=xcb_egl appears to make the leak go away. I have the kwin-x11-5.26.3-1.fc37.x86_64 package installed (Fedora 37). The CPU is Intel i7-1165G7. Additional Nvidia GeForce graphics card is present but not currently active. I filed bug 462202 on the memory leak caused by task switcher visualization, just in case it is caused by a different root issue. I managed to create a reduced test case and attached it there. The leak is gone after updating Mesa to the latest version (22.3.2) |