| Summary: | [Wayland] VRAM leak when repeatedly switching between window icons | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | aidas957 |
| Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | blaueshawaiihemd, lubasowo0, nroycea+kde, qydwhotmail, serhiihatcan, xqr |
| Priority: | NOR | Keywords: | qt6, wayland-only |
| Version First Reported In: | 6.0.2 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Heaptrack Consumed
Heaptrack Top-Down |
||
|
Description
aidas957
2024-03-14 12:04:12 UTC
Cannot reproduce on X11. Are you on Wayland? (In reply to Fushan Wen from comment #1) > Cannot reproduce on X11. Are you on Wayland? I did mention Wayland in my issue report so definitely yes I have this issue too, similar configuration, by following the steps I was able to get VRAM to jump from < 1gb to 2.5gb and RAM from ~300mb to 750mb (Though while trying to figure out the source I had it at 1gb+ before). Disabling hover thumbnail also prevents the leak for me. Integrated Radeon GPU on AMD 7 Pro 5850U Linux: 6.7.9-arch1-1 KDE Plasma Version: 6.0.2 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Wayland Version: 1.22.0-1 Mesa Version: 24.0.3 FWIW, I have two GPUs - RX570 (amdgpu) and 12900k integrated (i915), with one monitor connected to each gpu. When I start switching between konsole windows when both are present on the monitor connected to the amd gpu, the VRAM is not rising. But when I move both konsole windows to the monitor connected to the Intel gpu and start swithing windows then VRAM (on the *amdgpu* and also system RAM/GTT after a while) is rising rapidly. Disabling thumbnails indeed fixes the issue, thank you for the workaround. I'm also encountering a memory leak when hovering over the applications in the status bar (not VRAM though). X11 (but probably wayland as well since I switched back to X11 after another unusable wayland issue). I'll be attaching screencaps of heaptrack's "Consumed" and "Top-Down" tabs. You'll notice the few areas in the chart where I intentionally hovered over each active application in the status bar back and forth several times, along with my time away from my computer (where there was no change). Is the thumbnail/preview being created and not cached or disposed of every time? Just cache it once for a given PID and dispose of it when the process terminates. My undesirable workaround for plasmashell as a whole is just to have it die by using "MemoryMax=600M" for the service, where it then just respawns fresh (though open applications in the statusbar may get rearranged each time). I used that for wayland too, but it was happening much more frequently (more than once a day vs probably a week+ on X11 before it dies), and it was worse for wayland because yesterday before I switched, plasmashell was stuck in a dying state and there were 2 processes open for it. I had to SIGKILL the earlier one. Created attachment 168763 [details]
Heaptrack Consumed
Created attachment 168764 [details]
Heaptrack Top-Down
|