Bug 365248 - Krunner crash when typing first letter or clicking setting button
Summary: Krunner crash when typing first letter or clicking setting button
Status: RESOLVED WORKSFORME
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: 5.7.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords: drkonqi, triaged
Depends on:
Blocks:
 
Reported: 2016-07-08 17:41 UTC by Guillaume Racicot
Modified: 2018-10-27 04:14 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Racicot 2016-07-08 17:41:44 UTC
Application: kcmshell5 (5.7.0)

Qt Version: 5.7.0
Frameworks Version: 5.23.0
Operating System: Linux 4.6.3-1-ARCH x86_64
Distribution: "Arch Linux"

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

Krunner crash every time I type the first letter in the search box. Disabling plugins is not possible because clicking on the setting button in krunner make it crash too. It happens every time.

- Custom settings of the application:

I have calculator plugin activated. I've seen it in the backtrace of the crashing thread so I thought it might be related.

The crash can be reproduced every time.

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

Thread 3 (Thread 0x7fcb07260700 (LWP 1128)):
#0  0x00007fcb221c072d in read () from /usr/lib/libc.so.6
#1  0x00007fcb1a494c80 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fcb1a451ab4 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#3  0x00007fcb1a451f74 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007fcb1a4520ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0x00007fcb1f8ab59b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#6  0x00007fcb1f8550da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#7  0x00007fcb1f6780f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#8  0x00007fcb214bae75 in ?? () from /usr/lib/libQt5DBus.so.5
#9  0x00007fcb1f67cd78 in ?? () from /usr/lib/libQt5Core.so.5
#10 0x00007fcb1c65e484 in start_thread () from /usr/lib/libpthread.so.0
#11 0x00007fcb221cd6dd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fcb0fe93700 (LWP 1127)):
#0  0x00007fcb221c46cd in poll () from /usr/lib/libc.so.6
#1  0x00007fcb1ced28e0 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007fcb1ced4679 in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007fcb12617469 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007fcb1f67cd78 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007fcb1c65e484 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007fcb221cd6dd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fcb227b87c0 (LWP 1126)):
[KCrash Handler]
#5  0x00007fcb22163d76 in strlen () from /usr/lib/libc.so.6
#6  0x00007fcb22163aae in strdup () from /usr/lib/libc.so.6
#7  0x00007fcaf85105c9 in Calculator::Calculator() () from /usr/lib/libqalculate.so.5
#8  0x00007fcaf8869c4d in ?? () from /usr/lib/qt/plugins/krunner_calculatorrunner.so
#9  0x00007fcaf886af19 in ?? () from /usr/lib/qt/plugins/krunner_calculatorrunner.so
#10 0x00007fcaf886ca7f in ?? () from /usr/lib/qt/plugins/krunner_calculatorrunner.so
#11 0x00007fcb21252564 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib/libKF5CoreAddons.so.5
#12 0x00007fcb05aa917f in ?? () from /usr/lib/libKF5Runner.so.5
#13 0x00007fcb05aaa5a4 in ?? () from /usr/lib/libKF5Runner.so.5
#14 0x00007fcb05aa40d7 in Plasma::RunnerManager::reloadConfiguration() () from /usr/lib/libKF5Runner.so.5
#15 0x00007fcb05cbb771 in ?? () from /usr/lib/qt/plugins/kcm_plasmasearch.so
#16 0x00007fcb05cc0128 in ?? () from /usr/lib/qt/plugins/kcm_plasmasearch.so
#17 0x00007fcb21252564 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib/libKF5CoreAddons.so.5
#18 0x00007fcb21eac6b7 in KCModuleLoader::loadModule(KCModuleInfo const&, KCModuleLoader::ErrorReporting, QWidget*, QStringList const&) () from /usr/lib/libKF5KCMUtils.so.5
#19 0x00007fcb21eb579f in ?? () from /usr/lib/libKF5KCMUtils.so.5
#20 0x00007fcb21eb6395 in KCModuleProxy::realModule() const () from /usr/lib/libKF5KCMUtils.so.5
#21 0x00007fcb21eb181b in KCMultiDialog::addModule(KCModuleInfo const&, KPageWidgetItem*, QStringList const&) () from /usr/lib/libKF5KCMUtils.so.5
#22 0x00007fcb2248eb81 in kdemain () from /usr/lib/libkdeinit5_kcmshell5.so
#23 0x00007fcb22106741 in __libc_start_main () from /usr/lib/libc.so.6
#24 0x0000000000400779 in _start ()

Reported using DrKonqi
Comment 1 Pavel 2016-07-09 09:24:51 UTC
Have the same issue. My stack trace from journalctl
Process 2060 (kcmshell5) of user 1000 dumped core.
 
Stack trace of thread 2060:
#0  0x00007f144f8bbd76 strlen (libc.so.6)
#1  0x00007f144f8bbaae __strdup (libc.so.6)
#2  0x00007f14318695c9 _ZN10CalculatorC1Ev (libqalculate.so.5)
#3  0x00007f1431bc2c4d n/a (krunner_calculatorrunner.so)
#4  0x00007f1431bc3f19 n/a (krunner_calculatorrunner.so)
#5  0x00007f1431bc5a7f n/a (krunner_calculatorrunner.so)
#6  0x00007f144e9aa564 _ZN14KPluginFactory6createEPKcP7QWidgetP7QObjectRK5QListI8QVariantERK7QString (libKF5CoreAd
#7  0x00007f143253817f n/a (libKF5Runner.so.5)
#8  0x00007f14325395a4 n/a (libKF5Runner.so.5)
#9  0x00007f14325330d7 _ZN6Plasma13RunnerManager19reloadConfigurationEv (libKF5Runner.so.5)
#10 0x00007f143274a771 n/a (kcm_plasmasearch.so)
#11 0x00007f143274f128 n/a (kcm_plasmasearch.so)
#12 0x00007f144e9aa564 _ZN14KPluginFactory6createEPKcP7QWidgetP7QObjectRK5QListI8QVariantERK7QString (libKF5CoreAd
#13 0x00007f144f6046b7 _ZN14KCModuleLoader10loadModuleERK12KCModuleInfoNS_14ErrorReportingEP7QWidgetRK11QStringLis
#14 0x00007f144f60d79f n/a (libKF5KCMUtils.so.5)
#15 0x00007f144f60e395 _ZNK13KCModuleProxy10realModuleEv (libKF5KCMUtils.so.5)
#16 0x00007f144f60981b _ZN13KCMultiDialog9addModuleERK12KCModuleInfoP15KPageWidgetItemRK11QStringList (libKF5KCMUt
#17 0x00007f144fbe6b81 kdemain (libkdeinit5_kcmshell5.so)
#18 0x00007f144f85e741 __libc_start_main (libc.so.6)
#19 0x0000000000400779 _start (kcmshell5)

Don't know, what's wrong with libqalculate :(
Comment 2 Guillaume Racicot 2016-07-09 22:08:40 UTC
Is there a quick fix so I can use krunner without the calculator? It was my primary tool to launch anything, I'm kinda screwed without this :(
Comment 3 Pavel 2016-07-09 22:29:17 UTC
At first I wanted to find some alternative. But I didn't do that and just assigned Alt+F2 shortcut to the Application Launcher menu. It is not so comfortable as krunner, but better than nothing or any alternative, which lives out of DE ecosystem IMHO... 
I don't know how to disable calculator for krunner.
Comment 4 syncrtl64 2016-07-10 06:47:24 UTC
Im running krunner from yakuake after it crashes in the specified way,, it works like that, better than nothing I guess...
Comment 5 Thomas Pfeiffer 2016-07-13 17:36:18 UTC
(In reply to Pavel from comment #3)
> I don't know how to disable calculator for krunner.

You can open ~/.config/krunnerrc and remove Calculator from the enabledCategories=

Does that prevent the crash?
Comment 6 Guillaume Racicot 2016-07-13 17:55:16 UTC
(In reply to Thomas Pfeiffer from comment #5)
> (In reply to Pavel from comment #3)
> > I don't know how to disable calculator for krunner.
> 
> You can open ~/.config/krunnerrc and remove Calculator from the
> enabledCategories=
> 
> Does that prevent the crash?

My krunnerrc did not have a enabledCategories, nor the occurence "Calculator".
I tried running krunner with an empty krunnerrc file, the app is starting but still crashing the same way.

I tested the bug further and I just realized that pressing the settings button in krunner did not make krunner to crash, but the System Settings Module is crashing.

Note that still, typing in the krunner text box is crashing krunner.

Here's the backtrace for kcm (when pressing the settings button in krunner)
As we can see, the crash is still occuring when loading the calculator, from either krunner or kcm.

Application: System Settings Module (kcmshell5), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f61838cc7c0 (LWP 2304))]

Thread 3 (Thread 0x7f6168241700 (LWP 2306)):
#0  0x00007f61832d86cd in poll () from /usr/lib/libc.so.6
#1  0x00007f617b565fd6 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f617b5660ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f61809bf59b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007f61809690da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f618078c0f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007f61825cee75 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007f6180790d78 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007f617d772484 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f61832e16dd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f6170fa7700 (LWP 2305)):
#0  0x00007f61832d86cd in poll () from /usr/lib/libc.so.6
#1  0x00007f617dfe68e0 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f617dfe8679 in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007f617372b469 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f6180790d78 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f617d772484 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f61832e16dd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f61838cc7c0 (LWP 2304)):
[KCrash Handler]
#5  0x00007f6183277d76 in strlen () from /usr/lib/libc.so.6
#6  0x00007f6183277aae in strdup () from /usr/lib/libc.so.6
#7  0x00007f6154fb45c9 in Calculator::Calculator() () from /usr/lib/libqalculate.so.5
#8  0x00007f615530dc4d in ?? () from /usr/lib/qt/plugins/krunner_calculatorrunner.so
#9  0x00007f615530ef19 in ?? () from /usr/lib/qt/plugins/krunner_calculatorrunner.so
#10 0x00007f6155310a7f in ?? () from /usr/lib/qt/plugins/krunner_calculatorrunner.so
#11 0x00007f6182366564 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib/libKF5CoreAddons.so.5
#12 0x00007f6166c1517f in ?? () from /usr/lib/libKF5Runner.so.5
#13 0x00007f6166c165a4 in ?? () from /usr/lib/libKF5Runner.so.5
#14 0x00007f6166c100d7 in Plasma::RunnerManager::reloadConfiguration() () from /usr/lib/libKF5Runner.so.5
#15 0x00007f6166e27771 in ?? () from /usr/lib/qt/plugins/kcm_plasmasearch.so
#16 0x00007f6166e2c128 in ?? () from /usr/lib/qt/plugins/kcm_plasmasearch.so
#17 0x00007f6182366564 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib/libKF5CoreAddons.so.5
#18 0x00007f6182fc06b7 in KCModuleLoader::loadModule(KCModuleInfo const&, KCModuleLoader::ErrorReporting, QWidget*, QStringList const&) () from /usr/lib/libKF5KCMUtils.so.5
#19 0x00007f6182fc979f in ?? () from /usr/lib/libKF5KCMUtils.so.5
#20 0x00007f6182fca395 in KCModuleProxy::realModule() const () from /usr/lib/libKF5KCMUtils.so.5
#21 0x00007f6182fc581b in KCMultiDialog::addModule(KCModuleInfo const&, KPageWidgetItem*, QStringList const&) () from /usr/lib/libKF5KCMUtils.so.5
#22 0x00007f61835a2b81 in kdemain () from /usr/lib/libkdeinit5_kcmshell5.so
#23 0x00007f618321a741 in __libc_start_main () from /usr/lib/libc.so.6
#24 0x0000000000400779 in _start ()
Comment 7 Francisco Fernandes 2016-07-14 11:55:25 UTC
Just to confirm the crash as well.  Similarly as reported by  Guillaume Racicot, clicking the settings button
doesn't crash krunner, but no configuration dialog is showing.

This is my backtrace:
____________________________________________________________________________________________________________________________________________

Application: krunner (krunner), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f51a9140800 (LWP 1909))]

Thread 4 (Thread 0x7f518a35e700 (LWP 1912)):
#0  0x00007f51a06d9029 in g_mutex_lock () from /usr/lib/libglib-2.0.so.0
#1  0x00007f51a0694519 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0x00007f51a0694efb in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007f51a06950ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007f51a550159b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f51a54ab0da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#6  0x00007f51a52ce0f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#7  0x00007f51a7bd6445 in ?? () from /usr/lib/libQt5Qml.so.5
#8  0x00007f51a52d2d78 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007f51a279a484 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f51a4be56dd in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7f5190bd2700 (LWP 1911)):
#0  0x00007f51a4bdc6cd in poll () from /usr/lib/libc.so.6
#1  0x00007f51a0694fd6 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f51a06950ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f51a550159b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007f51a54ab0da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f51a52ce0f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007f51a6fe6e75 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007f51a52d2d78 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007f51a279a484 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f51a4be56dd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f5192af1700 (LWP 1910)):
#0  0x00007f51a4bdc6cd in poll () from /usr/lib/libc.so.6
#1  0x00007f51a40b88e0 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f51a40ba679 in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007f5194416469 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f51a52d2d78 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f51a279a484 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f51a4be56dd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f51a9140800 (LWP 1909)):
[KCrash Handler]
#5  0x00007f51a4b7bd76 in strlen () from /usr/lib/libc.so.6
#6  0x00007f51a4b7baae in strdup () from /usr/lib/libc.so.6
#7  0x00007f517a6e55c9 in Calculator::Calculator() () from /usr/lib/libqalculate.so.5
#8  0x00007f517aa3ec4d in ?? () from /usr/lib/qt/plugins/krunner_calculatorrunner.so
#9  0x00007f517aa3ff19 in ?? () from /usr/lib/qt/plugins/krunner_calculatorrunner.so
#10 0x00007f517aa41a7f in ?? () from /usr/lib/qt/plugins/krunner_calculatorrunner.so
#11 0x00007f51a6082564 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib/libKF5CoreAddons.so.5
#12 0x00007f517f39f43f in ?? () from /usr/lib/libKF5Runner.so.5
#13 0x00007f517f3a0864 in ?? () from /usr/lib/libKF5Runner.so.5
#14 0x00007f517f39b97f in Plasma::RunnerManager::launchQuery(QString const&, QString const&) () from /usr/lib/libKF5Runner.so.5
#15 0x00007f517f5b756e in Milou::SourcesModel::setQueryString(QString const&) () from /usr/lib/libmilou.so.5
#16 0x00007f517f5c00ed in ?? () from /usr/lib/libmilou.so.5
#17 0x00007f517f5c0b4b in Milou::SourcesModel::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libmilou.so.5
#18 0x00007f51a7bc1b15 in QQmlBinding::write(QQmlPropertyData const&, QV4::Value const&, bool, QFlags<QQmlPropertyPrivate::WriteFlag>) () from /usr/lib/libQt5Qml.so.5
#19 0x00007f51a7bc28e5 in QQmlBinding::update(QFlags<QQmlPropertyPrivate::WriteFlag>) () from /usr/lib/libQt5Qml.so.5
#20 0x00007f51a7bc322e in QQmlBinding::refresh() () from /usr/lib/libQt5Qml.so.5
#21 0x00007f51a7b98044 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /usr/lib/libQt5Qml.so.5
#22 0x00007f51a7b4219c in QQmlData::signalEmitted(QAbstractDeclarativeData*, QObject*, int, void**) () from /usr/lib/libQt5Qml.so.5
#23 0x00007f51a54d8c0c in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#24 0x00007f51a7b3de47 in QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQt5Qml.so.5
#25 0x00007f51a7b1fa11 in QV4::QObjectWrapper::setProperty(QV4::ExecutionEngine*, QObject*, QQmlPropertyData*, QV4::Value const&) () from /usr/lib/libQt5Qml.so.5
#26 0x00007f51a7b3595f in QV4::Runtime::setQmlQObjectProperty(QV4::ExecutionEngine*, QV4::Value const&, int, QV4::Value const&) () from /usr/lib/libQt5Qml.so.5
#27 0x00007f51900da443 in ?? ()
#28 0x0000000000000000 in ?? ()
Comment 8 David Edmundson 2016-07-14 13:21:53 UTC
please can you tell us your version of libqalculate from your package manager
Comment 9 Stéphane Cachemaille 2016-07-15 11:11:32 UTC
I have the same problem on manjaro linux. maybe since updates of Qt 5.7.
I tried to create a fresh new user account and krunner is working without crashing.

I tried to delete krunnerrc and also .cache but krunner still crash on my normal user account.
what else could I try to delete?
Comment 10 Francis Herne 2016-07-17 01:49:12 UTC
This is reportedly fixed upstream: https://github.com/Qalculate/libqalculate/issues/4
Comment 11 Guillaume Racicot 2016-07-18 17:28:06 UTC
Upgrading my arch installation fixed the bug. I don't know if it comes from the update in libqalculate or the fact that Frameworks just got upgraded to 5.24.0
Comment 13 Francisco Cribari 2016-09-17 01:14:04 UTC
I am experiencing Plasma crashes when typing to search in the application launcher (not menu or dashboard). It may be related to this bug. See https://bugs.kde.org/show_bug.cgi?id=366022 and https://bugs.kde.org/show_bug.cgi?id=366190 .
Comment 14 Andrew Crouthamel 2018-09-26 22:06:59 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 set the bug status 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 15 Andrew Crouthamel 2018-10-27 04:14:39 UTC
Dear Bug Submitter,

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!