Bug 390005 - crash during search
Summary: crash during search
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 5.12.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
: 388697 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-07 14:19 UTC by pas4kde
Modified: 2020-01-23 06:32 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (7.58 KB, text/plain)
2018-02-10 16:06 UTC, Mike Eichler
Details
New crash information added by DrKonqi (8.57 KB, text/plain)
2018-02-10 23:26 UTC, francisco_t
Details
New crash information added by DrKonqi (7.54 KB, text/plain)
2018-02-11 14:38 UTC, wowhellmail
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pas4kde 2018-02-07 14:19:52 UTC
Application: systemsettings5 (5.12.0)

Qt Version: 5.9.3
Frameworks Version: 5.42.0
Operating System: Linux 4.13.0-32-generic x86_64
Distribution: KDE neon User Edition 5.12

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

Searched a few letters in the search fiedl after starting the appication
Reproduced the bug twice, but it is now working

The crash can be reproduced sometimes.

-- Backtrace:
Application: Configuration du système (systemsettings5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5b6f4558c0 (LWP 25378))]

Thread 4 (Thread 0x7f5b4309d700 (LWP 25382)):
#0  0x00007f5b6af5327d in read () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f5b64f356f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5b64ef1e74 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5b64ef2330 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5b64ef249c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5b6b87e6cb in QEventDispatcherGlib::processEvents (this=0x7f5b3c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f5b6b826e2a in QEventLoop::exec (this=this@entry=0x7f5b4309cce0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#7  0x00007f5b6b64f8f4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#8  0x00007f5b691c6d25 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007f5b6b654709 in QThreadPrivate::start (arg=0xf2f1e0) at thread/qthread_unix.cpp:368
#10 0x00007f5b671a06ba in start_thread (arg=0x7f5b4309d700) at pthread_create.c:333
#11 0x00007f5b6af6341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f5b4b408700 (LWP 25381)):
#0  0x00007f5b6b87cce0 in QTimerInfoList::repairTimersIfNeeded (this=0x7f5b44002ed0) at kernel/qtimerinfo_unix.cpp:167
#1  0x00007f5b6b87cd43 in QTimerInfoList::timerWait (this=0x7f5b44002ed0, tm=...) at kernel/qtimerinfo_unix.cpp:389
#2  0x00007f5b6b87e43e in timerSourcePrepareHelper (timeout=0x7f5b4b407b14, src=<optimized out>) at kernel/qeventdispatcher_glib.cpp:132
#3  timerSourcePrepare (source=<optimized out>, timeout=0x7f5b4b407b14) at kernel/qeventdispatcher_glib.cpp:165
#4  0x00007f5b64ef191d in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5b64ef22bb in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f5b64ef249c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f5b6b87e6cb in QEventDispatcherGlib::processEvents (this=0x7f5b440008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#8  0x00007f5b6b826e2a in QEventLoop::exec (this=this@entry=0x7f5b4b407ce0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#9  0x00007f5b6b64f8f4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#10 0x00007f5b691c6d25 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#11 0x00007f5b6b654709 in QThreadPrivate::start (arg=0xbc0580) at thread/qthread_unix.cpp:368
#12 0x00007f5b671a06ba in start_thread (arg=0x7f5b4b408700) at pthread_create.c:333
#13 0x00007f5b6af6341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f5b595dc700 (LWP 25380)):
#0  0x00007f5b6af5774d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f5b64ef238c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5b64ef249c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5b6b87e6cb in QEventDispatcherGlib::processEvents (this=0x7f5b540008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f5b6b826e2a in QEventLoop::exec (this=this@entry=0x7f5b595dbcd0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f5b6b64f8f4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#6  0x00007f5b6d17b315 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f5b6b654709 in QThreadPrivate::start (arg=0x7f5b6d3efd40) at thread/qthread_unix.cpp:368
#8  0x00007f5b671a06ba in start_thread (arg=0x7f5b595dc700) at pthread_create.c:333
#9  0x00007f5b6af6341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f5b6f4558c0 (LWP 25378)):
[KCrash Handler]
#6  MenuItem::name (this=this@entry=0x0) at /workspace/build/core/MenuItem.cpp:108
#7  0x00007f5b4b89fcf6 in ToolTipManager::generateToolTipLine (this=this@entry=0xf2b100, item=item@entry=0x7ffe27eb4690, toolTip=toolTip@entry=0x5c71090, iconSize=..., comment=comment@entry=true) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:178
#8  0x00007f5b4b8a030f in ToolTipManager::createTipContent (this=this@entry=0xf2b100, item=...) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:150
#9  0x00007f5b4b8a04d9 in ToolTipManager::showToolTip (this=0xf2b100, menuItem=...) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:129
#10 0x00007f5b4b8a0636 in ToolTipManager::prepareToolTip (this=<optimized out>) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:120
#11 0x00007f5b6b8555a6 in QtPrivate::QSlotObjectBase::call (a=0x7ffe27eb4860, r=0xf2b100, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#12 QMetaObject::activate (sender=sender@entry=0xf2fd90, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe27eb4860) at kernel/qobject.cpp:3749
#13 0x00007f5b6b855b87 in QMetaObject::activate (sender=sender@entry=0xf2fd90, m=m@entry=0x7f5b6bcdfea0 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe27eb4860) at kernel/qobject.cpp:3628
#14 0x00007f5b6b861b07 in QTimer::timeout (this=this@entry=0xf2fd90, _t1=...) at .moc/moc_qtimer.cpp:200
#15 0x00007f5b6b861e08 in QTimer::timerEvent (this=0xf2fd90, e=<optimized out>) at kernel/qtimer.cpp:255
#16 0x00007f5b6b856273 in QObject::event (this=0xf2fd90, e=<optimized out>) at kernel/qobject.cpp:1268
#17 0x00007f5b6c818b9c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0xf2fd90, e=0x7ffe27eb4b50) at kernel/qapplication.cpp:3722
#18 0x00007f5b6c8205a7 in QApplication::notify (this=0x7ffe27eb4ec0, receiver=0xf2fd90, e=0x7ffe27eb4b50) at kernel/qapplication.cpp:3481
#19 0x00007f5b6b828df8 in QCoreApplication::notifyInternal2 (receiver=0xf2fd90, event=event@entry=0x7ffe27eb4b50) at kernel/qcoreapplication.cpp:1018
#20 0x00007f5b6b87da7e in QCoreApplication::sendEvent (event=0x7ffe27eb4b50, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:233
#21 QTimerInfoList::activateTimers (this=0x8424d0) at kernel/qtimerinfo_unix.cpp:643
#22 0x00007f5b6b87e301 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:182
#23 0x00007f5b64ef2197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f5b64ef23f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f5b64ef249c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f5b6b87e6af in QEventDispatcherGlib::processEvents (this=0x868d20, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#27 0x00007f5b6b826e2a in QEventLoop::exec (this=this@entry=0x7ffe27eb4da0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#28 0x00007f5b6b82fd64 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1291
#29 0x000000000040b6fe in main (argc=1, argv=<optimized out>) at /workspace/build/app/main.cpp:67

Reported using DrKonqi
Comment 1 pas4kde 2018-02-07 14:22:57 UTC
Additional info : I use wayland
Comment 2 Mike Eichler 2018-02-10 16:06:56 UTC
Created attachment 110512 [details]
New crash information added by DrKonqi

systemsettings5 (5.12.0) using Qt 5.9.3

- What I was doing when the application crashed:
Searching in the System Settings search field after a clean install of KDE Neon

-- Backtrace (Reduced):
#6  MenuItem::name (this=this@entry=0x0) at /workspace/build/core/MenuItem.cpp:108
#7  0x00007f600d282cf6 in ToolTipManager::generateToolTipLine (this=this@entry=0x21537d0, item=item@entry=0x7fff3a8d56b0, toolTip=toolTip@entry=0x6df4f50, iconSize=..., comment=comment@entry=true) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:178
#8  0x00007f600d28330f in ToolTipManager::createTipContent (this=this@entry=0x21537d0, item=...) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:150
#9  0x00007f600d2834d9 in ToolTipManager::showToolTip (this=0x21537d0, menuItem=...) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:129
#10 0x00007f600d283636 in ToolTipManager::prepareToolTip (this=<optimized out>) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:120
Comment 3 francisco_t 2018-02-10 23:26:34 UTC
Created attachment 110521 [details]
New crash information added by DrKonqi

systemsettings5 (5.12.0) using Qt 5.9.3

- What I was doing when the application crashed:
Same here. Just searching in the system setting.
But I don't use wayland.

-- Backtrace (Reduced):
#6  MenuItem::name (this=this@entry=0x0) at /workspace/build/core/MenuItem.cpp:108
#7  0x00007ff3d4b8fcf6 in ToolTipManager::generateToolTipLine (this=this@entry=0x1a07140, item=item@entry=0x7fff27e1b630, toolTip=toolTip@entry=0x1a798f0, iconSize=..., comment=comment@entry=true) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:178
#8  0x00007ff3d4b9030f in ToolTipManager::createTipContent (this=this@entry=0x1a07140, item=...) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:150
#9  0x00007ff3d4b904d9 in ToolTipManager::showToolTip (this=0x1a07140, menuItem=...) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:129
#10 0x00007ff3d4b90636 in ToolTipManager::prepareToolTip (this=<optimized out>) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:120
Comment 4 Christoph Feck 2018-02-11 05:49:26 UTC
*** Bug 388697 has been marked as a duplicate of this bug. ***
Comment 5 wowhellmail 2018-02-11 14:38:33 UTC
Created attachment 110535 [details]
New crash information added by DrKonqi

systemsettings5 (5.12.0) using Qt 5.9.3

- What I was doing when the application crashed:

Just opened settings and started typing to search. I dont use wayland.

-- Backtrace (Reduced):
#6  MenuItem::name (this=this@entry=0x0) at /workspace/build/core/MenuItem.cpp:108
#7  0x00007fd6a1758cf6 in ToolTipManager::generateToolTipLine (this=this@entry=0x28003d0, item=item@entry=0x7ffd2ecf9640, toolTip=toolTip@entry=0x548cc70, iconSize=..., comment=comment@entry=true) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:178
#8  0x00007fd6a175930f in ToolTipManager::createTipContent (this=this@entry=0x28003d0, item=...) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:150
#9  0x00007fd6a17594d9 in ToolTipManager::showToolTip (this=0x28003d0, menuItem=...) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:129
#10 0x00007fd6a1759636 in ToolTipManager::prepareToolTip (this=<optimized out>) at /workspace/build/sidebar/ToolTips/tooltipmanager.cpp:120
Comment 6 kts 2018-02-13 07:00:13 UTC
I observed this bug yesterday with plasma 5.12, framework 5.42 and qt 5.10.
Comment 7 humanix 2018-03-10 10:24:39 UTC
Same here, don't use wayland

QT Version: 5.10.1
KDE Frameworks Version:5.43.0
KDE Plasma Version: 5.12.2

KActivities: Database connection:  "kactivities_db_resources_140054616397824_readonly" 
    query_only:          QVariant(qlonglong, 1) 
    journal_mode:        QVariant(QString, "wal") 
    wal_autocheckpoint:  QVariant(qlonglong, 100) 
    synchronous:         QVariant(qlonglong, 0)
Nothing to load - the client id is empty
Nothing to load - the client id is empty
KActivitiesStats( 0x556844006780 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:msm_locale.desktop" score: 0 last: 1520676781 first: 4294967295
KActivitiesStats( 0x556844006780 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:msm_language_packages.desktop" score: 0 last: 1520676782 first: 4294967295
KActivitiesStats( 0x556844006780 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:style.desktop" score: 3.7675 last: 1520676783 first: 1518709630
KActivitiesStats( 0x556844006780 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:kwinoptions.desktop" score: 0 last: 1520676784 first: 4294967295
KActivitiesStats( 0x556844006780 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:kcm_sddm.desktop" score: 0 last: 1520676785 first: 4294967295
KActivitiesStats( 0x556844006780 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:msm_mhwd.desktop" score: 0 last: 1520676790 first: 4294967295
KActivitiesStats( 0x556844006780 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:msm_keyboard.desktop" score: 0 last: 1520676791 first: 4294967295
KActivitiesStats( 0x556844006780 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:msm_language_packages.desktop" score: 0 last: 1520676792 first: 4294967295
KActivitiesStats( 0x556844006780 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:msm_users.desktop" score: 0 last: 1520676793 first: 4294967295
checking permissions of  "/usr/share/color-schemes/BreezeDark.colors"
KActivitiesStats( 0x556844006780 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:colors.desktop" score: 0 last: 1520676799 first: 4294967295
KActivitiesStats( 0x556844006780 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:fonts.desktop" score: 0 last: 1520676800 first: 4294967295
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "khelpcenter"
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "khelpcenter"
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "khelpcenter"
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "khelpcenter"
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "glossentry"
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QPainter::hasClipping: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
QPainter::hasClipping: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
Segmentation fault (core dumped)
Comment 8 Alexander Mentyu 2018-04-25 11:03:39 UTC
Possibly related to https://bugs.kde.org/show_bug.cgi?id=378339
Comment 9 David Edmundson 2019-10-21 11:01:05 UTC
Git commit de7f988c71b23880ec44d9e90a24f65d6f791b53 by David Edmundson.
Committed on 21/10/2019 at 11:00.
Pushed by davidedmundson into branch 'master'.

Store stashed model index as QPersistentModelIndex

Summary:
Otherwise we can crash if the model updates during load.
Related: bug 385557

Test Plan:
Had a state where my manually saved session would crash systemsettings on load
accessing a null kservice object from a menuItem

With this patch that session no longer crashes

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: apol, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24785

M  +1    -1    sidebar/ToolTips/tooltipmanager.cpp

https://commits.kde.org/systemsettings/de7f988c71b23880ec44d9e90a24f65d6f791b53
Comment 10 Nate Graham 2020-01-23 06:32:21 UTC
Fully fixed in Plasma 5.18.