Bug 459846

Summary: kscreenlocker crashes with segfault
Product: [KDE Neon] neon Reporter: Moritz <bixilon>
Component: Packages Unstable EditionAssignee: Neon Bugs <neon-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: bixilon, bshah, clay, jay, jr, neon-bugs, orangewinds, sitter
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Moritz 2022-09-30 09:03:48 UTC
When locking the screen something crashes and it just shows a black screen with white text (something like the screen locker is broken) 

STEPS TO REPRODUCE
1. Update to latest kde neon unstable
2. Lock the screen

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 5.19.12-051912-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5500U with Radeon Graphics
Memory: 17.4 GiB of RAM
Graphics Processor: AMD RENOIR
Manufacturer: LENOVO
Product Name: 82KC
System Version: Lenovo V14 G2 ALC

ADDITIONAL INFORMATION

Logs:
Sep 30 10:55:56 moritz-82k kscreenlocker_greet[25287]: kf.kirigami: Failed to find a Kirigami platform plugin
Sep 30 10:55:56 moritz-82k kernel: kscreenlocker_g[25287]: segfault at 18 ip 00007fe4eb20aabd sp 00007ffc915e0eb0 error 4 in libLayerShellQtInterface.so.5.26.80[7fe4eb209000+3000]
Sep 30 10:55:56 moritz-82k kernel: Code: 8d 6c 24 40 4c 8d 64 24 38 48 89 ee 4c 89 e7 e8 29 fc ff ff 48 89 ef e8 51 fc ff ff 4c 89 e6 4c 89 ef 89 44 24 24 49 8b 46 30 <4c> 8b 48 18 4c 89 4c 24 18 e8 55 ea ff ff 48 8b 44 24 40 48 03 40
Sep 30 10:55:56 moritz-82k kwin_wayland_wrapper[2301]: not a valid new object id (2), message get_registry(n)
Sep 30 10:55:56 moritz-82k kwin_wayland_wrapper[2301]: error in client communication (pid 2301)
Sep 30 10:55:56 moritz-82k kwin_wayland_wrapper[25317]: wl_display@1: error 1: invalid arguments for wl_display@1.get_registry
Sep 30 10:55:56 moritz-82k kscreenlocker_greet[25317]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Sep 30 10:55:56 moritz-82k kscreenlocker_greet[25317]: The Wayland connection experienced a fatal error: Das Argument ist ungültig
Sep 30 10:55:56 moritz-82k kscreenlocker_greet[25321]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Sep 30 10:55:56 moritz-82k kscreenlocker_greet[25321]: The Wayland connection broke. Did the Wayland compositor die?
Sep 30 10:55:56 moritz-82k kscreenlocker_greet[25325]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Sep 30 10:55:56 moritz-82k kscreenlocker_greet[25325]: The Wayland connection broke. Did the Wayland compositor die?


DrKonqui does not start, how to get the full crashlog with gdb? (no clue how to do that with the library: https://community.kde.org/KWin/Debugging)
Comment 1 Moritz 2022-10-03 12:03:05 UTC
This bug should have the highest priority, it destorys all KDE neon user (maybe even whole plasma 5.26?) experience. And if we take it in consideration that plasma 5.26 should be released in 3 days. It makes my laptop unuseable, I don't even want to update my other ones.
Comment 2 Clay Weber 2022-10-03 13:50:06 UTC
I don't believe this is related to Plasma 5.26. I am seeing thew same in Neon User (upgraded top the 22.04 base) with Plasma 5.25.5 since updating on Sept 30. 

No issues in Xorg, just in Wayland.
I suspect something  is missing or out  of sync, version-wise?
Comment 3 Clay Weber 2022-10-03 13:58:39 UTC
Reverting to a snapshot from the 29th, these are the updates since then:

The following NEW packages will be installed:
  neon-repositories-launchpad-mozilla ubuntu-dbgsym-keyring
The following packages have been kept back:
  apt apt-transport-https apt-utils libapt-pkg6.0
The following packages will be upgraded:
  gir1.2-wp-0.4 google-chrome-stable gstreamer1.0-pipewire liblur3 libpipewire-0.3-0 libpipewire-0.3-dev
  libpipewire-0.3-modules libqt5script5 libqt5scripttools5 libqt5waylandclient5 libqt5waylandclient5-dev
  libqt5waylandcompositor5 libratbag-tools libspa-0.2-bluetooth libspa-0.2-dev libspa-0.2-jack
  libspa-0.2-modules libspeechd2 libwireplumber-0.4-0 libwireplumber-0.4-dev lur-command
  neon-essentials-desktop neon-settings-2 obs-studio openrgb openshot-qt pipewire pipewire-alsa pipewire-bin
  pipewire-jack pipewire-locales pipewire-pulse pipewire-tests plasma-wayland-protocols python3-distupgrade
  qtscript5-dev qtwayland5 qtwayland5-dev-tools ratbagd ubuntu-release-upgrader-core
  ubuntu-release-upgrader-qt wireplumber wireplumber-doc


The held packages can be ignored, those are being phased, specific to Ubuntu 22.04.
Comment 4 Moritz 2022-10-03 14:18:55 UTC
You are right. When updating libqt5waylandclient5 libqt5waylandcompositor5 plasma-wayland-protocols qtwayland5 to debian sid packages and rebooting it works.
Comment 5 Clay Weber 2022-10-03 15:29:40 UTC
(In reply to Moritz from comment #4)
> You are right. When updating libqt5waylandclient5 libqt5waylandcompositor5
> plasma-wayland-protocols qtwayland5 to debian sid packages and rebooting it
> works.

It would probably be safer/wiser to downgrade to a slightly earlier build than to mix and match both different distro packaging as well as Qt versions.

$ apt policy libqt5waylandclient5 
libqt5waylandclient5:
  Installed: 5.15.5+p22.04+tunstable+git20220928.0054-0
  Candidate: 5.15.5+p22.04+tunstable+git20220928.0054-0
  Version table:
 *** 5.15.5+p22.04+tunstable+git20220928.0054-0 500
        500 http://archive.neon.kde.org/user jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     5.15.5+p22.04+tunstable+git20220923.0055-0 500
        500 http://archive.neon.kde.org/user jammy/main amd64 Packages
     5.15.5+p22.04+tunstable+git20220921.0058-0 500
        500 http://archive.neon.kde.org/user jammy/main amd64 Packages
     5.15.5+p22.04+tunstable+git20220920.0122-0 500
        500 http://archive.neon.kde.org/user jammy/main amd64 Packages
Comment 6 Clay Weber 2022-10-03 16:46:05 UTC
Downgrading libqt5waylandclient5, libqt5waylandcompositor5 and qtwayland5  to September 23's builds (5.15.5+p22.04+tunstable+git20220923.0055-0) seems to work.
Comment 7 Moritz 2022-10-10 16:41:20 UTC
seems to work again (at least for me)
Comment 8 Clay Weber 2022-10-11 17:30:09 UTC
Yes, this seems to have been fixed after the upgrade to Plasma 5.26 today.