Summary: | Memory leak in kwin_wayland | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Maciej <maciej.witkowski256> |
Component: | performance | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | antonio.tigri, kde, marton2+kde, serhiihatcan, xaver.hugl |
Priority: | NOR | ||
Version First Reported In: | 6.2.4 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Stacktrace taken when memory leak increases |
Description
Maciej
2024-12-04 22:29:13 UTC
May be related to #496698 since I use second monitor too, through HDMI from Nvidia GPU. Created attachment 176368 [details]
Stacktrace taken when memory leak increases
I tried debugging with https://community.kde.org/KWin/Debugging#Debug_KWin_with_Valgrind But the memory leak command gives Permission denied. Same as: ``` adam@fedora144:~/Downloads$ dbus-run-session valgrind --log-file=kwinwayland.log --trace-children=no kwin_wayland ==254461== ==254461== Warning: Can't execute setuid/setgid/setcap executable: /usr/bin/kwin_wayland ==254461== Possible workaround: remove --trace-children=yes, if in effect ==254461== valgrind: /usr/bin/kwin_wayland: Permission denied ``` Still leaking memory. Everyday 70% RAM and then system crash :( Apparently, more people is having this issue, including me. As long as I have external monitors connected the system will eventually reach its full RAM capacity. The workaround is to disconnect and reconnect the monitors, that frees the memory, but causes performance issues until reboot. Memory leak still exists. Just using firefox for an hour. Then suddenly lag, screen flashes, logs me out and firefox gets killed. I'm using the HDMI output in a dual-gpu laptop. Looks like I have the same issue. Just unplugging the external monitor doesn't work, I have to unplug it, then the actual replug fixes the issue. ❯ ps aux | awk '{print $6/1024 " MB\t\t" $11}' | sort -n | grep kwin 13796 MB /usr/bin/kwin_wayland 4.60938 MB /usr/bin/kwin_wayland_wrapper ❯ ps aux | awk '{print $6/1024 " MB\t\t" $11}' | sort -n | grep kwin 207.195 MB /usr/bin/kwin_wayland 4.60938 MB /usr/bin/kwin_wayland_wrapper I'm using an Nvidia card as well, don't know what else to report, if you need more information from me, I can help of course. I can confirm, that after unplugging and plugging HDMI *again* the memory leaks goes away. Unplugging only doesn't fix the leak. Still happening on 6.2.5, just using external monitors uses a lot of RAM on idle, around 8GB, and then the bug makes it go up to the maximum. In fact, after the update it happens more often. *** This bug has been marked as a duplicate of bug 496469 *** |