SUMMARY When plugging in an external screen to the HDMI connector, kwin crashes or freezes about half the time, taking down the entire session. This HDMI connector is attached to the NVidia dGPU in my laptop; I am using the open-source nouveau drivers for that one. systemd-coredump shows a stacktrace in the logs but I am not sure how to get symbols for that one: Stack trace of thread 2093: #0 0x00007f3ad13cbfd0 _ZNK4KWin6Output12capabilitiesEv (libkwin.so.5 + 0x1cbfd0) #1 0x00007f3ad15f86d6 _ZN14KWaylandServer13DpmsInterface13sendSupportedEv (libkwin.so.5 + 0x3f86d6) #2 0x00007f3ad15f883d _ZN14KWaylandServer13DpmsInterfaceC2EPNS_15OutputInterfaceEP11wl_resource (libkwin.so.5 + 0x3f883d) #3 0x00007f3acc631f7a n/a (libffi.so.8 + 0x6f7a) #4 0x00007f3acc63140e n/a (libffi.so.8 + 0x640e) #5 0x00007f3acc631b0d ffi_call (libffi.so.8 + 0x6b0d) #6 0x00007f3ace32d981 n/a (libwayland-server.so.0 + 0xd981) #7 0x00007f3ace328bda n/a (libwayland-server.so.0 + 0x8bda) #8 0x00007f3ace32b89a wl_event_loop_dispatch (libwayland-server.so.0 + 0xb89a) #9 0x00007f3ad15f6545 _ZN14KWaylandServer7Display14dispatchEventsEv (libkwin.so.5 + 0x3f6545) #10 0x00007f3acfae8caf _ZN9QtPrivate15QSlotObjectBase4callEP7QObjectPPv (libQt5Core.so.5 + 0x2e8caf) #11 0x00007f3acfaebfef _ZN15QSocketNotifier9activatedE17QSocketDescriptorNS_4TypeENS_14QPrivateSignalE (libQt5Core.so.5 + 0x2ebfef) #12 0x00007f3acfaec7f5 _ZN15QSocketNotifier5eventEP6QEvent (libQt5Core.so.5 + 0x2ec7f5) #13 0x00007f3acf162f5e _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x162f5e) #14 0x00007f3acfab1718 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2b1718) #15 0x00007f3acfb068f3 _ZN27QEventDispatcherUNIXPrivate23activateSocketNotifiersEv (libQt5Core.so.5 + 0x3068f3) #16 0x00007f3acfb06db7 _ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x306db7) #17 0x0000556d877d90cd n/a (kwin_wayland + 0x1420cd) #18 0x00007f3acfab019b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b019b) #19 0x00007f3acfab8306 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2b8306) #20 0x0000556d876ea154 n/a (kwin_wayland + 0x53154) #21 0x00007f3ace82920a __libc_start_call_main (libc.so.6 + 0x2920a) #22 0x00007f3ace8292bc __libc_start_main_impl (libc.so.6 + 0x292bc) #23 0x0000556d876ebb31 n/a (kwin_wayland + 0x54b31) SOFTWARE/OS VERSIONS Operating System: Debian GNU/Linux KDE Plasma Version: 5.26.0 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 Kernel Version: 6.0.0-2-amd64 (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Xeon® CPU E3-1505M v5 @ 2.80GHz Memory: 31,2 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics P530 Manufacturer: LENOVO Product Name: 20ENCTO1WW System Version: ThinkPad P50
I managed to get this backtrace out of 'coredumpctl debug', I hope it is helpful: #0 KWin::Output::capabilities() const (this=0x0) at ./src/core/output.cpp:159 #1 0x00007f3ad15f86d6 in KWaylandServer::DpmsInterface::sendSupported() (this=0x7f3a940079f0) at ./src/wayland/dpms_interface.cpp:138 #2 0x00007f3ad15f883d in KWaylandServer::DpmsInterface::DpmsInterface(KWaylandServer::OutputInterface*, wl_resource*) (this=0x7f3a940079f0, output=0x556d89f7dc70, resource=0x556d8a40c3c0) at ./src/wayland/dpms_interface.cpp:83 #3 0x00007f3acc631f7a in () at /lib/x86_64-linux-gnu/libffi.so.8 #4 0x00007f3acc63140e in () at /lib/x86_64-linux-gnu/libffi.so.8 #5 0x00007f3acc631b0d in ffi_call () at /lib/x86_64-linux-gnu/libffi.so.8 #6 0x00007f3ace32d981 in () at /lib/x86_64-linux-gnu/libwayland-server.so.0 #7 0x00007f3ace328bda in () at /lib/x86_64-linux-gnu/libwayland-server.so.0 #8 0x00007f3ace32b89a in wl_event_loop_dispatch () at /lib/x86_64-linux-gnu/libwayland-server.so.0 #9 0x00007f3ad15f6545 in KWaylandServer::Display::dispatchEvents() (this=<optimized out>) at ./src/wayland/display.cpp:114 #10 0x00007f3acfae8caf in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd30e711f0, r=0x556d88d19e40, this=0x556d89049390) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #11 doActivate<false>(QObject*, int, void**) (sender=0x556d8925e920, signal_index=3, argv=0x7ffd30e711f0) at kernel/qobject.cpp:3919 #12 0x00007f3acfae1f4f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x556d8925e920, m=m@entry=0x7f3acfd4c1a0 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd30e711f0) at kernel/qobject.cpp:3979 #13 0x00007f3acfaebfef in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) (this=this@entry=0x556d8925e920, _t1=..., _t2=<optimized out>, _t3=...) at .moc/moc_qsocketnotifier.cpp:178 #14 0x00007f3acfaec7f5 in QSocketNotifier::event(QEvent*) (this=0x556d8925e920, e=<optimized out>) at kernel/qsocketnotifier.cpp:302 #15 0x00007f3acf162f5e in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x556d8925e920, e=0x7ffd30e712f0) at kernel/qapplication.cpp:3637 #16 0x00007f3acfab1718 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x556d8925e920, event=0x7ffd30e712f0) at kernel/qcoreapplication.cpp:1064 #17 0x00007f3acfb068f3 in QEventDispatcherUNIXPrivate::activateSocketNotifiers() (this=0x556d88cee610) at kernel/qeventdispatcher_unix.cpp:304 #18 0x00007f3acfb06db7 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:511 #19 0x0000556d877d90cd in () #20 0x00007f3acfab019b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd30e71480, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69 #21 0x00007f3acfab8306 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121 #22 0x0000556d876ea154 in () #23 0x00007f3ace82920a in __libc_start_call_main (main=main@entry=0x556d876e8870, argc=argc@entry=14, argv=argv@entry=0x7ffd30e71958) at ../sysdeps/nptl/libc_start_call_main.h:58 #24 0x00007f3ace8292bc in __libc_start_main_impl (main=0x556d876e8870, argc=14, argv=0x7ffd30e71958, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd30e71948) at ../csu/libc-start.c:389 #25 0x0000556d876ebb31 in ()
#0 KWin::Output::capabilities() const (this=0x0) at ./src/core/output.cpp:159 #1 0x00007f3ad15f86d6 in KWaylandServer::DpmsInterface::sendSupported() (this=0x7f3a940079f0) at ./src/wayland/dpms_interface.cpp:138 #2 0x00007f3ad15f883d in KWaylandServer::DpmsInterface::DpmsInterface(KWaylandServer::OutputInterface*, wl_resource*) (this=0x7f3a940079f0, output=0x556d89f7dc70, resource=0x556d8a40c3c0) at ./src/wayland/dpms_interface.cpp:83
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3159