Bug 474131 - Kwin crashes on login with Wayland
Summary: Kwin crashes on login with Wayland
Status: RESOLVED DUPLICATE of bug 466174
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.27.7
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-04 08:58 UTC by langsorigingaleia
Modified: 2023-09-06 16:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description langsorigingaleia 2023-09-04 08:58:39 UTC
SUMMARY
Kwin crashes on login with Wayland

STEPS TO REPRODUCE
Try to log in to Wayland

OBSERVED RESULT
The SDDM splash screen appears for a brief moment, then the screen turns to back, it appears to attempt to load plasmashell briefly as several widgwwwwbut then it turns back to black again and the mouse appears on screen with no plasmashell, just a black background. The system can still be used and shortcuts work fine. I managed to launch konsole through a ctrl+alt+t, copy the dump and then open firefox through konsole and that's how I write this bug report.

It even somehow even sends notifications, albeit after freezing the system for several seconds.

EXPECTED RESULT
Desktop loads normally like on X11.

SOFTWARE/OS VERSIONS´
Linux/KDE Plasma
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Stack trace:
sep 04 10:50:13 desktop systemd-coredump[354494]: [🡕] Process 353834 (kwin_wayland) of user 1000 dumped core.
                                                  
                                                  Stack trace of thread 353834:
                                                  #0  0x00007fd27069ee3b pthread_kill (libc.so.6 + 0x9ee3b)
                                                  #1  0x00007fd2706439a8 raise (libc.so.6 + 0x439a8)
                                                  #2  0x00007fd270626478 abort (libc.so.6 + 0x26478)
                                                  #3  0x00007fd27298b1ae n/a (libepoxy.so.0 + 0xbe1ae)
                                                  #4  0x00007fd27298eb92 n/a (libepoxy.so.0 + 0xc1b92)
                                                  #5  0x00007fd2734650a6 _ZN4KWin9EglDmabufD1Ev (libkwin.so.5 + 0x4650a6)
                                                  #6  0x00007fd273469c91 _ZN4KWin18AbstractEglBackendD2Ev (libkwin.so.5 + 0x469c91)
                                                  #7  0x00007fd27339738e n/a (libkwin.so.5 + 0x39738e)
                                                  #8  0x00007fd2731c2cb3 _ZN4KWin10Compositor4stopEv (libkwin.so.5 + 0x1c2cb3)
                                                  #9  0x00007fd2731bb79c _ZN4KWin10Compositor12reinitializeEv (libkwin.so.5 + 0x1bb79c)
                                                  #10 0x00007fd2718db467 n/a (libQt5Core.so.5 + 0x2db467)
                                                  #11 0x00007fd27332f89a _ZN4KWin9Workspace15slotReconfigureEv (libkwin.so.5 + 0x32f89a)
                                                  #12 0x00007fd2718db467 n/a (libQt5Core.so.5 + 0x2db467)
                                                  #13 0x00007fd2718dcf7f _ZN6QTimer7timeoutENS_14QPrivateSignalE (libQt5Core.so.5 + 0x2dcf7f)
                                                  #14 0x00007fd2718cd7ae _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2cd7ae)
                                                  #15 0x00007fd270f7a30f _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x17a30f)
                                                  #16 0x00007fd2718a55d8 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2a55d8)
                                                  #17 0x00007fd2718f62da _ZN14QTimerInfoList14activateTimersEv (libQt5Core.so.5 + 0x2f62da)
                                                  #18 0x00007fd2718f6b51 _ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2f6b51)
                                                  #19 0x0000564befc77742 n/a (kwin_wayland + 0x14c742)
                                                  #20 0x00007fd2718a42c4 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2a42c4)
                                                  #21 0x00007fd2718a5783 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2a5783)
                                                  #22 0x0000564befb7b515 n/a (kwin_wayland + 0x50515)
                                                  #23 0x00007fd270627f90 n/a (libc.so.6 + 0x27f90)
                                                  #24 0x00007fd27062804a __libc_start_main (libc.so.6 + 0x2804a)
                                                  #25 0x0000564befb7d315 n/a (kwin_wayland + 0x52315)
                                                  
                                                  Stack trace of thread 353887:
                                                  #0  0x00007fd270699476 n/a (libc.so.6 + 0x99476)
                                                  #1  0x00007fd27069c292 pthread_cond_timedwait (libc.so.6 + 0x9c292)
                                                  #2  0x00007fd2716febfa _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xfebfa)
                                                  #3  0x00007fd2716fbb6a n/a (libQt5Core.so.5 + 0xfbb6a)
                                                  #4  0x00007fd2716f6c7a n/a (libQt5Core.so.5 + 0xf6c7a)
                                                  #5  0x00007fd27069ce7f n/a (libc.so.6 + 0x9ce7f)
                                                  #6  0x00007fd27072f58c n/a (libc.so.6 + 0x12f58c)
                                                  
                                                  Stack trace of thread 353867:
                                                  #0  0x00007fd27072215f __poll (libc.so.6 + 0x12215f)
                                                  #1  0x00007fd26ef6de8e n/a (libglib-2.0.so.0 + 0xcee8e)
                                                  #2  0x00007fd26eeff252 g_main_context_iteration (libglib-2.0.so.0 + 0x60252)
                                                  #3  0x00007fd2718f6e1c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2f6e1c)
                                                  #4  0x00007fd2718a42c4 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2a42c4)
                                                  #5  0x00007fd2716faae6 _ZN7QThread4execEv (libQt5Core.so.5 + 0xfaae6)
                                                  #6  0x00007fd2737e402a n/a (libQt5DBus.so.5 + 0x1802a)
                                                  #7  0x00007fd2716f6c7a n/a (libQt5Core.so.5 + 0xf6c7a)
                                                  #8  0x00007fd27069ce7f n/a (libc.so.6 + 0x9ce7f)
                                                  #9  0x00007fd27072f58c n/a (libc.so.6 + 0x12f58c)
                                                  
                                                  Stack trace of thread 353871:
                                                  #0  0x00007fd27072215f __poll (libc.so.6 + 0x12215f)
                                                  #1  0x00007fd26ef6de8e n/a (libglib-2.0.so.0 + 0xcee8e)
                                                  #2  0x00007fd26eeff252 g_main_context_iteration (libglib-2.0.so.0 + 0x60252)
                                                  #3  0x00007fd2718f6e1c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2f6e1c)
                                                  #4  0x00007fd2718a42c4 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2a42c4)
                                                  #5  0x00007fd2716faae6 _ZN7QThread4execEv (libQt5Core.so.5 + 0xfaae6)
                                                  #6  0x00007fd2716f6c7a n/a (libQt5Core.so.5 + 0xf6c7a)
Comment 1 Nate Graham 2023-09-05 20:17:07 UTC
It sounds like Plasma crashed on login and failed to restart automatically. The root cause is probably the kwin_wayland crash, so let's debug that for now. Can you please attach a backtrace of the kwin_wayland crash using the coredumpctl command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?
Comment 2 langsorigingaleia 2023-09-06 04:05:49 UTC
Absolutely, I apologize, I'm a bit new to this. I went through the guide to collect the BT.
So the kwin actually seems to have 3 crashed instances but I note that the program sent an interrupt signal.
TIME                           PID  UID  GID SIG     COREFILE     EXE                   SIZE
Wed 2023-09-06 05:53:16 CEST 23198 1000 1000 SIGABRT inaccessible /usr/bin/kwin_wayland    -
Wed 2023-09-06 05:53:12 CEST 22885 1000 1000 SIGABRT inaccessible /usr/bin/kwin_wayland    -
Wed 2023-09-06 05:53:09 CEST 22298 1000 1000 SIGABRT inaccessible /usr/bin/kwin_wayland    -

All seems to say the exact same thing. This is 23198
#0  0x00007f2081a9ee3b in pthread_kill () at /usr/lib/libc.so.6
#1  0x00007f2081a439a8 in raise () at /usr/lib/libc.so.6
#2  0x00007f2081a26478 in abort () at /usr/lib/libc.so.6
#3  0x00007f2083efb1ae in  () at /usr/lib/libepoxy.so.0
#4  0x00007f2083efeb92 in  () at /usr/lib/libepoxy.so.0
#5  0x00007f2084a650a6 in KWin::EglDmabuf::~EglDmabuf() () at /usr/lib/libkwin.so.5
#6  0x00007f2084a69c91 in KWin::AbstractEglBackend::~AbstractEglBackend() () at /usr/lib/libkwin.so.5
#7  0x00007f208499738e in  () at /usr/lib/libkwin.so.5
#8  0x00007f20847c2cb3 in KWin::Compositor::stop() () at /usr/lib/libkwin.so.5
#9  0x00007f20847bb79c in KWin::Compositor::reinitialize() () at /usr/lib/libkwin.so.5
#10 0x00007f2082edb467 in  () at /usr/lib/libQt5Core.so.5
#11 0x00007f208492f89a in KWin::Workspace::slotReconfigure() () at /usr/lib/libkwin.so.5
#12 0x00007f2082edb467 in  () at /usr/lib/libQt5Core.so.5
#13 0x00007f2082edcf7f in QTimer::timeout(QTimer::QPrivateSignal) () at /usr/lib/libQt5Core.so.5
#14 0x00007f2082ecd7ae in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#15 0x00007f208237a30f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#16 0x00007f2082ea55d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#17 0x00007f2082ef62da in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#18 0x00007f2082ef6b51 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#19 0x0000558f96984742 in  ()
#20 0x00007f2082ea42c4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#21 0x00007f2082ea5783 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#22 0x0000558f96888515 in  ()
#23 0x00007f2081a27f90 in  () at /usr/lib/libc.so.6
#24 0x00007f2081a2804a in __libc_start_main () at /usr/lib/libc.so.6
#25 0x0000558f9688a315 in  ()

But it looks like this is the exact same backtrace as the one I originally posted.
Comment 3 Nate Graham 2023-09-06 16:41:26 UTC
Thanks, that's helpful.

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