Bug 480100

Summary: Memory is not released after activating overview/show desktops effects leading to OOM killing of plasmashell and kwin
Product: [Plasma] kwin Reporter: Kenneth <qufiwefefwoyn>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: major CC: qufiwefefwoyn
Priority: NOR Keywords: qt6
Version First Reported In: 5.92.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Output of `journalctl` after OOM
Output of `dmidecode -t system`
Output of `qdbus org.kde.KWin /KWin org.kde.KWin.supportInformation`
Outputs of `plasmarc`, `plasmashellrc`, `plasma-org.kde.plasma.desktop-appletsrc`

Description Kenneth 2024-01-20 16:02:03 UTC
Created attachment 165078 [details]
Output of `journalctl` after OOM

SUMMARY

Repeatedly activating overview or show desktop effects memory used by user environment surges up and is not released back to system, leading to out of memory killing of plasmashell and kwin.

STEPS TO REPRODUCE
1. Boot system
2. Log into plasma 6 RC1 (wayland-session)
3. Start activating overview/show_desktop effects using 4-finger touchpad gestures
4. After a 100 or so OOM kills plasmashell and kwin. One cycle of 3 4-finger gestures down/up consumes about 50-100MB of memory. Very rough estimate, measured visually through "System Monitor" app.

OBSERVED RESULT

plasmashell is killed and restarted automatically

EXPECTED RESULT

Memory held by system to stay at the same level no matter how much I'm using overview/show_desktops effects.

SOFTWARE/OS VERSIONS
OS:  Linux 6.7.0-zen3-1.1-zen ZEN SMP PREEMPT_DYNAMIC kernel, Endeavouros (based on Arch Linux, uses Arch Linux repos directly)
KDE Plasma Version: 5.92.0
KDE Frameworks Version: 5.248.0
Qt Version: 6.7.0 (Arch Linux packages Plasma 6 with Qt 6.7 despite recommendations)

ADDITIONAL INFORMATION:

## Harware

Processor: 16 × 13th Gen Intel® Core™ i5-1340P
Memory: 15.2 GiB of RAM
Graphics: Mesa Intel® Graphics (using mesa 1:23.3.3-1 from archlinux extra repo)
Manufacturer: ASUSTeK COMPUTER INC.

I'm happy to provide any additional information needed and reproduce the bug if needed. Thanks
Comment 1 Kenneth 2024-01-20 16:04:11 UTC
Created attachment 165079 [details]
Output of `dmidecode -t system`
Comment 2 Kenneth 2024-01-20 17:51:16 UTC
Created attachment 165081 [details]
Output of `qdbus org.kde.KWin /KWin org.kde.KWin.supportInformation`
Comment 3 Kenneth 2024-01-20 17:54:08 UTC
Created attachment 165082 [details]
Outputs of `plasmarc`, `plasmashellrc`, `plasma-org.kde.plasma.desktop-appletsrc`
Comment 4 Kenneth 2024-01-20 23:16:27 UTC

*** This bug has been marked as a duplicate of bug 478770 ***