Bug 366038 - 100% cpu usage by entering a search term
Summary: 100% cpu usage by entering a search term
Status: RESOLVED DUPLICATE of bug 360946
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Engine (show other bugs)
Version: 5.24.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-24 13:58 UTC by xwissen+kde
Modified: 2016-09-11 21:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xwissen+kde 2016-07-24 13:58:01 UTC
By entering a term into search field causes a new thread to use 100% cpu. Won't stop after starting a program or close krunner.

Reproducible: Always

Steps to Reproduce:
1. open krunner (e.g. alt f2)
2. start typing like in my case net
3. "wait" for search result

Actual Results:  
100% cpu and only stops by killing the process.

Expected Results:  
search result, selecting a item and no heavy constant cpu usage


(gdb) run
Starting program: /usr/bin/krunner 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe2aa8700 (LWP 2819)]
[New Thread 0x7fffdbfff700 (LWP 2820)]
[New Thread 0x7fffd8be5700 (LWP 2821)]
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
[New Thread 0x7fffcafe6700 (LWP 2822)]
org.kde.kurifilter-ikws: ":q"
org.kde.kurifilter-ikws: Keywords Engine: Loading config...
org.kde.kurifilter-ikws: Web Shortcuts Enabled:  true
org.kde.kurifilter-ikws: Default Shortcut:  ""
org.kde.kurifilter-ikws: Keyword Delimiter:  :
Error contacting the daemon!
I/O warning : failed to load external entity "/home/user/.local/share/qalculate/eurofxref-daily.xml"
I/O warning : failed to load external entity "/home/user/.qalculate/eurofxref-daily.xml"
[New Thread 0x7fffbdc11700 (LWP 2823)]
[New Thread 0x7fffbd410700 (LWP 2824)]
[New Thread 0x7fffbcc0f700 (LWP 2825)]
[New Thread 0x7fffb7fff700 (LWP 2826)]
[New Thread 0x7fffb77fe700 (LWP 2827)]
[New Thread 0x7fffb6ffd700 (LWP 2828)]
[New Thread 0x7fffb67fc700 (LWP 2829)]
[New Thread 0x7fffb5ffb700 (LWP 2830)]
libpng warning: iCCP: known incorrect sRGB profile
session switching to "net"
ktp-common-internals: Current presence changed
ktp-common-internals: Current presence changed
true
true
^C
Thread 1 "krunner" received signal SIGINT, Interrupt.
0x00007ffff156f499 in __lll_lock_elision () from /usr/lib/libpthread.so.0

(gdb) thread apply all bt

Thread 13 (Thread 0x7fffb5ffb700 (LWP 2830)):
#0  0x00007fffc070d89f in Baloo::DocumentUrlDB::get(unsigned long long) const ()
   from /usr/lib/libKF5BalooEngine.so.5
#1  0x00007fffc072d761 in Baloo::Transaction::documentUrl(unsigned long long) const ()
   from /usr/lib/libKF5BalooEngine.so.5
#2  0x00007fffc0b919c9 in ?? () from /usr/lib/libKF5Baloo.so.5
#3  0x00007fffc0b7c94f in Baloo::Query::exec() () from /usr/lib/libKF5Baloo.so.5
#4  0x00007fffc0da1981 in ?? () from /usr/lib/qt/plugins/krunner_baloosearchrunner.so
#5  0x00007fffc0da26c0 in ?? () from /usr/lib/qt/plugins/krunner_baloosearchrunner.so
#6  0x00007fffd197ce78 in Plasma::AbstractRunner::performMatch(Plasma::RunnerContext&) ()
   from /usr/lib/libKF5Runner.so.5
#7  0x00007fffd175aba8 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib/libKF5ThreadWeaver.so.5
#8  0x00007fffd1759aca in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib/libKF5ThreadWeaver.so.5
#9  0x00007fffd1759170 in ThreadWeaver::Thread::run() () from /usr/lib/libKF5ThreadWeaver.so.5
#10 0x00007ffff40a2d78 in ?? () from /usr/lib/libQt5Core.so.5
#11 0x00007ffff1564484 in start_thread () from /usr/lib/libpthread.so.0
#12 0x00007ffff39b56dd in clone () from /usr/lib/libc.so.6

Thread 12 (Thread 0x7fffb67fc700 (LWP 2829)):
#0  0x00007ffff156a0af in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff40a3c2b in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQt5Core.so.5
#2  0x00007fffd17571f0 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fffd175b9a8 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
---Type <return> to continue, or q <return> to quit---
#5  0x00007fffd175ba02 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
#7  0x00007fffd1759229 in ThreadWeaver::Thread::run() () from /usr/lib/libKF5ThreadWeaver.so.5
#8  0x00007ffff40a2d78 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007ffff1564484 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff39b56dd in clone () from /usr/lib/libc.so.6

Thread 11 (Thread 0x7fffb6ffd700 (LWP 2828)):
#0  0x00007ffff156a0af in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff40a3c2b in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQt5Core.so.5
#2  0x00007fffd17571f0 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fffd175b9a8 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fffd175ba02 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
#7  0x00007fffd1759229 in ThreadWeaver::Thread::run() () from /usr/lib/libKF5ThreadWeaver.so.5
#8  0x00007ffff40a2d78 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007ffff1564484 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff39b56dd in clone () from /usr/lib/libc.so.6

Thread 10 (Thread 0x7fffb77fe700 (LWP 2827)):
#0  0x00007ffff156a0af in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff40a3c2b in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQt5Core.so.5
#2  0x00007fffd17571f0 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thr---Type <return> to continue, or q <return> to quit---
ead*, bool, bool, bool) () from /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fffd175b9a8 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fffd175ba02 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
#7  0x00007fffd1759229 in ThreadWeaver::Thread::run() () from /usr/lib/libKF5ThreadWeaver.so.5
#8  0x00007ffff40a2d78 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007ffff1564484 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff39b56dd in clone () from /usr/lib/libc.so.6

Thread 9 (Thread 0x7fffb7fff700 (LWP 2826)):
#0  0x00007ffff156a0af in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff40a3c2b in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQt5Core.so.5
#2  0x00007fffd17571f0 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fffd175b9a8 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fffd1759229 in ThreadWeaver::Thread::run() () from /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007ffff40a2d78 in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007ffff1564484 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007ffff39b56dd in clone () from /usr/lib/libc.so.6

Thread 8 (Thread 0x7fffbcc0f700 (LWP 2825)):
#0  0x00007ffff156a0af in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff40a3c2b in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#2  0x00007fffd17571f0 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fffd175b9a8 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fffd175ba02 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
#7  0x00007fffd1759229 in ThreadWeaver::Thread::run() () from /usr/lib/libKF5ThreadWeaver.so.5
#8  0x00007ffff40a2d78 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007ffff1564484 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff39b56dd in clone () from /usr/lib/libc.so.6

Thread 7 (Thread 0x7fffbd410700 (LWP 2824)):
#0  0x00007ffff156a0af in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff40a3c2b in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQt5Core.so.5
#2  0x00007fffd17571f0 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fffd175b9a8 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fffd175ba02 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
#7  0x00007fffd1759229 in ThreadWeaver::Thread::run() () from /usr/lib/libKF5ThreadWeaver.so.5
#8  0x00007ffff40a2d78 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007ffff1564484 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff39b56dd in clone () from /usr/lib/libc.so.6

---Type <return> to continue, or q <return> to quit---
Thread 6 (Thread 0x7fffbdc11700 (LWP 2823)):
#0  0x00007ffff156a0af in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff40a3c2b in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQt5Core.so.5
#2  0x00007fffd17571f0 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fffd175b9a8 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fffd175ba02 in ?? () from /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fffd1756293 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) ()
   from /usr/lib/libKF5ThreadWeaver.so.5
#7  0x00007fffd1759229 in ThreadWeaver::Thread::run() () from /usr/lib/libKF5ThreadWeaver.so.5
#8  0x00007ffff40a2d78 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007ffff1564484 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff39b56dd in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7fffcafe6700 (LWP 2822)):
#0  0x00007ffff156a0af in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff40a3c2b in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/libQt5Core.so.5
#2  0x00007ffff6e41435 in ?? () from /usr/lib/libQt5Quick.so.5
#3  0x00007ffff6e41d2a in ?? () from /usr/lib/libQt5Quick.so.5
#4  0x00007ffff40a2d78 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff1564484 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007ffff39b56dd in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7fffd8be5700 (LWP 2821)):
#0  0x00007ffff39ac6cd in poll () from /usr/lib/libc.so.6
#1  0x00007fffef65ffd6 in ?? () from /usr/lib/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#2  0x00007fffef6600ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff42d157f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
    () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff427b0da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#5  0x00007ffff409e0f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff69a4445 in ?? () from /usr/lib/libQt5Qml.so.5
#7  0x00007ffff40a2d78 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007ffff1564484 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff39b56dd in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7fffdbfff700 (LWP 2820)):
#0  0x00007ffff39ac6cd in poll () from /usr/lib/libc.so.6
#1  0x00007fffef65ffd6 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffef6600ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff42d159b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
    () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff427b0da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#5  0x00007ffff409e0f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff5db3e75 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007ffff40a2d78 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007ffff1564484 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff39b56dd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fffe2aa8700 (LWP 2819)):
#0  0x00007ffff39ac6cd in poll () from /usr/lib/libc.so.6
#1  0x00007ffff2e888e0 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007ffff2e8a679 in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007fffe4e18469 in ?? () from /usr/lib/libQt5XcbQpa.so.5
---Type <return> to continue, or q <return> to quit---
#4  0x00007ffff40a2d78 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff1564484 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007ffff39b56dd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7ffff7efe7c0 (LWP 2815)):
#0  0x00007ffff156f499 in __lll_lock_elision () from /usr/lib/libpthread.so.0
#1  0x00007ffff30d51c3 in ?? () from /usr/lib/libX11.so.6
#2  0x00007ffff30d4bc7 in XLockDisplay () from /usr/lib/libX11.so.6
#3  0x00007fffe1a8590f in ?? () from /usr/lib/qt/plugins/xcbglintegrations/libqxcb-glx-integration.so
#4  0x00007fffe4e19d1f in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) ()
   from /usr/lib/libQt5XcbQpa.so.5
#5  0x00007fffe4e1a8c5 in QXcbConnection::processXcbEvents() () from /usr/lib/libQt5XcbQpa.so.5
#6  0x00007ffff42a9349 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#7  0x00007ffff51f5e3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/libQt5Widgets.so.5
#8  0x00007ffff51fd5b1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#9  0x00007ffff427cc80 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /usr/lib/libQt5Core.so.5
#10 0x00007ffff427f3fd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/libQt5Core.so.5
#11 0x00007ffff42d1173 in ?? () from /usr/lib/libQt5Core.so.5
#12 0x00007fffef65fdd7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#13 0x00007fffef660040 in ?? () from /usr/lib/libglib-2.0.so.0
#14 0x00007fffef6600ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#15 0x00007ffff42d157f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
    () from /usr/lib/libQt5Core.so.5
#16 0x00007ffff427b0da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#17 0x00007ffff42835cc in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#18 0x0000000000406beb in ?? ()
---Type <return> to continue, or q <return> to quit---
#19 0x00007ffff38ee741 in __libc_start_main () from /usr/lib/libc.so.6
#20 0x0000000000406c69 in _start ()
Comment 1 xwissen+kde 2016-07-24 14:13:11 UTC
Thanks to suggestion irc from d_ed i moved ~/.local/share/baloo and tried again. No high cpu usage anymore.
Comment 2 xwissen+kde 2016-07-24 14:13:36 UTC
baloosearch -v
Baloo 5.24.0

wasn't in select
Comment 3 Christoph Cullmann 2016-09-11 21:34:53 UTC

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