Bug 369142

Summary: Crash in QQuickItem::isEnabled on startup
Product: [Plasma] plasmashell Reporter: Alex <appwebsec>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED WORKSFORME    
Severity: crash CC: bhush94, cmvbay, crglasoe, emmanuel.hugonnet, gustavo.almatos, johngeoffreywalker, jon, justin.zobel, kanegraves23, leszek.lesner, matthewisrippin, plasma-bugs, pnunn, r.lechner, rwtech09, samuelbernardo.mail, sebastian, thewest123lp, tomek-k
Priority: NOR Keywords: drkonqi
Version: 5.7.5   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: plasmashell crash stack trace

Description Alex 2016-09-21 07:19:47 UTC
Application: plasmashell (5.7.5)

Qt Version: 5.6.1
Frameworks Version: 5.26.0
Operating System: Linux 4.7.3-200.fc24.x86_64+debug x86_64
Distribution: "Fedora release 24 (Twenty Four)"

-- Information about the crash:
ep 21 10:10:34 sled.mashine kwin_x11[2021]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 43680, resource id: 25170182, major code: 20 (GetProperty), minor code: 0
Sep 21 10:10:34 sled.mashine kwin_x11[2021]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 43697, resource id: 25170182, major code: 20 (GetProperty), minor code: 0
Sep 21 10:11:03 sled.mashine plasmashell[2824]: QXcbConnection: XCB error: 2 (BadValue), sequence: 9611, resource id: 12582915, major code: 141 (Unknown), minor code: 3
Sep 21 10:11:15 sled.mashine kwin_x11[2021]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 50064, resource id: 25170484, major code: 20 (GetProperty), minor code: 0
Sep 21 10:11:15 sled.mashine kwin_x11[2021]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 50081, resource id: 25170484, major code: 20 (GetProperty), minor code: 0
Sep 21 10:11:28 sled.mashine systemd[1]: Starting Cleanup of Temporary Directories...
-- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-tmpfiles-clean.service has begun starting up.
Sep 21 10:11:29 sled.mashine systemd[1]: Started Cleanup of Temporary Directories.
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-tmpfiles-clean.service has finished starting up.
-- 
-- The start-up result is done.
Sep 21 10:11:29 sled.mashine audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 21 10:11:29 sled.mashine audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 21 10:12:30 sled.mashine drkonqi[2825]: "Tag 'strong' is not defined in message {<__kuit_internal_top__><strong>Examples of good titles:</strong><nl />\"Plasma cr...}."
Sep 21 10:12:36 sled.mashine drkonqi[2825]: "Tag 'strong' is not defined in message {<__kuit_internal_top__><strong>Examples of good titles:</strong><nl />\"Plasma cr...}."
Sep 21 10:13:36 sled.mashine plasmashell[2824]: QXcbConnection: XCB error: 2 (BadValue), sequence: 12794, resource id: 94371968, major code: 141 (Unknown), minor code: 3
Sep 21 10:13:46 sled.mashine plasmashell[2824]: QXcbConnection: XCB error: 2 (BadValue), sequence: 13276, resource id: 12582915, major code: 141 (Unknown), minor code: 3
Sep 21 10:13:47 sled.mashine plasmashell[2824]: QXcbConnection: XCB error: 2 (BadValue), sequence: 13328, resource id: 31457310, major code: 141 (Unknown), minor code: 3
Sep 21 10:13:50 sled.mashine krunner[2038]:

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 0x7fda96a22940 (LWP 2047))]

Thread 8 (Thread 0x7fd9e06fb700 (LWP 2600)):
#0  0x00007fdaa543804d in read () at /lib64/libc.so.6
#1  0x00007fdaa0bad660 in g_wakeup_acknowledge () at /lib64/libglib-2.0.so.0
#2  0x00007fdaa0b6a4d6 in g_main_context_check () at /lib64/libglib-2.0.so.0
#3  0x00007fdaa0b6a9a4 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#4  0x00007fdaa0b6ab1c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#5  0x00007fdaa624124b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#6  0x00007fdaa61f05ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#7  0x00007fdaa604f343 in QThread::exec() () at /lib64/libQt5Core.so.5
#8  0x00007fd9e22d32e7 in KCupsConnection::run() () at /lib64/libkcupslib.so
#9  0x00007fdaa605399a in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#10 0x00007fdaa47995ca in start_thread () at /lib64/libpthread.so.0
#11 0x00007fdaa5447f6d in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7fd9f0ccd700 (LWP 2364)):
#0  0x00007fdaa543c3ed in poll () at /lib64/libc.so.6
#1  0x00007fdaa0b6aa06 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007fdaa0b6ab1c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007fdaa624124b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007fdaa61f05ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007fdaa604f343 in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007fdaa9cb1c66 in QQuickPixmapReader::run() () at /lib64/libQt5Quick.so.5
#7  0x00007fdaa605399a in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007fdaa47995ca in start_thread () at /lib64/libpthread.so.0
#9  0x00007fdaa5447f6d in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7fda7faf7700 (LWP 2305)):
#0  0x00007fdaa543c3ed in poll () at /lib64/libc.so.6
#1  0x00007fdaa0b6aa06 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007fdaa0b6ab1c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007fdaa624124b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007fdaa61f05ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007fdaa604f343 in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007fdaa93288f5 in QQmlThreadPrivate::run() () at /lib64/libQt5Qml.so.5
#7  0x00007fdaa605399a in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007fdaa47995ca in start_thread () at /lib64/libpthread.so.0
#9  0x00007fdaa5447f6d in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7fda84d52700 (LWP 2239)):
#0  0x00007fdaa479ebd0 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fdaabb46bc4 in QTWTF::TCMalloc_PageHeap::scavengerThread() () at /lib64/libQt5Script.so.5
#2  0x00007fdaabb46c09 in  () at /lib64/libQt5Script.so.5
#3  0x00007fdaa47995ca in start_thread () at /lib64/libpthread.so.0
#4  0x00007fdaa5447f6d in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7fda863b0700 (LWP 2238)):
#0  0x00007fdaa0baea09 in g_mutex_lock () at /lib64/libglib-2.0.so.0
#1  0x00007fdaa0b69f65 in g_main_context_prepare () at /lib64/libglib-2.0.so.0
#2  0x00007fdaa0b6a92b in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#3  0x00007fdaa0b6ab1c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#4  0x00007fdaa624124b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007fdaa61f05ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#6  0x00007fdaa604f343 in QThread::exec() () at /lib64/libQt5Core.so.5
#7  0x00007fdaa93288f5 in QQmlThreadPrivate::run() () at /lib64/libQt5Qml.so.5
#8  0x00007fdaa605399a in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#9  0x00007fdaa47995ca in start_thread () at /lib64/libpthread.so.0
#10 0x00007fdaa5447f6d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7fda87df5700 (LWP 2055)):
#0  0x00007fdaa0b67a17 in g_source_iter_next () at /lib64/libglib-2.0.so.0
#1  0x00007fdaa0b69efb in g_main_context_prepare () at /lib64/libglib-2.0.so.0
#2  0x00007fdaa0b6a92b in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#3  0x00007fdaa0b6ab1c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#4  0x00007fdaa624124b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007fdaa61f05ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#6  0x00007fdaa604f343 in QThread::exec() () at /lib64/libQt5Core.so.5
#7  0x00007fdaa693d559 in QDBusConnectionManager::run() () at /lib64/libQt5DBus.so.5
#8  0x00007fdaa605399a in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#9  0x00007fdaa47995ca in start_thread () at /lib64/libpthread.so.0
#10 0x00007fdaa5447f6d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fda8d472700 (LWP 2054)):
#0  0x00007fdaa543c3ed in poll () at /lib64/libc.so.6
#1  0x00007fdaaa46ef80 in _xcb_conn_wait () at /lib64/libxcb.so.1
#2  0x00007fdaaa470b79 in xcb_wait_for_event () at /lib64/libxcb.so.1
#3  0x00007fda8ffaeda9 in QXcbEventReader::run() () at /lib64/libQt5XcbQpa.so.5
#4  0x00007fdaa605399a in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#5  0x00007fdaa47995ca in start_thread () at /lib64/libpthread.so.0
#6  0x00007fdaa5447f6d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fda96a22940 (LWP 2047)):
[KCrash Handler]
#6  0x00007fdaa9d34624 in QQuickItem::isEnabled() const () at /lib64/libQt5Quick.so.5
#7  0x00007fdaa9d5006c in QQuickWindowPrivate::setFocusInScope(QQuickItem*, QQuickItem*, Qt::FocusReason, QFlags<QQuickWindowPrivate::FocusOption>) () at /lib64/libQt5Quick.so.5
#8  0x00007fdaa9d36cb8 in QQuickItem::setFocus(bool, Qt::FocusReason) () at /lib64/libQt5Quick.so.5
#9  0x00007fdaa9d48c00 in QQuickWindow::focusInEvent(QFocusEvent*) () at /lib64/libQt5Quick.so.5
#10 0x00007fdaa65392f3 in QWindow::event(QEvent*) () at /lib64/libQt5Gui.so.5
#11 0x00007fdaa9d56383 in QQuickWindow::event(QEvent*) () at /lib64/libQt5Quick.so.5
#12 0x000055c5c226cbb3 in DesktopView::event(QEvent*) ()
#13 0x00007fdaa6b0fc0c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#14 0x00007fdaa6b150ef in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#15 0x00007fdaa61f17aa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#16 0x00007fdaa652f43e in QGuiApplicationPrivate::processActivatedEvent(QWindowSystemInterfacePrivate::ActivatedWindowEvent*) () at /lib64/libQt5Gui.so.5
#17 0x00007fdaa652f7bd in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /lib64/libQt5Gui.so.5
#18 0x00007fdaa65103cb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Gui.so.5
#19 0x00007fda8ffe5600 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5XcbQpa.so.5
#20 0x00007fdaa0b6a6ba in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#21 0x00007fdaa0b6aa70 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#22 0x00007fdaa0b6ab1c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#23 0x00007fdaa624122f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#24 0x00007fdaa61f05ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#25 0x00007fdaa61f817c in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#26 0x000055c5c225efef in main ()

Reported using DrKonqi
Comment 1 David Edmundson 2016-10-16 09:14:52 UTC
*** Bug 370916 has been marked as a duplicate of this bug. ***
Comment 2 kafei 2016-10-22 01:32:25 UTC
I can confirm this bug; after installing Linux 4.8.3 and rebooting, plasmashell crashed 3 times in a row. My right monitor was completely black except I could mouse over it, just like the description in Bug 370916. My stack trace is also very similar to the one in 370916, but differs slightly from the one in this report.
Comment 3 kafei 2016-10-22 01:33:19 UTC
Created attachment 101696 [details]
plasmashell crash stack trace
Comment 4 David Edmundson 2016-10-23 15:32:42 UTC
and this happens every time?

Even if you run "plasmashell" manually?

If so can you run it in valgrind and attach that log.
Comment 5 kafei 2016-10-24 09:43:48 UTC
It does not happen every time. After a couple of tries, I did get the crash to occur with the same characteristics as before (black right monitor) by starting plasmashell manually. However, when I managed to catch the same situation running plasmashell under valgrind it did not crash... It's possible the race doesn't occur when running under valgrind.
Comment 6 Marco Martin 2016-10-28 14:55:20 UTC
*** Bug 371743 has been marked as a duplicate of this bug. ***
Comment 7 Marco Martin 2016-10-31 10:28:24 UTC
*** Bug 371789 has been marked as a duplicate of this bug. ***
Comment 8 Marco Martin 2016-11-03 15:28:33 UTC
*** Bug 371936 has been marked as a duplicate of this bug. ***
Comment 9 Marco Martin 2016-11-10 13:09:18 UTC
*** Bug 372274 has been marked as a duplicate of this bug. ***
Comment 10 David Edmundson 2016-11-14 11:16:24 UTC
*** Bug 372396 has been marked as a duplicate of this bug. ***
Comment 11 Marco Martin 2016-11-16 12:27:46 UTC
*** Bug 372490 has been marked as a duplicate of this bug. ***
Comment 12 David Edmundson 2016-11-22 11:30:01 UTC
*** Bug 372773 has been marked as a duplicate of this bug. ***
Comment 13 Marco Martin 2016-11-29 13:06:36 UTC
*** Bug 373049 has been marked as a duplicate of this bug. ***
Comment 14 Marco Martin 2016-11-29 13:28:59 UTC
*** Bug 373064 has been marked as a duplicate of this bug. ***
Comment 15 Marco Martin 2016-11-30 10:50:52 UTC
*** Bug 372928 has been marked as a duplicate of this bug. ***
Comment 16 David Edmundson 2016-12-11 23:31:01 UTC
*** Bug 373231 has been marked as a duplicate of this bug. ***
Comment 17 David Edmundson 2016-12-11 23:32:25 UTC
To restate my comment so it can be seen by all the new people.

I can't reproduce this and I don't have anywhere near enough data to do anything with this.

Can someone who can reprocue this run "valgrind plasmashell" and get a log from there.
Comment 18 Marco Martin 2017-01-17 10:31:14 UTC
*** Bug 374932 has been marked as a duplicate of this bug. ***
Comment 19 kafei 2017-01-22 01:50:26 UTC
I don't believe I've had this crash occur since I upgraded to Plasma 5.8.4, and I definitely haven't had it occur with Plasma 5.8.5. I just checked through all the duplicates, and all of them report a plasma version <5.8.4, so it's possible the crash was fixed in that version.

Fwiw, I was never able to get the crash to occur under Valgrind.
Comment 20 Christoph Feck 2017-01-27 01:58:26 UTC
*** Bug 366169 has been marked as a duplicate of this bug. ***
Comment 21 David Edmundson 2017-04-03 20:02:35 UTC
*** Bug 378378 has been marked as a duplicate of this bug. ***
Comment 22 Christoph Feck 2019-03-09 15:25:43 UTC
*** Bug 404509 has been marked as a duplicate of this bug. ***
Comment 23 Justin Zobel 2020-12-06 21:28:00 UTC
Thank you for the report.

As this was reported on an older version of plasmashell, can you please test on a recent 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 24 Bug Janitor Service 2020-12-21 04:34:29 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 25 Bug Janitor Service 2021-01-05 04:33:59 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!