Bug 425689

Summary: kwin_wayland crashes when disconnecting monitor
Product: [Plasma] kwin Reporter: Nicolas Fella <nicolas.fella>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: alex765, johngaltfirstrun
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nicolas Fella 2020-08-22 21:03:01 UTC
KDE stuff from master, Qt from 5.15 branch

#0  0x00007ff3b493af43 in  () at /usr/lib/libwayland-server.so.0
#1  0x00007ff3b49372dc in  () at /usr/lib/libwayland-server.so.0
#2  0x00007ff3b4938faa in wl_event_loop_dispatch () at /usr/lib/libwayland-server.so.0
#3  0x00007ff3b70fedc1 in KWaylandServer::Display::Private::dispatch() (this=0x559425437930) at /home/nico/kde/src/kwayland-server/src/server/display.cpp:134
#4  0x00007ff3b70fe9f5 in operator()() const (__closure=0x559425dead60) at /home/nico/kde/src/kwayland-server/src/server/display.cpp:103
#5  0x00007ff3b7107d34 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, KWaylandServer::Display::Private::installSocketNotifier()::<lambda()> >::call(struct {...} &, void **)
    (f=..., arg=0x7ffe1b7e3e10) at /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:146
#6  0x00007ff3b710756f in QtPrivate::Functor<KWaylandServer::Display::Private::installSocketNotifier()::<lambda()>, 0>::call<QtPrivate::List<>, void>(struct {...} &, void *, void **) (f=..., arg=0x7ffe1b7e3e10)
    at /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:256
#7  0x00007ff3b71059ce in QtPrivate::QFunctorSlotObject<KWaylandServer::Display::Private::installSocketNotifier()::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x559425dead50, r=0x559425437640, a=0x7ffe1b7e3e10, ret=0x0) at /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:443
#8  0x00007ff3b5d08e46 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffe1b7e3e10, r=0x559425437640, this=0x559425dead50) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#9  doActivate<false>(QObject*, int, void**) (sender=0x559425dead00, signal_index=3, argv=argv@entry=0x7ffe1b7e3e10) at kernel/qobject.cpp:3886
#10 0x00007ff3b5d021a0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
    (sender=sender@entry=0x559425dead00, m=m@entry=0x7ff3b5fa1a80 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe1b7e3e10) at kernel/qobject.cpp:3946
#11 0x00007ff3b5d0c27f in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) (this=this@entry=0x559425dead00, _t1=..., _t2=<optimized out>, _t3=...)
    at .moc/moc_qsocketnotifier.cpp:178
#12 0x00007ff3b5d0ca7b in QSocketNotifier::event(QEvent*) (this=0x559425dead00, e=0x7ffe1b7e3f20) at kernel/qsocketnotifier.cpp:302
#13 0x00007ff3b679810f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x559425dead00, e=0x7ffe1b7e3f20) at kernel/qapplication.cpp:3682
#14 0x00007ff3b5cd289a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x559425dead00, event=0x7ffe1b7e3f20)
    at ../../include/QtCore/5.15.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#15 0x00007ff3b5d2712b in QEventDispatcherUNIXPrivate::activateSocketNotifiers() (this=0x5594253f1c80) at kernel/qeventdispatcher_unix.cpp:304
#16 0x00007ff3b5d2758b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:511
#17 0x00007ff3b17a71fd in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=<optimized out>, flags=...) at qunixeventdispatcher.cpp:63
#18 0x00007ff3b5cd125b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffe1b7e40b0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#19 0x00007ff3b5cd94d0 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#20 0x000055942401f265 in main(int, char**) (argc=3, argv=0x7ffe1b7e44d8) at /home/nico/kde/src/kwin/main_wayland.cpp:706
Comment 1 John Galt 2020-08-28 19:13:27 UTC
Have been able to recreate this issue for quite awhile now on both stable and git kde/qt packages, on two systems and distros. However, all that's needed for me is to power off a monitor. Worth noting that if auto login is enabled, kwin will continually try to start and crash, using quite a bit of power.
Comment 2 Vlad Zahorodnii 2023-01-19 12:24:18 UTC
Is it still an issue in 5.26 or 5.27?
Comment 3 Bug Janitor Service 2023-02-03 05:02:24 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2023-02-18 03:48:07 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!