Bug 460271

Summary: Lockscreen crashes at boot on Plasma Mobile
Product: [Frameworks and Libraries] layer-shell-qt Reporter: Dan Johansen <danjohansen>
Component: generalAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Dan Johansen 2022-10-11 20:42:03 UTC
SUMMARY
On Plasma Mobile, we have the lockscreen set to display on boot to get the user to input the PIN before getting to the system. And this have worked for years.

Recently, since [this commit](https://invent.kde.org/plasma/layer-shell-qt/-/commit/7bd63669ea788676b34d2f99f8296e7ad8245b75), the lockscreen crashes right away. Doing the loginctl -unlock-session dance unlocks the session fine though.
Also, reverting the above commit does workaround the issue.


STEPS TO REPRODUCE
1. Boot a Plasma Mobile system with layer-shell-qt 5.25.80 or higher
2. Wait until the lockscreen shows after SDDM autologin

OBSERVED RESULT
Screen saying you need to run `loginctl unlock-session c1` is presented. 

EXPECTED RESULT
Lockscreen visible and able to unlock.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro ARM - Plasma Mobile - Dev
KDE Plasma Version: 5.25.80 and 5.25.90 tested
KDE Frameworks Version: 5.98 and 5.99 tested
Qt Version: 5.15.5 and 5.15.6 tested
Comment 1 Aleix Pol 2022-10-11 23:47:19 UTC
Can you please provide a backtrace? It will help a lot to understand what is wrong.
Comment 2 Dan Johansen 2022-10-12 06:26:44 UTC
I just rebuilt layer-shell-qt without the revert and tested it again. This time the issue did not appear, so I believe this has already been fixed somewhere else.

Sorry for the noise.