Bug 388414 - Crash in QQuickItemPrivate::deliverKeyEvent() when typing in System Settings search box
Summary: Crash in QQuickItemPrivate::deliverKeyEvent() when typing in System Settings...
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 5.11.4
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://bugreports.qt.io/browse/QTBUG...
Keywords: drkonqi
: 385774 386683 386997 387285 387886 388134 388187 388605 388816 388891 388975 389275 389345 389460 389467 389526 389983 390001 390077 390208 390841 391027 391245 391741 392506 392816 393433 393513 393598 394172 394350 394861 395212 395638 397079 397485 397988 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-01-01 05:47 UTC by Cooper Campbell
Modified: 2018-08-30 22:03 UTC (History)
43 users (show)

See Also:
Latest Commit:
Version Fixed In: Qt 5.9.5, Qt 5.11.0


Attachments
New crash information added by DrKonqi (7.62 KB, text/plain)
2018-02-10 13:08 UTC, Mina
Details
New crash information added by DrKonqi (10.01 KB, text/plain)
2018-02-26 16:11 UTC, Ruslan
Details
Yet another backtrace. (7.93 KB, text/plain)
2018-04-25 08:10 UTC, Gerhard Dittes
Details
New crash information added by DrKonqi (8.82 KB, text/plain)
2018-06-13 08:21 UTC, Dmitry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cooper Campbell 2018-01-01 05:47:01 UTC
Application: systemsettings5 (5.11.4)

Qt Version: 5.10.0
Frameworks Version: 5.41.0
Operating System: Linux 4.9.73-1-lts x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
Everytime I go to type into the system settings application it crashes. After every system restart, it seems to crash on the first character, then after restarting the system settings application enough times, it may wait until I hit enter. Other times the search will almost go through then crash. I find it does not usually save what I have changed even if I have applied the changes before the crash.

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings5), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0566d5dc80 (LWP 7828))]

Thread 7 (Thread 0x7f052f5b0700 (LWP 7837)):
#0  0x00007f0562932a48 in read () at /usr/lib/libc.so.6
#1  0x00007f055c4b0521 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f055c48790b in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#3  0x00007f055c488e76 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007f055c489f42 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#5  0x00007f0534573208 in  () at /usr/lib/libgio-2.0.so.0
#6  0x00007f055c47d1eb in  () at /usr/lib/libglib-2.0.so.0
#7  0x00007f055e68a08a in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f056294142f in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7f052fdb1700 (LWP 7836)):
#0  0x00007f055c4a4450 in g_ptr_array_set_size () at /usr/lib/libglib-2.0.so.0
#1  0x00007f055c488652 in g_main_context_prepare () at /usr/lib/libglib-2.0.so.0
#2  0x00007f055c488df6 in  () at /usr/lib/libglib-2.0.so.0
#3  0x00007f055c488fae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#4  0x00007f055c489002 in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007f055c47d1eb in  () at /usr/lib/libglib-2.0.so.0
#6  0x00007f055e68a08a in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007f056294142f in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f0537fff700 (LWP 7834)):
#0  0x00007f0562932a48 in read () at /usr/lib/libc.so.6
#1  0x00007f055c4b0521 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f055c48790b in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#3  0x00007f055c488e76 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007f055c488fae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#5  0x00007f05632826b4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007f056322482b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#7  0x00007f056303478e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#8  0x00007f05610a2a19 in  () at /usr/lib/libQt5Qml.so.5
#9  0x00007f0563039b2d in  () at /usr/lib/libQt5Core.so.5
#10 0x00007f055e68a08a in start_thread () at /usr/lib/libpthread.so.0
#11 0x00007f056294142f in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f05402c4700 (LWP 7832)):
#0  0x00007f0562936f2b in poll () at /usr/lib/libc.so.6
#1  0x00007f055c488ed3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f055c488fae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007f05632826b4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f056322482b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f056303478e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007f05610a2a19 in  () at /usr/lib/libQt5Qml.so.5
#7  0x00007f0563039b2d in  () at /usr/lib/libQt5Core.so.5
#8  0x00007f055e68a08a in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007f056294142f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f054a959700 (LWP 7830)):
#0  0x00007f0562932a48 in read () at /usr/lib/libc.so.6
#1  0x00007f055c4b0521 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f055c48790b in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#3  0x00007f055c488e76 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007f055c488fae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#5  0x00007f05632826b4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007f056322482b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#7  0x00007f056303478e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#8  0x00007f05636a4416 in  () at /usr/lib/libQt5DBus.so.5
#9  0x00007f0563039b2d in  () at /usr/lib/libQt5Core.so.5
#10 0x00007f055e68a08a in start_thread () at /usr/lib/libpthread.so.0
#11 0x00007f056294142f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f0553a4b700 (LWP 7829)):
#0  0x00007f0562936f2b in poll () at /usr/lib/libc.so.6
#1  0x00007f055ef0d8e0 in  () at /usr/lib/libxcb.so.1
#2  0x00007f055ef0f679 in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007f05567f97aa in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f0563039b2d in  () at /usr/lib/libQt5Core.so.5
#5  0x00007f055e68a08a in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007f056294142f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f0566d5dc80 (LWP 7828)):
[KCrash Handler]
#5  0x00007f0563226142 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#6  0x00007f05615aca17 in  () at /usr/lib/libQt5Quick.so.5
#7  0x00007f05615ac69d in QQuickItemPrivate::filterKeyEvent(QKeyEvent*, bool) () at /usr/lib/libQt5Quick.so.5
#8  0x00007f05615b8e76 in QQuickItemPrivate::deliverKeyEvent(QKeyEvent*) () at /usr/lib/libQt5Quick.so.5
#9  0x00007f05615b91d6 in QQuickItem::event(QEvent*) () at /usr/lib/libQt5Quick.so.5
#10 0x00007f0564e45e3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#11 0x00007f0564e4d816 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#12 0x00007f05632261e0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#13 0x00007f05615c47aa in QQuickWindowPrivate::deliverKeyEvent(QKeyEvent*) () at /usr/lib/libQt5Quick.so.5
#14 0x00007f05615c8d96 in QQuickWindow::keyReleaseEvent(QKeyEvent*) () at /usr/lib/libQt5Quick.so.5
#15 0x00007f0564648a35 in QWindow::event(QEvent*) () at /usr/lib/libQt5Gui.so.5
#16 0x00007f05615d3626 in QQuickWindow::event(QEvent*) () at /usr/lib/libQt5Quick.so.5
#17 0x00007f0564e45e3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#18 0x00007f0564e4d816 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#19 0x00007f05632261e0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#20 0x00007f0561c572fd in QQuickWidget::keyReleaseEvent(QKeyEvent*) () at /usr/lib/libQt5QuickWidgets.so.5
#21 0x00007f0564e85e38 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#22 0x00007f0561c58b1c in QQuickWidget::event(QEvent*) () at /usr/lib/libQt5QuickWidgets.so.5
#23 0x00007f0564e45e3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#24 0x00007f0564e4eda3 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#25 0x00007f05632261e0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#26 0x00007f0564ea398b in  () at /usr/lib/libQt5Widgets.so.5
#27 0x00007f0564e45e3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#28 0x00007f0564e4d816 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#29 0x00007f05632261e0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#30 0x00007f0564639012 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () at /usr/lib/libQt5Gui.so.5
#31 0x00007f056463e166 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/libQt5Gui.so.5
#32 0x00007f0564615bbc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#33 0x00007f055688115d in  () at /usr/lib/libQt5XcbQpa.so.5
#34 0x00007f056322482b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#35 0x00007f056322db18 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#36 0x000055ef77e0dcca in  ()
#37 0x00007f056286bf4a in __libc_start_main () at /usr/lib/libc.so.6
#38 0x000055ef77e0dd4a in _start ()

Reported using DrKonqi
Comment 1 Nate Graham 2018-01-18 17:03:13 UTC
*** Bug 387886 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2018-01-18 17:03:19 UTC
*** Bug 388605 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2018-01-18 17:07:51 UTC
*** Bug 385774 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2018-01-18 17:07:57 UTC
*** Bug 388187 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2018-01-18 17:08:02 UTC
*** Bug 388134 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2018-01-18 17:08:06 UTC
*** Bug 386683 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2018-01-18 17:08:26 UTC
*** Bug 388891 has been marked as a duplicate of this bug. ***
Comment 8 Nate Graham 2018-01-18 17:09:36 UTC
*** Bug 388975 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2018-01-18 17:09:41 UTC
*** Bug 388816 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2018-01-18 17:09:51 UTC
*** Bug 387285 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2018-01-18 17:09:58 UTC
*** Bug 386997 has been marked as a duplicate of this bug. ***
Comment 12 Nate Graham 2018-01-20 15:32:47 UTC
This is caused by a Qt bug: https://bugreports.qt.io/browse/QTBUG-65881, which should be resolved by https://codereview.qt-project.org/#/c/217395, once that lands.
Comment 13 Nate Graham 2018-01-22 00:43:08 UTC
*** Bug 389275 has been marked as a duplicate of this bug. ***
Comment 14 Christoph Feck 2018-01-29 05:18:03 UTC
*** Bug 389345 has been marked as a duplicate of this bug. ***
Comment 15 Christoph Feck 2018-01-29 05:18:42 UTC
*** Bug 389460 has been marked as a duplicate of this bug. ***
Comment 16 Christoph Feck 2018-01-29 05:18:48 UTC
*** Bug 389526 has been marked as a duplicate of this bug. ***
Comment 17 Christoph Feck 2018-01-29 05:19:18 UTC
*** Bug 389467 has been marked as a duplicate of this bug. ***
Comment 18 Christoph Feck 2018-02-09 21:04:47 UTC
*** Bug 390077 has been marked as a duplicate of this bug. ***
Comment 19 Gerhard Dittes 2018-02-09 22:14:00 UTC
Hi,

the status of this bug ("resolved upstream") seems very confusing to me as the potential fix obviously is still under discussion (/review process).

Apart from that, thanks for your great work and efforts...
Comment 20 Nate Graham 2018-02-09 22:19:03 UTC
RESOLVED UPSTREAM doesn't necessarily mean that the crash itself is already resolved, but rather that there's nothing we can do here in this bug report, so from a KDE perspective, it is resolved here and remaining work is tracked upstream, in Qt.

That patch should *eventually* make it in, not to worry.
Comment 21 Mina 2018-02-10 13:08:43 UTC
Created attachment 110506 [details]
New crash information added by DrKonqi

systemsettings5 (5.11.5) using Qt 5.10.0

- What I was doing when the application crashed:

I was under system settings and I was typing in the search box.

-- Backtrace (Reduced):
#5  0x00007f8446d67192 in QGuiApplicationPrivate::sendQWindowEventToQPlatformWindow(QWindow*, QEvent*) () from /usr/lib/libQt5Gui.so.5
#6  0x00007f84475818dc in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#7  0x00007f844595a850 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
[...]
#9  0x00007f8443ce169d in QQuickItemPrivate::filterKeyEvent(QKeyEvent*, bool) () from /usr/lib/libQt5Quick.so.5
#10 0x00007f8443cede76 in QQuickItemPrivate::deliverKeyEvent(QKeyEvent*) () from /usr/lib/libQt5Quick.so.5
Comment 22 Christoph Feck 2018-02-11 05:45:16 UTC
*** Bug 390208 has been marked as a duplicate of this bug. ***
Comment 23 Christoph Feck 2018-02-11 05:46:04 UTC
*** Bug 390001 has been marked as a duplicate of this bug. ***
Comment 24 Christoph Feck 2018-02-11 05:46:31 UTC
*** Bug 389983 has been marked as a duplicate of this bug. ***
Comment 25 Nate Graham 2018-02-21 18:23:09 UTC
*** Bug 390841 has been marked as a duplicate of this bug. ***
Comment 26 Ruslan 2018-02-26 16:11:18 UTC
Created attachment 111019 [details]
New crash information added by DrKonqi

systemsettings5 (5.12.2) using Qt 5.10.0

- What I was doing when the application crashed:

Just typed 7-10 letters in English in settings search (main language - Russian). Settings were opened in fullscreen.

-- Backtrace (Reduced):
#6  0x00007f0f41147354 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
[...]
#8  0x00007f0f3efb5935 in QQuickItemPrivate::filterKeyEvent(QKeyEvent*, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#9  0x00007f0f3efc22f5 in QQuickItemPrivate::deliverKeyEvent(QKeyEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#10 0x00007f0f3efc2645 in QQuickItem::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#11 0x00007f0f4211aacc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
Comment 27 Christoph Feck 2018-02-28 22:41:56 UTC
*** Bug 391245 has been marked as a duplicate of this bug. ***
Comment 28 Christoph Feck 2018-03-15 02:50:56 UTC
*** Bug 391027 has been marked as a duplicate of this bug. ***
Comment 29 Christoph Feck 2018-03-30 19:42:34 UTC
*** Bug 392506 has been marked as a duplicate of this bug. ***
Comment 30 Christoph Feck 2018-03-30 19:43:03 UTC
*** Bug 391741 has been marked as a duplicate of this bug. ***
Comment 31 Gerhard Dittes 2018-04-25 08:10:21 UTC
Created attachment 112231 [details]
Yet another backtrace.

Hi,

still crashing (using QT 5.10.1), see attached backtrace.

@Nate: Sure, that it's fixed in QT 5.10.0?

My system:

 - Current Debian testing
 - KDE Plasma Version: 5.12.4
 - KDE Frameworks Version: 5.44.0
 - QT Version: 5.10.1
 - Kernel Version: 4.15.0-2-amd64

I understand that in the strict sense this is not a "KDE bug" (most likely), but it still leads to the fact, that Plasma itself feels buggy...

...that's kinda sad as these problems are there for so long now.

Systemsettings crashes here and then since the introduction of it's new layout. IMHO it would have been a better decision _not_ to provide, or at at least _not_ to default to the new layout... as long as these problems are around.

Earlier, "Icon View" has never crashed for me. Don't get me wrong. I'm a fan of the "Sidebar View", but I prefer stability.

(Perhaps, if QT is not capable of fixing this, one should think about a workaround. I.e. implement the new feature(s) via an other way/strategy [using older mechanisms]?)

Regards, Gerhard
Comment 32 Christoph Feck 2018-05-13 02:59:24 UTC
*** Bug 394172 has been marked as a duplicate of this bug. ***
Comment 33 Bernie Innocenti 2018-05-15 14:42:56 UTC
The Qt patch (https://codereview.qt-project.org/#/c/217395) is marked as included in Qt 5.9 and 5.11, but not 5.10.

I can still reproduce this issue in Fedora 28, with 5.10.1 and systemsettings 5.12.5.

Would it be possible to request Qt to cherry-pick this fix on 5.10?
Comment 34 Christoph Feck 2018-05-16 12:33:24 UTC
There will be no Qt 5.10 update; it is not a LTS release.
Comment 35 Christoph Feck 2018-05-16 22:20:19 UTC
*** Bug 393598 has been marked as a duplicate of this bug. ***
Comment 36 Christoph Feck 2018-05-16 22:21:55 UTC
*** Bug 393433 has been marked as a duplicate of this bug. ***
Comment 37 Christoph Feck 2018-05-16 22:23:00 UTC
*** Bug 392816 has been marked as a duplicate of this bug. ***
Comment 38 Christoph Feck 2018-05-16 22:23:30 UTC
*** Bug 393513 has been marked as a duplicate of this bug. ***
Comment 39 David Edmundson 2018-05-30 13:00:31 UTC
*** Bug 394861 has been marked as a duplicate of this bug. ***
Comment 40 Christoph Feck 2018-06-06 01:06:49 UTC
*** Bug 394350 has been marked as a duplicate of this bug. ***
Comment 41 Christoph Feck 2018-06-10 14:10:04 UTC
*** Bug 395212 has been marked as a duplicate of this bug. ***
Comment 42 Dmitry 2018-06-13 08:21:52 UTC
Created attachment 113243 [details]
New crash information added by DrKonqi

systemsettings5 (5.12.5) using Qt 5.10.1

- What I was doing when the application crashed:
Typeing in the seach box in Settings and then the windows was disappearing.

-- Backtrace (Reduced):
#6  0x00007f6cada2fd57 in QGuiApplicationPrivate::sendQWindowEventToQPlatformWindow(QWindow*, QEvent*) () from /lib64/libQt5Gui.so.5
#7  0x00007f6cadf8b963 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#8  0x00007f6cad421376 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#9  0x00007f6cabaaf985 in QQuickKeysAttached::keyReleased(QKeyEvent*, bool) () from /lib64/libQt5Quick.so.5
#10 0x00007f6cabaaf635 in QQuickItemPrivate::filterKeyEvent(QKeyEvent*, bool) () from /lib64/libQt5Quick.so.5
Comment 43 Christoph Feck 2018-07-18 19:49:29 UTC
*** Bug 395638 has been marked as a duplicate of this bug. ***
Comment 44 Christoph Feck 2018-08-30 22:02:14 UTC
*** Bug 397079 has been marked as a duplicate of this bug. ***
Comment 45 Christoph Feck 2018-08-30 22:02:39 UTC
*** Bug 397485 has been marked as a duplicate of this bug. ***
Comment 46 Christoph Feck 2018-08-30 22:03:00 UTC
*** Bug 397988 has been marked as a duplicate of this bug. ***