Bug 378408

Summary: Plasma crash with monitor that quickly turns on and off
Product: [Plasma] plasmashell Reporter: agrar.pfurtz
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED DUPLICATE    
Severity: crash CC: bhush94, kde, notmart, plasma-bugs
Priority: NOR Keywords: drkonqi
Version: 5.8.6   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description agrar.pfurtz 2017-04-03 17:45:02 UTC
Application: plasmashell (5.8.6)

Qt Version: 5.7.1
Frameworks Version: 5.32.0
Operating System: Linux 4.10.6-200.fc25.x86_64 x86_64
Distribution: "Fedora release 25 (Twenty Five)"

-- Information about the crash:
- What I was doing when the application crashed:
I activated a secondary monitor by changing my display settings through the settings menu (bug is reproducable with xrandr as well). That causes my monitor to scan through each input. However whenever my Acer monitor finds an input with a signal, it is always recognised by the operating system as quickly being unplugged and plugged in. Other DEs don't mind. They change the primary monitor for a short period of time and then switch back to normal. But plasma doesn't like the switching.

The crash can be reproduced every time.

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

Thread 8 (Thread 0x7f10bdd90700 (LWP 3351)):
#0  0x00007f1188a7a01d in poll () at /lib64/libc.so.6
#1  0x00007f11815d8166 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f11815d827c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f11898806eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007f118983168a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007f118968e5e3 in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007f10bf64f2c7 in KCupsConnection::run() () at /lib64/libkcupslib.so
#7  0x00007f11896929ca in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007f1187dce6ca in start_thread () at /lib64/libpthread.so.0
#9  0x00007f1188a85f7f in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7f10d05e8700 (LWP 3162)):
#0  0x00007f1188a7a01d in poll () at /lib64/libc.so.6
#1  0x00007f11815d8166 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f11815d827c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f11898806eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007f118983168a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007f118968e5e3 in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007f118d2918b6 in QQuickPixmapReader::run() () at /lib64/libQt5Quick.so.5
#7  0x00007f11896929ca in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007f1187dce6ca in start_thread () at /lib64/libpthread.so.0
#9  0x00007f1188a85f7f in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f115ada7700 (LWP 3108)):
#0  0x00007f1187dd4460 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f118f3522f4 in QTWTF::TCMalloc_PageHeap::scavengerThread() () at /lib64/libQt5Script.so.5
#2  0x00007f118f352339 in  () at /lib64/libQt5Script.so.5
#3  0x00007f1187dce6ca in start_thread () at /lib64/libpthread.so.0
#4  0x00007f1188a85f7f in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f1168d5d700 (LWP 3102)):
#0  0x00007f118987f1b3 in QTimerInfoList::timerWait(timespec&) () at /lib64/libQt5Core.so.5
#1  0x00007f118988038c in timerSourcePrepareHelper(GTimerSource*, int*) () at /lib64/libQt5Core.so.5
#2  0x00007f1189880455 in timerSourcePrepare(_GSource*, int*) () at /lib64/libQt5Core.so.5
#3  0x00007f11815d769d in g_main_context_prepare () at /lib64/libglib-2.0.so.0
#4  0x00007f11815d808b in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#5  0x00007f11815d827c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#6  0x00007f11898806eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#7  0x00007f118983168a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#8  0x00007f118968e5e3 in QThread::exec() () at /lib64/libQt5Core.so.5
#9  0x00007f118c9064e5 in QQmlThreadPrivate::run() () at /lib64/libQt5Qml.so.5
#10 0x00007f11896929ca in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#11 0x00007f1187dce6ca in start_thread () at /lib64/libpthread.so.0
#12 0x00007f1188a85f7f in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f116a5ba700 (LWP 3024)):
#0  0x00007ffe7638e949 in  ()
#1  0x00007ffe7638ebd9 in clock_gettime ()
#2  0x00007f1188a94726 in clock_gettime () at /lib64/libc.so.6
#3  0x00007f1189729b31 in qt_gettime() () at /lib64/libQt5Core.so.5
#4  0x00007f118987ed99 in QTimerInfoList::updateCurrentTime() () at /lib64/libQt5Core.so.5
#5  0x00007f118987f195 in QTimerInfoList::timerWait(timespec&) () at /lib64/libQt5Core.so.5
#6  0x00007f118988038c in timerSourcePrepareHelper(GTimerSource*, int*) () at /lib64/libQt5Core.so.5
#7  0x00007f1189880455 in timerSourcePrepare(_GSource*, int*) () at /lib64/libQt5Core.so.5
#8  0x00007f11815d769d in g_main_context_prepare () at /lib64/libglib-2.0.so.0
#9  0x00007f11815d808b in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#10 0x00007f11815d827c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#11 0x00007f11898806eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#12 0x00007f118983168a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#13 0x00007f118968e5e3 in QThread::exec() () at /lib64/libQt5Core.so.5
#14 0x00007f118c9064e5 in QQmlThreadPrivate::run() () at /lib64/libQt5Qml.so.5
#15 0x00007f11896929ca in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#16 0x00007f1187dce6ca in start_thread () at /lib64/libpthread.so.0
#17 0x00007f1188a85f7f in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f116bfff700 (LWP 2893)):
#0  0x00007f1188a7a01d in poll () at /lib64/libc.so.6
#1  0x00007f11815d8166 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f11815d827c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f11898806eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007f118983168a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007f118968e5e3 in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007f1189f2e739 in QDBusConnectionManager::run() () at /lib64/libQt5DBus.so.5
#7  0x00007f11896929ca in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007f1187dce6ca in start_thread () at /lib64/libpthread.so.0
#9  0x00007f1188a85f7f in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f11718fd700 (LWP 2822)):
#0  0x00007f1188a7a01d in poll () at /lib64/libc.so.6
#1  0x00007f118dc5dd10 in _xcb_conn_wait () at /lib64/libxcb.so.1
#2  0x00007f118dc5faa9 in xcb_wait_for_event () at /lib64/libxcb.so.1
#3  0x00007f1174f32d69 in QXcbEventReader::run() () at /lib64/libQt5XcbQpa.so.5
#4  0x00007f11896929ca in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#5  0x00007f1187dce6ca in start_thread () at /lib64/libpthread.so.0
#6  0x00007f1188a85f7f in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f117bbd13c0 (LWP 2787)):
[KCrash Handler]
#6  0x00007f1189b6e5d0 in QWindow::screen() const () at /lib64/libQt5Gui.so.5
#7  0x0000559d48881b64 in ShellCorona::primaryOutputChanged() ()
#8  0x00007f1189859a56 in QMetaObject::activate(QObject*, int, int, void**) () at /lib64/libQt5Core.so.5
#9  0x00007f1189b5f732 in QGuiApplication::primaryScreenChanged(QScreen*) () at /lib64/libQt5Gui.so.5
#10 0x00007f1174f3299d in QXcbConnection::createScreen(QXcbVirtualDesktop*, xcb_randr_output_change_t const&, xcb_randr_get_output_info_reply_t*) () at /lib64/libQt5XcbQpa.so.5
#11 0x00007f1174f34447 in QXcbConnection::updateScreens(xcb_randr_notify_event_t const*) () at /lib64/libQt5XcbQpa.so.5
#12 0x00007f1174f34da3 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () at /lib64/libQt5XcbQpa.so.5
#13 0x00007f1174f35225 in QXcbConnection::processXcbEvents() () at /lib64/libQt5XcbQpa.so.5
#14 0x00007f118985a7e9 in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#15 0x00007f118a0feecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#16 0x00007f118a106671 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#17 0x00007f11898326fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#18 0x00007f1189834de0 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt5Core.so.5
#19 0x00007f1189880653 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5Core.so.5
#20 0x00007f11815d7e52 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#21 0x00007f11815d81d0 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#22 0x00007f11815d827c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#23 0x00007f11898806cf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#24 0x00007f118983168a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#25 0x00007f118983918c in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#26 0x0000559d4885f752 in main ()

Reported using DrKonqi
Comment 1 Marco Martin 2017-04-04 11:42:17 UTC
possibly related to #377808 as is probably an old entry in m_desktopViewforId
Comment 2 Kai Uwe Broulik 2017-04-05 08:30:38 UTC

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