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

            Bug ID: 452334
           Summary: Compositor freezes when locking the screen
           Product: kwin
           Version: master
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: oii...@yahoo.com
  Target Milestone: ---

SUMMARY
The compositor very occasionally (git master) or always (5.24 branch) freezes
when locking the screen. Per git bisect, the offending commit is
https://invent.kde.org/plasma/kwin/-/commit/c16a8e09d7e80b2130a0ba041b62b956b8c8ceb3.

If kscreenlocker emits aboutToLock and fails later,
LockScreenPresentationWatcher still calls lockScreenShown, making the
compositor believe the screen is locked. A similar possibility is when the
first check in LockScreenPresentationWatcher never succeeds (due to screen
configuration issues or because the greeter shows up before
LockScreenPresentationWatcher runs, which are rare but possible) and the user
unlocks within the 1000ms timeout. The case of 5.24 branch seems to be a simple
mistake, where LockScreenPresentationWatcher is put in the 'unlocked' callback
instead of the 'aboutToLock' one.
(https://invent.kde.org/plasma/kwin/-/blob/9d38f57d84fb9a6f2c4e60f7051f685842f34e0f/src/wayland_server.cpp#L622)

STEPS TO REPRODUCE
1. Lock screen.

OBSERVED RESULT
The screen becomes black.

EXPECTED RESULT
The compositor should work when unlocked or locking fails.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian testing
KDE Plasma Version: git master / git 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3

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

Reply via email to