Bug 489211 - Lock screen crash after returning from display sleep
Summary: Lock screen crash after returning from display sleep
Status: RESOLVED DUPLICATE of bug 489180
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 6.1.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-06-26 03:05 UTC by Renn
Modified: 2024-06-26 16:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (187.08 KB, text/plain)
2024-06-26 03:05 UTC, Renn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Renn 2024-06-26 03:05:20 UTC
Application: plasmashell (6.1.0)

Qt Version: 6.7.2
Frameworks Version: 6.3.0
Operating System: Linux 6.9.6-arch1-1 x86_64
Windowing System: Wayland
Distribution: Arch Linux
DrKonqi: 6.1.0 [CoredumpBackend]

-- Information about the crash:
Relatively often (but not always), when waking the display up after having gone to sleep and locking, a message appears indicating that the lock screen has crashed and I have to log in from a terminal to unlock the session. The computer itself did not go to seeep, only the displays. My setup is two high refresh displays (138hz and 120hz) on a secondary video card (the primary being reserved by vfio-pci for allocation to virtual machines): a 4k monitor and a 2k monitor, with the 4k being the primary. I did not encounter this issue with KDE 6.0. Happy to provide further information as needed.

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#5  QtWaylandClient::QWaylandWindow::waylandScreen (this=0x5682d39e9bb0) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:956
#6  QtWaylandClient::QWaylandWindow::devicePixelRatio (this=0x5682d39e9bb0) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:1519
#7  0x000077bcd8bf9f0c in QtWaylandClient::QWaylandEglWindow::updateSurface (this=0x5682d39e9bb0, create=true) at /usr/src/debug/qt6-wayland/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:70
#8  0x000077bcd8bfa905 in QtWaylandClient::QWaylandGLContext::makeCurrent (this=this@entry=0x77bbe81a5cd0, surface=<optimized out>) at /usr/src/debug/qt6-wayland/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:318
#9  0x000077bcdfcadc28 in QOpenGLContext::makeCurrent (this=0x77bbe8746ee0, surface=0x5682d249dc50) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qopenglcontext.cpp:664


Reported using DrKonqi
Comment 1 Renn 2024-06-26 03:05:21 UTC
Created attachment 170987 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Renn 2024-06-26 03:24:48 UTC
I was looking at the source code for the crash line -- unfortunately the source I was looking at is not 1:1 line number accurate, so I don't actually know where in the ::waylandScreen() function it's crashing, but I suspect it may be the assert.

Here are some additional logs from journalctl that may be helpful.

Jun 25 22:37:12 Renn-LX plasmashell[2088]: KCrash: Application 'plasmashell' crashing... crashRecursionCounter = 2
Jun 25 22:37:12 Renn-LX systemd-coredump[60764]: Process 2088 (plasmashell) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Jun 25 22:37:12 Renn-LX systemd[1]: Started Process Core Dump (PID 60764/UID 0).
Jun 25 22:37:12 Renn-LX systemd[1]: Started Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
Jun 25 22:37:12 Renn-LX kwin_wayland[1866]: kwin_core: KWin::LayerShellV1Window doesn't support setting maximized state
Jun 25 22:37:12 Renn-LX kwin_wayland[1866]: kwin_core: KWin::LayerShellV1Window doesn't support setting fullscreen state
Jun 25 22:37:12 Renn-LX kernel: kscreenlocker_g[60186]: segfault at 8 ip 00007ef034faaee4 sp 00007ffe2f53eb98 error 4 in libQt6Gui.so.6.7.2[7ef034ed9000+618000] likely on CPU 0 (core 0, socket 0)
Jun 25 22:37:12 Renn-LX kernel: Code: 84 00 00 00 00 00 f0 83 28 01 75 9a 48 8b 7d b0 ff 15 90 87 68 00 eb 8e ff 15 80 8c 68 00 0f 1f 84 00 00 00 00 00 f3 0f 1e fa <48> 8b 57 08 48 8b 02 48 85 c0 74 10 8b 40 04 85 c0 74 09 48 8b 42
Jun 25 22:37:12 Renn-LX kwin_wayland_wrapper[1866]: not a valid new object id (2), message get_registry(n)
Jun 25 22:37:12 Renn-LX kwin_wayland_wrapper[1866]: error in client communication (pid 1866)
Jun 25 22:37:12 Renn-LX kwin_wayland_wrapper[60770]: wl_display#1: error 1: invalid arguments for wl_display#1.get_registry
Jun 25 22:37:12 Renn-LX kscreenlocker_greet[60770]: qt.qpa.wayland: Loading shell integration failed.
Jun 25 22:37:12 Renn-LX kscreenlocker_greet[60770]: qt.qpa.wayland: Attempted to load the following shells QList("layer-shell")
Jun 25 22:37:12 Renn-LX kscreenlocker_greet[60770]: qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Jun 25 22:37:12 Renn-LX kscreenlocker_greet[60770]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                                    
                                                    Available platform plugins are: linuxfb, vkkhrdisplay, minimalegl, vnc, eglfs, xcb, wayland-egl, offscreen, wayland, minimal.
Jun 25 22:37:12 Renn-LX kscreenlocker_greet[60772]: qt.qpa.wayland: Loading shell integration failed.
Jun 25 22:37:12 Renn-LX kscreenlocker_greet[60772]: qt.qpa.wayland: Attempted to load the following shells QList("layer-shell")
Jun 25 22:37:12 Renn-LX kscreenlocker_greet[60772]: qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Jun 25 22:37:12 Renn-LX kscreenlocker_greet[60772]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                                    
                                                    Available platform plugins are: linuxfb, vkkhrdisplay, minimalegl, vnc, eglfs, xcb, wayland-egl, offscreen, wayland, minimal.
Jun 25 22:37:12 Renn-LX kscreenlocker_greet[60774]: qt.qpa.wayland: Loading shell integration failed.
Jun 25 22:37:12 Renn-LX kscreenlocker_greet[60774]: qt.qpa.wayland: Attempted to load the following shells QList("layer-shell")
Jun 25 22:37:12 Renn-LX kscreenlocker_greet[60774]: qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Jun 25 22:37:12 Renn-LX kscreenlocker_greet[60774]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                                    
                                                    Available platform plugins are: linuxfb, vkkhrdisplay, minimalegl, vnc, eglfs, xcb, wayland-egl, offscreen, wayland, minimal.
Jun 25 22:37:13 Renn-LX teams-for-linux[2555]: [DEBUG] GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'locked'
Jun 25 22:37:14 Renn-LX systemd-coredump[60765]: [🡕] Process 2088 (plasmashell) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 55999:
                                                 #0  0x000077bcdeca8e44 n/a (libc.so.6 + 0x94e44)
                                                 #1  0x000077bcdec50a30 raise (libc.so.6 + 0x3ca30)
                                                 #2  0x000077bce1acd643 _ZN6KCrash19defaultCrashHandlerEi (libKF6Crash.so.6 + 0x6643)
                                                 #3  0x000077bcdec50ae0 n/a (libc.so.6 + 0x3cae0)
                                                 #4  0x000077bce01a540b _ZNK15QtWaylandClient14QWaylandWindow16devicePixelRatioEv (libQt6WaylandClient.so.6 + 0x9140b)
                                                 #5  0x000077bcd8bf9f0c _ZN15QtWaylandClient17QWaylandEglWindow13updateSurfaceEb (libQt6WaylandEglClientHwIntegration.so.6 + 0x8f0c)
                                                 #6  0x000077bcd8bfa905 _ZN15QtWaylandClient17QWaylandGLContext11makeCurrentEP16QPlatformSurface (libQt6WaylandEglClientHwIntegration.so.6 + 0x9905)
                                                 #7  0x000077bcdfcadc28 _ZN14QOpenGLContext11makeCurrentEP8QSurface (libQt6Gui.so.6 + 0x4adc28)
                                                 #8  0x000077bcdfe6f112 n/a (libQt6Gui.so.6 + 0x66f112)
                                                 #9  0x000077bce0c18647 n/a (libQt6Quick.so.6 + 0x418647)
                                                 #10 0x000077bce0c19f9a n/a (libQt6Quick.so.6 + 0x419f9a)
                                                 #11 0x000077bcdf4c9747 n/a (libQt6Core.so.6 + 0x2c9747)
                                                 #12 0x000077bcdeca6ded n/a (libc.so.6 + 0x92ded)
                                                 #13 0x000077bcded2a0dc n/a (libc.so.6 + 0x1160dc)

[... and so on. Attached stack trace gives better info]
Comment 3 Nate Graham 2024-06-26 16:03:23 UTC

*** This bug has been marked as a duplicate of bug 489180 ***