https://bugs.kde.org/show_bug.cgi?id=496469

qethanmoore+...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qethanmoore+...@gmail.com

--- Comment #60 from qethanmoore+...@gmail.com ---
(In reply to Daniela Henkel from comment #48)
> im unsure if what im experiencing is the same issue or not, but for me
> kwin_waylands memory usage gets increased by a lot by repeatedly
> fullscreening and unfullscreening a program, with each fullscreen the memory
> usage gets higher and higher with my desktop just getting more and more
> laggy and freezy and a full restart is needed to fix it, ive seen it go up
> to 8 gigs of ram before. this can get really annoying as i tend to watch
> youtube videos in fullscreen and i unfullscreen them multiple times to check
> up on messages, causing the freezes to kick in fast.
>
> Operating System: EndeavourOS
> KDE Plasma Version: 6.3.0
> KDE Frameworks Version: 6.10.0
> Qt Version: 6.8.2
> Kernel Version: 6.13.2-arch1-1 (64-bit)
> Graphics Platform: Wayland
> Processors: 8 × Intel® Core™ i7-3770K CPU @ 3.50GHz
> Memory: 23,4 GiB of RAM
> Graphics Processor: NVIDIA GeForce GTX 980

Same behaviour on my machine.
I did some testing with mpv and noticed: pressing f to toggle fullscreen 16
times will guarantee a small leak. Once it has started to leak, it is
guaranteed to leak again each time it leaves fullscreen.
The same is true of f in VLC and Haruna, and F11 in Firefox, even on the new
tab page. The 16th press is where the problem begins.
There is a noticeable lag spike when the memory leaks, and again when closing
the responsible program.
Reboot or kwin_wayland --replace to remedy, but Firefox will close during
either of these.

RAM usage for mpv tests looked like this:
1.7GiB to start, with video open and playing in a small window.
16 fullscreen toggles later: the first permanent increase to 1.9GiB
Subsequent fullscreen/unfullscreen cycles: 2.5, 4.8, 14.3 GiB
Other runs:
(kwin_wayland --replace)
[1.7,(16 fullscreen toggles...) 1.8, 2.4, 4.8, 14.3] GiB
(and after a reboot)
[1.7,(16 fullscreen toggles...) 1.9, 2.5, 4.9, 14.4] GiB

And so, with ~16GB RAM my PC crashed when leaving fullscreen on my 11th YouTube
video of the session, with at most 2 tabs open in Firefox at any given time:
one video, and one other tab to open new videos from. I toggled fullscreen
during this session only by clicking the button at the bottom right of the
video.

Independent processes do not affect each other. mpv can be closed before
leaking (even with alt+F4 to avoid the problematic 16th toggle), and opened
again with the full 16 toggle grace. Using external video players to watch each
YouTube video does escape Firefox's fullscreen limit, if otherwise less than
ideal.

I'd be very interested to hear if this magic number "16" (i.e. 8 times
*leaving* fullscreen) is the same for anyone else. It's likely that I'll file a
separate report in the morning regardless of feedback, but if anyone outside of
EndeavourOS can't replicate, that would help get this to the right team.


Operating System: EndeavourOS
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 2600X Six-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 580 Series
Desktop running identical dual monitors, one through a DisplayPort->HDMI
adapter

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to