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

            Bug ID: 528579
           Summary: Fullscreen application freeze with tearing enabled on
                    Plasma 6.8.2
    Classification: Plasma
           Product: kwin
      Version First 6.8.2
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 198262
  --> https://bugs.kde.org/attachment.cgi?id=198262&action=edit
screen recording I made using GSR of me reproducing the bug

DESCRIPTION
Before, on Plasma 6.7, I'd have the `KWIN_DRM_NO_AMS=1` environment variable
set, enable tearing in fullscreen windows, and I'd add a window rule for my
game to force tearing and reduce latency, this used to work perfectly. But then
I recently updated to Plasma 6.8.2, and I noticed whenever I fullscreen the
game, the screen freezes, but the game is not frozen, I can interact with my
mouse I just don't know what I'm clicking on. I can just disable the tearing in
fullscreen setting which fixes the freezing but theres no tearing. I also tried
running Plasma without the `KWIN_DRM_NO_AMS=1` environment variable and tearing
enabled, which does fix the issue of the screen freezing, but tearing isn't
working, which i kinda expected because on Plasma 6.7 the same thing happened
without the variable.

STEPS TO REPRODUCE
1. Run Plasma 6.8.2 with KWIN_DRM_NO_AMS=1 set and tearing in fullscreen
windows enabled
2. Add a window rule for any app so that tearing is forced (Even Konsole is
enough to cause this for me)
3. Fullscreen the app

OBSERVED RESULT
The screen freezes, I see the frame right before the game is fullscreened, and
the cursor disappears. I can Alt+Tab and bring a window to the front or press
F11 (in an app that takes F11 as the fullscreen hotkey like Konsole) to exit
fullscreen which unfreezes the screen.

EXPECTED RESULT
Fullscreen works and the screen isn't frozen and tearing is actually working

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window): Arch Linux
KDE Plasma Version: 6.8.2
KDE Frameworks Version: 6.31.0
Qt Version: 6.12.0
Kernel Version: 7.2.14-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Celeron® N4120 CPU @ 1.10GHz
Memory: 4 GiB of RAM (3.7 GiB usable)
Graphics Processor: Intel® UHD Graphics 600

ADDITIONAL INFORMATION
I thought maybe it was GPU Screen Recorder causing this but I disabled it and
found out the freezing still happens
KWin spams in journalctl whenever the freeze happens:
Nov 09 18:10:25 archlinux kwin_wayland[422928]: Failed to find a working output
layer configuration: Invalid argument
Nov 09 18:10:25 archlinux kwin_wayland[422928]: Enabled layers:
Nov 09 18:10:25 archlinux kwin_wayland[422928]: src KWin::RectF(0,0 1366x768)
-> dst KWin::Rect(0,0 1366x768)
Nov 09 18:10:25 archlinux kwin_wayland[422928]: Failed to find a working output
layer configuration: Invalid argument
Nov 09 18:10:25 archlinux kwin_wayland[422928]: Enabled layers:
Nov 09 18:10:25 archlinux kwin_wayland[422928]: src KWin::RectF(0,0 1366x768)
-> dst KWin::Rect(0,0 1366x768)
Nov 09 18:10:25 archlinux kwin_wayland[422928]: Failed to find a working output
layer configuration: Invalid argument
Nov 09 18:10:25 archlinux kwin_wayland[422928]: Enabled layers:

Spectacle's screen recorder can actually see whats happening when its frozen,
but GPU Screen Recorder which has a special way that records whats actually on
the screen can record the freeze, which is what I see.
There is an attachment of a screen recording I made using GPU Screen Recorder
of me reproducing the bug.

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

Reply via email to