Bug 451972 - Kwin x11 crash on disconnect external HDMI monitor from laptop Lenovo L15 gen 2 AMD Ryzen 5600U
Summary: Kwin x11 crash on disconnect external HDMI monitor from laptop Lenovo L15 gen...
Status: RESOLVED DUPLICATE of bug 448064
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.24.3
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-03-27 21:45 UTC by Ondrej Malek
Modified: 2022-04-13 09:50 UTC (History)
1 user (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 Ondrej Malek 2022-03-27 21:45:10 UTC
Application: kwin_x11 (5.24.3)

Qt Version: 5.15.2
Frameworks Version: 5.92.0
Operating System: Linux 5.16.15-1-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.24.3 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
disconnected laptop from monitor. Output to external monitor. 

- Unusual behavior I noticed:


- Custom settings of the application:
I have some old setup of kde copied from older machine.
Monitor 4K
Laptop 1080

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  0x00007fb32f84d59c in KWin::Toplevel::isOnOutput (this=0x55d521768300, output=0x55d5232b29d0) at /usr/src/debug/kwin5-5.24.3-1.2.x86_64/src/toplevel.cpp:423
#7  0x00007fb32f885b29 in KWin::Workspace::activeOutput (this=0x55d5214b7de0) at /usr/src/debug/kwin5-5.24.3-1.2.x86_64/src/workspace.cpp:2419
#8  0x00007fb32f74c6df in KWin::TabBox::SwitcherItem::screenGeometry (this=<optimized out>) at /usr/src/debug/kwin5-5.24.3-1.2.x86_64/src/tabbox/switcheritem.cpp:74
#9  KWin::TabBox::SwitcherItem::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kwin5-5.24.3-1.2.x86_64/build/src/kwin_autogen/WF44ZIICEP/moc_switcheritem.cpp:210
#10 0x00007fb32f74c7f3 in KWin::TabBox::SwitcherItem::qt_metacall (this=0x55d5219e2f30, _c=QMetaObject::ReadProperty, _id=1, _a=0x7ffe25720fc0) at /usr/src/debug/kwin5-5.24.3-1.2.x86_64/build/src/kwin_autogen/WF44ZIICEP/moc_switcheritem.cpp:273
#11 0x00007fb32eb8e98a in QV4::QQmlValueTypeReference::readReferenceValue (this=0x7fb2c9bbd578) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-1.2.x86_64/src/qml/qml/qqmlvaluetypewrapper.cpp:170
#12 0x00007fb32eb8f9a2 in QV4::QQmlValueTypeReference::readReferenceValue (this=0x7fb2c9bbd578) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-1.2.x86_64/src/qml/qml/qqmlvaluetypewrapper.cpp:127
#13 QV4::QQmlValueTypeWrapper::lookupGetter (lookup=0x55d52325baf0, engine=0x55d5217c1780, object=...) at /usr/src/debug/libqt5-qtdeclarative-5.15.2+kde43-1.2.x86_64/src/qml/qml/qqmlvaluetypewrapper.cpp:485
#14 0x00007fb308178a75 in ?? ()
#15 0x0000000000000000 in ?? ()
[Inferior 1 (process 11022) detached]

Possible duplicates by query: bug 450954, bug 450924, bug 450337, bug 448064.

Reported using DrKonqi
Comment 1 Ondrej Malek 2022-03-28 11:04:17 UTC
This doesn't happen in new user account with default settings.
Comment 2 Nicolas Fella 2022-03-28 11:42:49 UTC

*** This bug has been marked as a duplicate of bug 448064 ***
Comment 3 Ondrej Malek 2022-04-13 09:50:43 UTC
I solved this by erasing KDE and Plasma .config files. I had this config from Plasma 5.18. Tested on 5.24.4.