Bug 495991 - KWin_wayland process memory leak if interacting with desktop, after second monitor turns off
Summary: KWin_wayland process memory leak if interacting with desktop, after second mo...
Status: RESOLVED DUPLICATE of bug 496469
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.2.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-09 00:16 UTC by reiagaru
Modified: 2025-02-06 13:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description reiagaru 2024-11-09 00:16:27 UTC
SUMMARY
kwin_wayland process is leaking memory(observed up to 1.2G) when interacting with second monitor, after it has been turned off by inactive timeout. Every action on 2nd monitor takes more memory, dragging window, opening new one, selecting with mouse, etc... Observed on a laptop with dual gpu(integrated amd, nvidia 1650TI Moblie), seems to only happen on wayland, and when using integrated gpu, after setting KWIN_DRM_DEVICES to prefer nvidia memory usage stabilized. 

STEPS TO REPRODUCE
1. Wait for monitor timeout
2. Interact with desktop and wait for monitor to turn on

OBSERVED RESULT
kwin_wayland uses more memory after every interaction with the desktop

EXPECTED RESULT
kwin_wayland should use ~300mb


SOFTWARE/OS VERSIONS
Linux: 6.11.6-arch1-1
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION
* Graphical card: NVIDIA GeForce GTX 1650 Ti Mobile
* processor: 12 × AMD Ryzen 5 4600H
* RAM: 16GB
* GPU Driver: NVIDIA 565.57.01-1
* 1st Monitor: 1920x1080@60HZ
* 2nd Monitor: 1920x1080@180HZ
Comment 1 Roman Teterin 2025-02-06 13:24:25 UTC

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