Bug 421244 - External monitor crashes frequently
Summary: External monitor crashes frequently
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.18.5
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-05-09 20:34 UTC by Brian Price Jr.
Modified: 2021-12-04 04:38 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 Brian Price Jr. 2020-05-09 20:34:31 UTC
Application: kwin_x11 (5.18.5)

Qt Version: 5.14.2
Frameworks Version: 5.69.0
Operating System: Linux 5.3.0-51-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.18

-- Information about the crash:
Closed and reopened laptop with thunderbolt monitor connected, crashed. Sometimes crashes just from unplugging and replugging monitor. Panel is placed in a random place on laptop screen in the middle, background goes black.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fcde3620040 (LWP 11414))]

Thread 5 (Thread 0x7fcda5b89700 (LWP 11428)):
#0  0x00007fcde2f76cf6 in __GI_ppoll (fds=0x7fcda0000cf8, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007fcde01164e1 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fcde0117ca2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fcde00b9d2a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fcddfeca757 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fcddab2efc5 in QQmlThreadPrivate::run() (this=0x5626bd6f6ea0) at qml/ftw/qqmlthread.cpp:155
#6  0x00007fcddfecbc2c in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fcddbf2d6db in start_thread (arg=0x7fcda5b89700) at pthread_create.c:463
#8  0x00007fcde2f8388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fcdaf514700 (LWP 11426)):
#0  0x00007fcddbf339f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5626bcbd5358) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fcddbf339f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x5626bcbd5308, cond=0x5626bcbd5330) at pthread_cond_wait.c:502
#2  0x00007fcddbf339f3 in __pthread_cond_wait (cond=0x5626bcbd5330, mutex=0x5626bcbd5308) at pthread_cond_wait.c:655
#3  0x00007fcdb022eecb in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fcdb022eac7 in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fcddbf2d6db in start_thread (arg=0x7fcdaf514700) at pthread_create.c:463
#6  0x00007fcde2f8388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fcdc1087700 (LWP 11423)):
#0  0x00007fcde2f76cf6 in __GI_ppoll (fds=0x7fcdb8000cf8, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007fcde01164e1 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fcde0117ca2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fcde00b9d2a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fcddfeca757 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fcddab2efc5 in QQmlThreadPrivate::run() (this=0x5626bcb86360) at qml/ftw/qqmlthread.cpp:155
#6  0x00007fcddfecbc2c in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fcddbf2d6db in start_thread (arg=0x7fcdc1087700) at pthread_create.c:463
#8  0x00007fcde2f8388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fcdc3df5700 (LWP 11419)):
#0  0x00007fcde2f76cf6 in __GI_ppoll (fds=0x7fcdbc00f6c8, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007fcde01164e1 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fcde0117ca2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fcde00b9d2a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fcddfeca757 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fcde1dc9555 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007fcddfecbc2c in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fcddbf2d6db in start_thread (arg=0x7fcdc3df5700) at pthread_create.c:463
#8  0x00007fcde2f8388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fcde3620040 (LWP 11414)):
[KCrash Handler]
#6  0x00007fcde2a74a75 in std::__atomic_base<int>::load(std::memory_order) const (__m=std::memory_order_relaxed, this=0x670076) at /usr/include/c++/7/bits/atomic_base.h:396
#7  0x00007fcde2a74a75 in QAtomicOps<int>::loadRelaxed<int>(std::atomic<int> const&) (_q_value=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qatomic_cxx11.h:239
#8  0x00007fcde2a74a75 in QBasicAtomicInteger<int>::loadRelaxed() const (this=0x670076) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qbasicatomic.h:107
#9  0x00007fcde2a74a75 in QtPrivate::RefCount::isShared() const (this=0x670076) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrefcount.h:101
#10 0x00007fcde2a74a75 in QMap<KWin::Group*, KWin::Layer>::detach() (this=0x5626bd6bf2f0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:357
#11 0x00007fcde2a74a75 in QMap<KWin::Group*, KWin::Layer>::find(KWin::Group* const&) (akey=<optimized out>, this=0x5626bd6bf2f0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:877
#12 0x00007fcde2a74a75 in KWin::Workspace::constrainedStackingOrder() (this=this@entry=0x5626bcb11810) at ./layers.cpp:518
#13 0x00007fcde2a75568 in KWin::Workspace::updateStackingOrder(bool) (this=0x5626bcb11810, propagate_new_clients=propagate_new_clients@entry=false) at ./layers.cpp:122
#14 0x00007fcde2b46aec in KWin::X11Client::setFrameGeometry(int, int, int, int, KWin::AbstractClient::ForceGeometry_t) (this=0x5626bcc3fc40, x=<optimized out>, y=<optimized out>, w=<optimized out>, h=<optimized out>, force=KWin::AbstractClient::NormalGeometrySet) at ./x11client.cpp:4221
#15 0x00007fcde2b9e909 in KWin::AbstractClient::setFrameGeometry(QRect const&, KWin::AbstractClient::ForceGeometry_t) (force=KWin::AbstractClient::NormalGeometrySet, rect=..., this=0x5626bcc3fc40) at ./obj-x86_64-linux-gnu/kwin_autogen/EWIEGA46WW/../../../abstract_client.h:1335
#16 0x00007fcde2b9e909 in KWin::AbstractClient::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=_o@entry=0x5626bcc3fc40, _c=_c@entry=QMetaObject::WriteProperty, _id=_id@entry=27, _a=_a@entry=0x7ffe59a74290) at ./obj-x86_64-linux-gnu/kwin_autogen/EWIEGA46WW/moc_abstract_client.cpp:812
#17 0x00007fcde2ba44c3 in KWin::AbstractClient::qt_metacall(QMetaObject::Call, int, void**) (this=this@entry=0x5626bcc3fc40, _c=_c@entry=QMetaObject::WriteProperty, _id=27, _a=_a@entry=0x7ffe59a74290) at ./obj-x86_64-linux-gnu/kwin_autogen/EWIEGA46WW/moc_abstract_client.cpp:861
#18 0x00007fcde2ba4535 in KWin::X11Client::qt_metacall(QMetaObject::Call, int, void**) (this=0x5626bcc3fc40, _c=QMetaObject::WriteProperty, _id=<optimized out>, _a=0x7ffe59a74290) at ./obj-x86_64-linux-gnu/kwin_autogen/EWIEGA46WW/moc_x11client.cpp:278
#19 0x00007fcddaa8a2c2 in QQmlPropertyData::writeProperty(QObject*, void*, QFlags<QQmlPropertyData::WriteFlag>) const (this=this@entry=0x5626bd9ecda8, target=target@entry=0x5626bcc3fc40, value=<optimized out>, flags=...) at ../../include/QtQml/5.14.2/QtQml/private/../../../../../src/qml/qml/qqmlpropertydata_p.h:290
#20 0x00007fcddaa888c7 in QQmlPropertyPrivate::write(QObject*, QQmlPropertyData const&, QVariant const&, QQmlContextData*, QFlags<QQmlPropertyData::WriteFlag>) (object=0x5626bcc3fc40, property=..., value=..., context=0x5626bd8fd310, flags=...) at qml/qqmlproperty.cpp:1301
#21 0x00007fcdda9bcc33 in QV4::QObjectWrapper::setProperty(QV4::ExecutionEngine*, QObject*, QQmlPropertyData*, QV4::Value const&) (engine=engine@entry=0x5626bcc368e0, object=object@entry=0x5626bcc3fc40, property=0x5626bd9ecda8, value=...) at jsruntime/qv4qobjectwrapper.cpp:565
#22 0x00007fcdda9bdb4e in QV4::QObjectWrapper::setQmlProperty(QV4::ExecutionEngine*, QQmlContextData*, QObject*, QV4::String*, QV4::QObjectWrapper::RevisionMode, QV4::Value const&) (engine=0x5626bcc368e0, qmlContext=<optimized out>, object=0x5626bcc3fc40, name=<optimized out>, revisionMode=QV4::QObjectWrapper::IgnoreRevision, value=...) at jsruntime/qv4qobjectwrapper.cpp:435
#23 0x00007fcdda9bdc9b in QV4::QObjectWrapper::virtualPut(QV4::Managed*, QV4::PropertyKey, QV4::Value const&, QV4::Value*) (m=0x7fcda4f4ab58, id=..., value=..., receiver=0x7fcda4f4ab58) at jsruntime/qv4qobjectwrapper.cpp:721
#24 0x00007fcdda93eaa8 in QV4::Object::put(QV4::StringOrSymbol*, QV4::Value const&, QV4::Value*) (receiver=0x7fcda4f4ab58, v=..., name=0x7fcda4f4ab60, this=0x7fcda4f4ab60) at jsruntime/qv4object_p.h:318
#25 0x00007fcdda93eaa8 in QV4::Lookup::setterFallback(QV4::Lookup*, QV4::ExecutionEngine*, QV4::Value&, QV4::Value const&) (l=<optimized out>, engine=0x5626bcc368e0, object=..., value=...) at jsruntime/qv4lookup.cpp:497
#26 0x00007fcdda9e9d0a 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
#27 0x00007fcdac1b5211 in  ()
#28 0x0000000000000000 in  ()

The reporter indicates this bug may be a duplicate of or related to bug 412178.

Possible duplicates by query: bug 420495, bug 417807, bug 417542, bug 414147, bug 413706.

Reported using DrKonqi
Comment 1 kde.org 2021-11-04 20:34:22 UTC
This bug report is quite old. Can you still reproduce this issue with KDE 5.23? If so, can you please provide a new backtrace?
Comment 2 Bug Janitor Service 2021-11-19 04:39:00 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:47 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!