Bug 427496 - KWin crashes when disconnecting the second monitor
Summary: KWin crashes when disconnecting the second monitor
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.19.5
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-10-09 17:03 UTC by ed
Modified: 2021-12-04 04:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ed 2020-10-09 17:03:50 UTC
Application: kwin_x11 (5.19.5)

Qt Version: 5.15.0
Frameworks Version: 5.74.0
Operating System: Linux 5.6.7-050607-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.19

-- Information about the crash:
- What I was doing when the application crashed:
It crashes when I dissconnect the external monitor from the laptop. The monitor is connected via HDMI.

- Custom settings of the application:
Tiling mode is enabled.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f0309a69dbd in std::__atomic_base<int>::load(std::memory_order) const (__m=std::memory_order_relaxed, this=0x64) at /usr/include/c++/9/bits/atomic_base.h:413
#5  QAtomicOps<int>::loadRelaxed<int>(std::atomic<int> const&) (_q_value=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qatomic_cxx11.h:239
#6  QBasicAtomicInteger<int>::loadRelaxed() const (this=0x64) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qbasicatomic.h:107
#7  QtPrivate::RefCount::isShared() const (this=0x64) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrefcount.h:101
#8  QMap<KWin::Group*, KWin::Layer>::detach() (this=0x563feb663ce0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:357
#9  QMap<KWin::Group*, KWin::Layer>::find(KWin::Group* const&) (akey=<optimized out>, this=0x563feb663ce0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:861
#10 KWin::Workspace::constrainedStackingOrder() (this=this@entry=0x563fea81a410) at ./layers.cpp:519
#11 0x00007f0309a6a818 in KWin::Workspace::updateStackingOrder(bool) (propagate_new_clients=false, this=0x563fea81a410) at ./layers.cpp:121
#12 KWin::Workspace::updateStackingOrder(bool) (this=0x563fea81a410, propagate_new_clients=propagate_new_clients@entry=false) at ./layers.cpp:114
#13 0x00007f0309b4948d in KWin::X11Client::setFrameGeometry(QRect const&, KWin::AbstractClient::ForceGeometry_t) (this=0x563fea94dcd0, rect=..., force=KWin::AbstractClient::NormalGeometrySet) at ./workspace.h:801
#14 0x00007f03099b5cd4 in KWin::AbstractClient::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=_o@entry=0x563fea94dcd0, _c=_c@entry=QMetaObject::WriteProperty, _id=_id@entry=27, _a=_a@entry=0x7ffd7b3fab90) at ./obj-x86_64-linux-gnu/kwin_autogen/EWIEGA46WW/moc_abstract_client.cpp:836
#15 0x00007f03099bbecb in KWin::AbstractClient::qt_metacall(QMetaObject::Call, int, void**) (this=this@entry=0x563fea94dcd0, _c=_c@entry=QMetaObject::WriteProperty, _id=27, _a=_a@entry=0x7ffd7b3fab90) at ./obj-x86_64-linux-gnu/kwin_autogen/EWIEGA46WW/moc_abstract_client.cpp:886
#16 0x00007f03099bbf5a in KWin::X11Client::qt_metacall(QMetaObject::Call, int, void**) (this=0x563fea94dcd0, _c=QMetaObject::WriteProperty, _id=<optimized out>, _a=0x7ffd7b3fab90) at ./obj-x86_64-linux-gnu/kwin_autogen/EWIEGA46WW/moc_x11client.cpp:269
#17 0x00007f0306d218a5 in QQmlPropertyData::writeProperty(QObject*, void*, QFlags<QQmlPropertyData::WriteFlag>) const (this=<optimized out>, target=<optimized out>, value=<optimized out>, flags=...) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/qml/qqmlpropertydata_p.h:379
#18 0x00007f0306d1d3c4 in QQmlPropertyPrivate::write(QObject*, QQmlPropertyData const&, QVariant const&, QQmlContextData*, QFlags<QQmlPropertyData::WriteFlag>) (object=<optimized out>, property=..., value=..., context=<optimized out>, flags=...) at qml/qqmlproperty.cpp:1301
#19 0x00007f0306c3a2ac in QV4::QObjectWrapper::setProperty(QV4::ExecutionEngine*, QObject*, QQmlPropertyData*, QV4::Value const&) (engine=0x563fea945940, object=0x563fea94dcd0, property=0x563feb421898, value=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:120
#20 0x00007f0306c3adbe in QV4::QObjectWrapper::setQmlProperty(QV4::ExecutionEngine*, QQmlContextData*, QObject*, QV4::String*, QV4::QObjectWrapper::RevisionMode, QV4::Value const&) (engine=0x563fea945940, qmlContext=<optimized out>, object=0x563fea94dcd0, name=<optimized out>, revisionMode=QV4::QObjectWrapper::IgnoreRevision, value=...) at jsruntime/qv4qobjectwrapper.cpp:435
#21 0x00007f0306c3af37 in QV4::QObjectWrapper::virtualPut(QV4::Managed*, QV4::PropertyKey, QV4::Value const&, QV4::Value*) () at /usr/include/c++/9/bits/atomic_base.h:413
#22 0x00007f0306bb842c in QV4::Object::put(QV4::StringOrSymbol*, QV4::Value const&, QV4::Value*) (receiver=0x7f02e63beb38, v=..., name=0x7f02e63beb40, this=0x7f02e63beb38) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/jsruntime/qv4string_p.h:167
#23 QV4::Lookup::setterFallback(QV4::Lookup*, QV4::ExecutionEngine*, QV4::Value&, QV4::Value const&) (l=<optimized out>, engine=0x563fea945940, object=..., value=...) at jsruntime/qv4lookup.cpp:497
#24 0x00007f0306c667c2 in QV4::Runtime::SetLookupStrict::call(QV4::Function*, QV4::Value const&, int, QV4::Value const&) (f=<optimized out>, base=..., index=<optimized out>, value=...) at jsruntime/qv4runtime.cpp:1128
#25 0x00007f02c004a945 in  ()
#26 0x0000000000000000 in  ()
[Inferior 1 (process 930607) detached]

Possible duplicates by query: bug 427021, bug 425205, bug 422092, bug 421762, bug 421244.

Reported using DrKonqi
Comment 1 kde.org 2021-11-04 21:03:52 UTC
This bug report is quite old. Can you still reproduce this issue with KDE 5.23? If so, can you please submit a new backtrace with debugging information for this version?
Comment 2 Bug Janitor Service 2021-11-19 04:39:08 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 2021-12-04 04:38:55 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!