Full system freeze in specific focus switch situation with Plasma 6
Brief summary of the problem:
When a borderless windowed or fullscreen game with mangohud (have frozen with it hidden as well as visible) gains or loses focus on Plasma 6.0.5+, there is a chance my system will completely freeze.
After the freeze occurs, nothing is written to the journal. TTY cannot be switched. The system also stops responding to SSH.
I went to KDE when I first experienced the issue, but was told to report here. Issue with more details.
Hardware description:
- CPU: R9 5900X
- GPU: PowerColor Red Devil 6700 XT
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] [1002:73df] (rev c1)
- System Memory: 32GB DDR4 3600
- Display(s): Asus XG27AQ 2560x1440 144Hz Freesync (Adaptive sync: Automatic), Asus VS239H 1920x1080 60Hz
- Type of Display Connection: Display Port, HDMI>Display Port (active adapter)
System information:
- Distro name and Version: CachyOS
- Kernel version: 6.10.6-3
- Custom kernel: cachyos
- AMD official driver version: N/A
How to reproduce the issue:
Be running KDE Plasma 6.0.5+. I've only experienced the issue while on Wayland as I don't use X11 regularly.
Launch a borderless windowed or fullscreen game with mangohud. So far I've only experienced this with mangohud active, with multiple games on different engines.
Spam the meta key to toggle the application launcher, or spam alt+tab between another window. mangohud will flicker each time the window loses and regains focus.
Eventually, the system may freeze. It seems fairly inconsistent.
As mentioned in the KDE issue, mangohud doesn't flicker when using gamescope. Example: gamescope -f -W 2560 -H 1440 -- gamescope %command%