SUMMARY On wayland sessions on my laptop, when I connect my external display (before the display is turned on) the session refreshes and all the apps crash. STEPS TO REPRODUCE 1. Log in to a wayland session on laptop 2. Launch any application 3. Plug in an external monitor that is switched off OBSERVED RESULT The laptop monitor refreshes and the opened application has been closed. EXPECTED RESULT All the opened apps remain open after plugging in the external monitor. SOFTWARE/OS VERSIONS Linux/KDE Plasma: NixOS (Linux 5.15.4) (available in About System) KDE Plasma Version: 5.23.3 KDE Frameworks Version: 5.87.0 Qt Version: 5.15.3
Might be Bug 424694, but there's no way to know without getting a backtrace of the kwin_wayland crash. Can you get it and attach it to the bug report? The `coredumpctl` utility may be useful. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl
(gdb) bt #0 0x00007f1236a78763 in KWin::Workspace::clientArea(KWin::clientAreaOption, KWin::AbstractOutput const*, KWin::VirtualDesktop const*) const () from /nix/store/1ly8w05sg55mhqym829cbzcl0fk7s1hr-kwin-5.23.3/lib/libkwin.so.5 #1 0x00007f12368de168 in KWin::WorkspaceWrapper::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /nix/store/1ly8w05sg55mhqym829cbzcl0fk7s1hr-kwin-5.23.3/lib/libkwin.so.5 #2 0x00007f12368eed03 in KWin::DeclarativeScriptWorkspaceWrapper::qt_metacall(QMetaObject::Call, int, void**) () from /nix/store/1ly8w05sg55mhqym829cbzcl0fk7s1hr-kwin-5.23.3/lib/libkwin.so.5 #3 0x00007f1235cb4b2d in ?? () from /nix/store/lb86wsdi1fdsda8c11v4p14p1ihs3h7s-qtdeclarative-5.15.3/lib/libQt5Qml.so.5 #4 0x00007f1235b8f83b in ?? () from /nix/store/lb86wsdi1fdsda8c11v4p14p1ihs3h7s-qtdeclarative-5.15.3/lib/libQt5Qml.so.5 #5 0x00007f1235b9212b in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const () from /nix/store/lb86wsdi1fdsda8c11v4p14p1ihs3h7s-qtdeclarative-5.15.3/lib/libQt5Qml.so.5 #6 0x00007f1235bc340a in QV4::Runtime::CallPropertyLookup::call(QV4::ExecutionEngine*, QV4::Value const&, unsigned int, QV4::Value*, int) () from /nix/store/lb86wsdi1fdsda8c11v4p14p1ihs3h7s-qtdeclarative-5.15.3/lib/libQt5Qml.so.5 #7 0x00007f1220003c51 in ?? () #8 0x0000000000000000 in ?? () (gdb)
*** This bug has been marked as a duplicate of bug 448102 ***