Bug 459502 - when i disconnect and reconnect external monitor kwin crash
Summary: when i disconnect and reconnect external monitor kwin crash
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.25.5
Platform: Manjaro Linux
: NOR crash
Target Milestone: 5
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-21 22:51 UTC by Ehsan Tork
Modified: 2022-12-05 23:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:
journalehsan: Wayland+
journalehsan: X11-
journalehsan: Catalyst-
journalehsan: dpi+
journalehsan: Gallium3D-
journalehsan: Intel+
journalehsan: Mesa+
journalehsan: nouveau-
journalehsan: NVIDIA-
journalehsan: r300g-
journalehsan: r600g-
journalehsan: Decision-Required-
journalehsan: Triaged-
journalehsan: ReviewRequest-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ehsan Tork 2022-09-21 22:51:47 UTC
SUMMARY

When I disconnect monitor and then connect external monitor via HDMI and resize or move any window, suddenly all application closed and kwin crash with akonadi server crash on me. its so annoying because i cant logout i only can kill all apps from current session with killall --user username .

STEPS TO REPRODUCE
1. disconnect monitor in wayland with different dpi scale
2. connect monitor again with hdmi or vga
3. move or resize window in second (external monitor) 

OBSERVED RESULT
Crash kwin, all apllication closed and ther's no way to logout,reboot  other than that everything work perfect after that and i must rerun evey apps like latte-dock and conky , .... but for logout i must killall all apps in current user 

EXPECTED RESULT
I expect everything work normall :) 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro/Arch KDE plasma 5.25.5

KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
Application: Akonadi Server (akonadiserver), signal: Segmentation fault

[KCrash Handler]
#4  0x00005638aa051563 in ?? ()
#5  0x00007fc1a07ba2f0 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#6  0x00007fc1a079695c in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#7  0x00007fc1a0797483 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#8  0x00007fc1a07dd478 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007fc19eb38b2b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#10 0x00007fc19eb8ee79 in ?? () from /usr/lib/libglib-2.0.so.0
#11 0x00007fc19eb36252 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#12 0x00007fc1a07e125c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#13 0x00007fc1a078f11c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#14 0x00007fc1a0799c49 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#15 0x00005638aa046edd in ?? ()
#16 0x00007fc1a00ee2d0 in ?? () from /usr/lib/libc.so.6
#17 0x00007fc1a00ee38a in __libc_start_main () from /usr/lib/libc.so.6
#18 0x00005638aa049c85 in ?? ()
[Inferior 1 (process 5803) detached]

------------------

Application: Latte Dock (latte-dock), signal: Segmentation fault

[KCrash Handler]
#4  0x00007ffff7e4462d in KWayland::Client::PlasmaWindowManagement::windows() const () from /usr/lib/libKF5WaylandClient.so.5
#5  0x0000555555758ffa in Latte::WindowSystem::WaylandInterface::winIdFor (this=0x555555b0cee0, appId=..., title=...) at /home/ehsant/Codes/GitHub/Espresso-dock/app/wm/waylandinterface.cpp:607
#6  0x000055555570ad69 in Latte::ViewPart::Positioner::updateWaylandId (this=0x555555ca49c0) at /home/ehsant/Codes/GitHub/Espresso-dock/app/view/positioner.cpp:236
#7  0x0000555555715264 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (Latte::ViewPart::Positioner::*)()>::call(void (Latte::ViewPart::Positioner::*)(), Latte::ViewPart::Positioner*, void**) (f=(void (Latte::ViewPart::Positioner::*)(Latte::ViewPart::Positioner * const)) 0x55555570acaa <Latte::ViewPart::Positioner::updateWaylandId()>, o=0x555555ca49c0, arg=0x7fffffffc0d0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:152
#8  0x0000555555715008 in QtPrivate::FunctionPointer<void (Latte::ViewPart::Positioner::*)()>::call<QtPrivate::List<>, void>(void (Latte::ViewPart::Positioner::*)(), Latte::ViewPart::Positioner*, void**) (f=(void (Latte::ViewPart::Positioner::*)(Latte::ViewPart::Positioner * const)) 0x55555570acaa <Latte::ViewPart::Positioner::updateWaylandId()>, o=0x555555ca49c0, arg=0x7fffffffc0d0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:185
#9  0x0000555555714c6f in QtPrivate::QSlotObject<void (Latte::ViewPart::Positioner::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x5555563cdf80, r=0x555555ca49c0, a=0x7fffffffc0d0, ret=0x0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:418
#10 0x00007ffff537e0d1 in ?? () from /usr/lib/libQt5Core.so.5
#11 0x00007ffff58ae24a in QWindow::windowTitleChanged(QString const&) () from /usr/lib/libQt5Gui.so.5
#12 0x00005555557175da in operator() (__closure=0x555555ca5b20) at /home/ehsant/Codes/GitHub/Espresso-dock/app/view/view.cpp:133
#13 0x00005555557226c7 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Latte::View::View(Plasma::Corona*, QScreen*, bool)::<lambda()> >::call(struct {...} &, void **) (f=..., arg=0x7fffffffc320) at /usr/include/qt/QtCore/qobjectdefs_impl.h:146
#14 0x000055555572229d in QtPrivate::Functor<Latte::View::View(Plasma::Corona*, QScreen*, bool)::<lambda()>, 0>::call<QtPrivate::List<>, void>(struct {...} &, void *, void **) (f=..., arg=0x7fffffffc320) at /usr/include/qt/QtCore/qobjectdefs_impl.h:256
#15 0x000055555572183a in QtPrivate::QFunctorSlotObject<Latte::View::View(Plasma::Corona*, QScreen*, bool)::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x555555ca5b10, r=0x555555cb84e0, a=0x7fffffffc320, ret=0x0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:443
#16 0x00007ffff537e0d1 in ?? () from /usr/lib/libQt5Core.so.5
#17 0x00007ffff7edac1c in ?? () from /usr/lib/libKF5PlasmaQuick.so.5
#18 0x0000555555610adb in Latte::Layout::GenericLayout::addView (this=0x555555c16270, containment=0x555555b778d0) at /home/ehsant/Codes/GitHub/Espresso-dock/app/layout/genericlayout.cpp:938
#19 0x000055555560f679 in Latte::Layout::GenericLayout::addContainment (this=0x555555c16270, containment=0x555555b778d0) at /home/ehsant/Codes/GitHub/Espresso-dock/app/layout/genericlayout.cpp:742
#20 0x00005555556115e9 in Latte::Layout::GenericLayout::initContainments (this=0x555555c16270) at /home/ehsant/Codes/GitHub/Espresso-dock/app/layout/genericlayout.cpp:1028
#21 0x000055555563ef81 in operator() (__closure=0x555555b84ca0) at /home/ehsant/Codes/GitHub/Espresso-dock/app/layouts/synchronizer.cpp:695
#22 0x0000555555642cfb in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Latte::Layouts::Synchronizer::initSingleMode(QString)::<lambda()> >::call(struct {...} &, void **) (f=..., arg=0x7fffffffc790) at /usr/include/qt/QtCore/qobjectdefs_impl.h:146
#23 0x0000555555642c21 in QtPrivate::Functor<Latte::Layouts::Synchronizer::initSingleMode(QString)::<lambda()>, 0>::call<QtPrivate::List<>, void>(struct {...} &, void *, void **) (f=..., arg=0x7fffffffc790) at /usr/include/qt/QtCore/qobjectdefs_impl.h:256
#24 0x00005555556429e2 in QtPrivate::QFunctorSlotObject<Latte::Layouts::Synchronizer::initSingleMode(QString)::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x555555b84c90, r=0x0, a=0x7fffffffc790, ret=0x0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:443
#25 0x00007ffff53809e7 in ?? () from /usr/lib/libQt5Core.so.5
#26 0x00007ffff5371296 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#27 0x00007ffff609bb3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#28 0x00007ffff534d978 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#29 0x00007ffff5397aa3 in QTimerInfoList::activateTimers() () from /usr/lib/libQt5Core.so.5
#30 0x00007ffff539809a in ?? () from /usr/lib/libQt5Core.so.5
#31 0x00007ffff38adb2b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0x00007ffff3903e79 in ?? () from /usr/lib/libglib-2.0.so.0
#33 0x00007ffff38ab252 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#34 0x00007ffff539825c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#35 0x00007ffff534611c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#36 0x00007ffff5350c49 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#37 0x00005555555ea83d in main (argc=2, argv=0x7fffffffd1b8) at /home/ehsant/Codes/GitHub/Espresso-dock/app/main.cpp:436
[Inferior 1 (process 105410) detached]
Comment 1 Vlad Zahorodnii 2022-09-22 09:12:49 UTC
Can you attach the backtrace of kwin's crash?
Comment 2 Bug Janitor Service 2022-10-07 04:51:31 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 3 Bug Janitor Service 2022-10-22 05:01:22 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!