Bug 371272

Summary: Crash while loading plasma
Product: [Plasma] plasmashell Reporter: Dik Takken <kde>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: bhush94, justin.zobel, notuxius, plasma-bugs, scott
Priority: NOR Keywords: drkonqi
Version: 5.8.0   
Target Milestone: 1.0   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dik Takken 2016-10-20 08:22:19 UTC
Application: plasmashell (5.8.1)

Qt Version: 5.7.0
Frameworks Version: 5.26.0
Operating System: Linux 4.7.6-1-default x86_64
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:

Nothing yet, plasma was loading when it crashed

- Unusual behavior I noticed:

I just upgraded from Plasma 5.7 to 5.8 and the display configuration was messed up: The plasma widgets (panels) apparently moved to the laptop display, which was disabled (lid closed). The external, primary display was empty, as if the two display configs were swapped. By enabling the laptop display and switching the primary display hence and forth, the panels moved back to the correct display. But, the external display froze in the process. Windows could not be interacted with or moved at all. Logging out and loading KDE again appeared to restore everything back to normal, as it was on Plasma 5.7, but resulted in a crash while loading.

- Custom settings of the application:

Docked laptop with its display disabled, external display as primary.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f22f7c638c0 (LWP 4495))]

Thread 8 (Thread 0x7f222b8ae700 (LWP 4940)):
#0  0x00007fff24966969 in ?? ()
#1  0x00007fff24966c41 in clock_gettime ()
#2  0x00007f22f13282a6 in clock_gettime () from /lib64/libc.so.6
#3  0x00007f22f1ab36e1 in qt_clock_gettime (ts=0x7f222b8ada20, clock=<optimized out>) at tools/qelapsedtimer_unix.cpp:109
#4  do_gettime (frac=<synthetic pointer>, sec=<synthetic pointer>) at tools/qelapsedtimer_unix.cpp:164
#5  qt_gettime () at tools/qelapsedtimer_unix.cpp:173
#6  0x00007f22f1c2f419 in QTimerInfoList::updateCurrentTime (this=this@entry=0x7f2224002cd0) at kernel/qtimerinfo_unix.cpp:91
#7  0x00007f22f1c2f9c5 in QTimerInfoList::timerWait (this=0x7f2224002cd0, tm=...) at kernel/qtimerinfo_unix.cpp:388
#8  0x00007f22f1c30d6e in timerSourcePrepareHelper (timeout=0x7f222b8adaf4, src=<optimized out>) at kernel/qeventdispatcher_glib.cpp:132
#9  timerSourcePrepare (source=<optimized out>, timeout=0x7f222b8adaf4) at kernel/qeventdispatcher_glib.cpp:165
#10 0x00007f22ec3afd79 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#11 0x00007f22ec3b079b in ?? () from /usr/lib64/libglib-2.0.so.0
#12 0x00007f22ec3b098c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#13 0x00007f22f1c3179b in QEventDispatcherGlib::processEvents (this=0x7f22240008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#14 0x00007f22f1bdb1ea in QEventLoop::exec (this=this@entry=0x7f222b8adcc0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210
#15 0x00007f22f1a098b3 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
#16 0x00007f222ddd8df7 in KCupsConnection::run() () from /usr/lib64/libkcupslib.so
#17 0x00007f22f1a0e558 in QThreadPrivate::start (arg=0x45661e0) at thread/qthread_unix.cpp:344
#18 0x00007f22f0b14454 in start_thread () from /lib64/libpthread.so.0
#19 0x00007f22f131b3ff in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f223f309700 (LWP 4774)):
#0  0x00007fff24966969 in ?? ()
#1  0x00007fff24966c41 in clock_gettime ()
#2  0x00007f22f13282a6 in clock_gettime () from /lib64/libc.so.6
#3  0x00007f22f1ab36e1 in qt_clock_gettime (ts=0x7f223f3089f0, clock=<optimized out>) at tools/qelapsedtimer_unix.cpp:109
#4  do_gettime (frac=<synthetic pointer>, sec=<synthetic pointer>) at tools/qelapsedtimer_unix.cpp:164
#5  qt_gettime () at tools/qelapsedtimer_unix.cpp:173
#6  0x00007f22f1c2f419 in QTimerInfoList::updateCurrentTime (this=this@entry=0x7f2238002ed0) at kernel/qtimerinfo_unix.cpp:91
#7  0x00007f22f1c2f9c5 in QTimerInfoList::timerWait (this=0x7f2238002ed0, tm=...) at kernel/qtimerinfo_unix.cpp:388
#8  0x00007f22f1c30d6e in timerSourcePrepareHelper (timeout=0x7f223f308ac4, src=<optimized out>) at kernel/qeventdispatcher_glib.cpp:132
#9  timerSourcePrepare (source=<optimized out>, timeout=0x7f223f308ac4) at kernel/qeventdispatcher_glib.cpp:165
#10 0x00007f22ec3afd79 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#11 0x00007f22ec3b079b in ?? () from /usr/lib64/libglib-2.0.so.0
#12 0x00007f22ec3b098c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#13 0x00007f22f1c3179b in QEventDispatcherGlib::processEvents (this=0x7f22380008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#14 0x00007f22f1bdb1ea in QEventLoop::exec (this=this@entry=0x7f223f308c90, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210
#15 0x00007f22f1a098b3 in QThread::exec (this=this@entry=0x1b02f10) at thread/qthread.cpp:507
#16 0x00007f22f58c8646 in QQuickPixmapReader::run (this=0x1b02f10) at /usr/src/debug/qtdeclarative-opensource-src-5.7.0/src/quick/util/qquickpixmapcache.cpp:823
#17 0x00007f22f1a0e558 in QThreadPrivate::start (arg=0x1b02f10) at thread/qthread_unix.cpp:344
#18 0x00007f22f0b14454 in start_thread () from /lib64/libpthread.so.0
#19 0x00007f22f131b3ff in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f22d1f5b700 (LWP 4663)):
#0  0x00007f22f0b1a10f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f22f733f834 in ?? () from /usr/lib64/libQt5Script.so.5
#2  0x00007f22f733f879 in ?? () from /usr/lib64/libQt5Script.so.5
#3  0x00007f22f0b14454 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f22f131b3ff in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f22d3bbf700 (LWP 4587)):
#0  0x00007f22f1a05709 in std::__atomic_base<QMutexData*>::compare_exchange_strong (__m2=<optimized out>, __m1=std::memory_order_acquire, __p2=<optimized out>, __p1=@0x7f22d3bbea78: 0x0, this=0x1785050) at /usr/include/c++/6/bits/atomic_base.h:752
#1  std::atomic<QMutexData*>::compare_exchange_strong (__m=std::memory_order_acquire, __p2=<optimized out>, __p1=@0x7f22d3bbea78: 0x0, this=0x1785050) at /usr/include/c++/6/atomic:475
#2  QAtomicOps<QMutexData*>::testAndSetAcquire<QMutexData*> (currentValue=<synthetic pointer>, newValue=<optimized out>, expectedValue=0x0, _q_value=...) at ../../src/corelib/arch/qatomic_cxx11.h:165
#3  QBasicAtomicPointer<QMutexData>::testAndSetAcquire (currentValue=<synthetic pointer>, newValue=<optimized out>, expectedValue=0x0, this=0x1785050) at ../../src/corelib/thread/qbasicatomic.h:259
#4  QBasicMutex::fastTryLock (current=<synthetic pointer>, this=0x1785050) at thread/qmutex.h:89
#5  QMutex::lock (this=this@entry=0x1785050) at thread/qmutex.cpp:225
#6  0x00007f22f1c30f0f in QMutexLocker::QMutexLocker (m=0x1785050, this=<synthetic pointer>) at ../../src/corelib/thread/qmutex.h:137
#7  QThreadData::canWaitLocked (this=0x1785020) at ../../src/corelib/thread/qthread_p.h:253
#8  postEventSourcePrepare (s=0x7f22c80012d0, timeout=0x7f22d3bbeb14) at kernel/qeventdispatcher_glib.cpp:259
#9  0x00007f22ec3afd79 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f22ec3b079b in ?? () from /usr/lib64/libglib-2.0.so.0
#11 0x00007f22ec3b098c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#12 0x00007f22f1c3179b in QEventDispatcherGlib::processEvents (this=0x7f22c80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#13 0x00007f22f1bdb1ea in QEventLoop::exec (this=this@entry=0x7f22d3bbece0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210
#14 0x00007f22f1a098b3 in QThread::exec (this=this@entry=0x1785970) at thread/qthread.cpp:507
#15 0x00007f22f4d39a75 in QQmlThreadPrivate::run (this=0x1785970) at /usr/src/debug/qtdeclarative-opensource-src-5.7.0/src/qml/qml/ftw/qqmlthread.cpp:147
#16 0x00007f22f1a0e558 in QThreadPrivate::start (arg=0x1785970) at thread/qthread_unix.cpp:344
#17 0x00007f22f0b14454 in start_thread () from /lib64/libpthread.so.0
#18 0x00007f22f131b3ff in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f22d95b4700 (LWP 4529)):
#0  0x00007f22ec3f5ec4 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f22ec3b0079 in g_main_context_query () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f22ec3b07e8 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f22ec3b098c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f22f1c3179b in QEventDispatcherGlib::processEvents (this=0x7f22cc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f22f1bdb1ea in QEventLoop::exec (this=this@entry=0x7f22d95b3ce0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210
#6  0x00007f22f1a098b3 in QThread::exec (this=this@entry=0x172aaa0) at thread/qthread.cpp:507
#7  0x00007f22f4d39a75 in QQmlThreadPrivate::run (this=0x172aaa0) at /usr/src/debug/qtdeclarative-opensource-src-5.7.0/src/qml/qml/ftw/qqmlthread.cpp:147
#8  0x00007f22f1a0e558 in QThreadPrivate::start (arg=0x172aaa0) at thread/qthread_unix.cpp:344
#9  0x00007f22f0b14454 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f22f131b3ff in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f22dbfff700 (LWP 4509)):
#0  0x00007f22f13126ed in poll () from /lib64/libc.so.6
#1  0x00007f22f62853e0 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f22f6287179 in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f22e28bf5f9 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f22f1a0e558 in QThreadPrivate::start (arg=0x165dd80) at thread/qthread_unix.cpp:344
#5  0x00007f22f0b14454 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f22f131b3ff in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f22e4e34700 (LWP 4508)):
#0  0x00007f22ec3f5ea9 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f22ec3afd85 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f22ec3b079b in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f22ec3b098c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f22f1c3179b in QEventDispatcherGlib::processEvents (this=0x7f22dc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f22f1bdb1ea in QEventLoop::exec (this=this@entry=0x7f22e4e33cd0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210
#6  0x00007f22f1a098b3 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
#7  0x00007f22f278b3e5 in ?? () from /usr/lib64/libQt5DBus.so.5
#8  0x00007f22f1a0e558 in QThreadPrivate::start (arg=0x7f22f29fcd20) at thread/qthread_unix.cpp:344
#9  0x00007f22f0b14454 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f22f131b3ff in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f22f7c638c0 (LWP 4495)):
[KCrash Handler]
#6  QQuickItemPrivate::itemToParentTransform (this=this@entry=0x19cc710, t=...) at /usr/src/debug/qtdeclarative-opensource-src-5.7.0/src/quick/items/qquickitem.cpp:3056
#7  0x00007f22f59489cc in QQuickItemPrivate::itemToWindowTransform (this=this@entry=0x19cc710) at /usr/src/debug/qtdeclarative-opensource-src-5.7.0/src/quick/items/qquickitem.cpp:3044
#8  0x00007f22f595e722 in QQuickWindowPrivate::updateFocusItemTransform (this=this@entry=0x1af5710) at /usr/src/debug/qtdeclarative-opensource-src-5.7.0/src/quick/items/qquickwindow.cpp:99
#9  0x00007f22f596647d in QQuickWindowPrivate::setFocusInScope (this=0x1af5710, scope=scope@entry=0x0, item=item@entry=0x1af5a10, reason=reason@entry=Qt::ActiveWindowFocusReason, options=..., options@entry=...) at /usr/src/debug/qtdeclarative-opensource-src-5.7.0/src/quick/items/qquickwindow.cpp:906
#10 0x00007f22f594b1d8 in QQuickItem::setFocus (this=0x1af5a10, focus=focus@entry=true, reason=Qt::ActiveWindowFocusReason) at /usr/src/debug/qtdeclarative-opensource-src-5.7.0/src/quick/items/qquickitem.cpp:6833
#11 0x00007f22f595e7c0 in QQuickWindow::focusInEvent (this=<optimized out>, ev=<optimized out>) at /usr/src/debug/qtdeclarative-opensource-src-5.7.0/src/quick/items/qquickwindow.cpp:256
#12 0x00007f22f213e593 in QWindow::event(QEvent*) () from /usr/lib64/libQt5Gui.so.5
#13 0x00007f22f596c6c3 in QQuickWindow::event (this=0x1a81ff0, e=0x7fff2486d240) at /usr/src/debug/qtdeclarative-opensource-src-5.7.0/src/quick/items/qquickwindow.cpp:1518
#14 0x00007f22f2b5f92c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x1a81ff0, e=0x7fff2486d240) at kernel/qapplication.cpp:3799
#15 0x00007f22f2b670e1 in QApplication::notify (this=0x7fff2486d690, receiver=0x1a81ff0, e=0x7fff2486d240) at kernel/qapplication.cpp:3556
#16 0x00007f22f1bdd200 in QCoreApplication::notifyInternal2 (receiver=0x1a81ff0, event=0x7fff2486d240) at kernel/qcoreapplication.cpp:988
#17 0x00007f22f2134199 in QGuiApplicationPrivate::processActivatedEvent(QWindowSystemInterfacePrivate::ActivatedWindowEvent*) () from /usr/lib64/libQt5Gui.so.5
#18 0x00007f22f213451d in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5
#19 0x00007f22f211225b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#20 0x00007f22e28f5970 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#21 0x00007f22ec3b0677 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#22 0x00007f22ec3b08e0 in ?? () from /usr/lib64/libglib-2.0.so.0
#23 0x00007f22ec3b098c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#24 0x00007f22f1c3177f in QEventDispatcherGlib::processEvents (this=0x169c640, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#25 0x00007f22f1bdb1ea in QEventLoop::exec (this=this@entry=0x7fff2486d520, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210
#26 0x00007f22f1be395c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261
#27 0x000000000041e922 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace-5.8.1/shell/main.cpp:166

Reported using DrKonqi
Comment 1 Alexander Mentyu 2017-08-24 09:05:02 UTC
Can't reproduce/no crash for me in:

Distribution: KDE neon Developer Edition Unstable Branches
KDE Plasma Version: 5.10.90
KDE Frameworks Version: 5.37.0
Qt Version: 5.9.1
Kernel Version: 4.10.0-32-generic
Comment 2 Marco Martin 2018-04-03 11:04:57 UTC
*** Bug 391926 has been marked as a duplicate of this bug. ***
Comment 3 Justin Zobel 2020-12-04 04:43:57 UTC
Thank you for the report, Dik.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 4 Dik Takken 2020-12-04 12:59:31 UTC
I have not seen this crash in a long time, I consider it resolved. Thanks for reminding me.