Bug 446282 - Plugging in external monitor that is powered off crashes all apps
Summary: Plugging in external monitor that is powered off crashes all apps
Status: RESOLVED DUPLICATE of bug 448102
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.23.3
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-30 15:56 UTC by Anubhav Kini
Modified: 2022-01-11 14:49 UTC (History)
4 users (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 Anubhav Kini 2021-11-30 15:56:26 UTC
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
Comment 1 Nate Graham 2021-12-01 22:52:11 UTC
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
Comment 2 Anubhav Kini 2021-12-02 11:41:52 UTC
(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)
Comment 3 David Edmundson 2022-01-11 14:49:16 UTC

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