Bug 453210

Summary: KScreenLocker service not available on screen lock
Product: [Plasma] kwin Reporter: ryu.ketsueki
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: nate
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ryu.ketsueki 2022-04-29 21:16:42 UTC
SUMMARY
Recently, after an update, the whole desktop will simply lock up when it is meant to just go to the lock screen. Because it locks the whole session, I ran gdb and attached to the PID to get a backtrace. Here it is:

#0  0x00007f39932d463e in ppoll () at /lib64/libc.so.6
#1  0x00007f3994506380 in ppoll (__ss=0x0, __timeout=0x0, __nfds=10, __fds=0x564e238096d8) at /usr/include/bits/poll2.h:64
#2  qt_ppoll (timeout_ts=0x0, nfds=10, fds=0x564e238096d8) at kernel/qcore_unix.cpp:132
#3  qt_safe_poll(pollfd*, unsigned long, timespec const*) (fds=0x564e238096d8, nfds=10, timeout_ts=timeout_ts@entry=0x0)
    at kernel/qcore_unix.cpp:155
#4  0x00007f3994507a13 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
    (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:502
#5  0x0000564e2043093d in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
    (this=<optimized out>, flags=...) at qunixeventdispatcher.cpp:63
#6  0x00007f39944b155b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd26b1ed40, flags=..., 
    flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#7  0x00007f39944b9820 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007f399490561c in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1867
#9  0x00007f3993977a85 in QApplication::exec() () at kernel/qapplication.cpp:2824
#10 0x0000564e20345c6f in main(int, char**) (argc=<optimized out>, argv=<optimized out>)
    at /usr/src/debug/kwin5-5.24.80git.20220426T162047~1365a76f-ku.86.1.x86_64/src/main_wayland.cpp:657
Detaching from program: /usr/bin/kwin_wayland, process 2223
[Inferior 1 (process 2223) detached]

I don't understand why it was like that. On journalctl, it says that KScreenLocker service was not available before everything locked up.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220426
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2
Kernel Version: 5.17.4-1-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i3-7020U CPU @ 2.30GHz
Memory: 11.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Manufacturer: LENOVO
Product Name: 81FE
System Version: Lenovo ideapad 330-15IKB

ADDITIONAL INFORMATION
Packages supplied by KDE Unstable repos on openSUSE Tumbleweed. I can't build using kdesrc-build due to a cmake error.
Comment 1 ryu.ketsueki 2022-04-29 21:17:15 UTC
By the way, it happens every time. I have to keep the computer from going to the lock screen by enabling presentation mode
Comment 2 Nate Graham 2022-05-03 17:26:05 UTC

*** This bug has been marked as a duplicate of bug 452817 ***
Comment 3 Nate Graham 2022-05-03 17:27:07 UTC
In the meantime, you can disable screenlocking using System Settings > Workspace Behavior > Screen Locking > uncheck both checkboxes by "Lock screen automatically:"