Bug 472540 - Baloo constant crashes
Summary: Baloo constant crashes
Status: RESOLVED DUPLICATE of bug 405284
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.108.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-07-23 17:35 UTC by DG
Modified: 2023-08-13 15:17 UTC (History)
3 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 DG 2023-07-23 17:35:35 UTC
Application: baloo_file_extractor (5.108.0)

Qt Version: 5.15.10
Frameworks Version: 5.108.0
Operating System: Linux 6.4.3-1-MANJARO x86_64
Windowing System: X11
Distribution: Manjaro Linux
DrKonqi: 5.27.6 [KCrashBackend]

-- Information about the crash:
Baloo gives a crash and error just after a fresh reboot. Ignoring this several time and it will eventually go away; it may randomly come back at times.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Baloo File Extractor (baloo_file_extractor), signal: Aborted
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#7  0x00007f172fc9f2d3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#8  0x00007f172fc4fa08 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#9  0x00007f172fc38538 in __GI_abort () at abort.c:79
#10 0x00007f1730e8291e in mdb_assert_fail.constprop.0 (env=0x561bd57daea0, expr_txt=<optimized out>, func=<optimized out>, line=<optimized out>, file=0x7f1730e8f9e0 "mdb.c") at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:1571
#11 0x00007f1730e80c2a in mdb_page_dirty (txn=<optimized out>, mp=<optimized out>) at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:2143
#12 mdb_page_dirty (txn=0x561bd57dc300, mp=<optimized out>) at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:2143
#13 0x00007f1730e8e646 in mdb_page_alloc.isra.0 (num=<optimized out>, mp=0x7ffdf86cf4f8, mc=<optimized out>) at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:2337
#14 0x00007f1730e85d53 in mdb_page_touch (mc=mc@entry=0x7ffdf86cf980) at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:2457
#15 0x00007f1730e879ac in mdb_cursor_touch (mc=mc@entry=0x7ffdf86cf980) at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:6563
#16 0x00007f1730e8bc8d in mdb_cursor_del (flags=32, mc=0x7ffdf86cf980) at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:7121
#17 mdb_cursor_del (mc=mc@entry=0x7ffdf86cf980, flags=flags@entry=32) at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:7103
#18 0x00007f1730e8d485 in mdb_del0 (txn=0x561bd57dc300, dbi=<optimized out>, key=0x7ffdf86cfd70, data=<optimized out>, flags=32) at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:8621
#19 0x00007f1731005007 in Baloo::DocumentDB::del (this=<optimized out>, docId=<optimized out>) at /usr/src/debug/baloo/baloo-5.108.0/src/engine/documentdb.cpp:105
#20 0x00007f173101d478 in Baloo::WriteTransaction::removeDocument (this=0x561bd57d9bc0, id=1157051304705536) at /usr/src/debug/baloo/baloo-5.108.0/src/engine/writetransaction.cpp:116
#21 0x0000561bd3e6c09b in Baloo::App::processNextFile (this=0x7ffdf86d0440) at /usr/src/debug/baloo/baloo-5.108.0/src/file/extractor/app.cpp:96
#22 0x00007f17304d2927 in ?? () from /usr/lib/libQt5Core.so.5
#23 0x00007f17304c315e in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#24 0x00007f173049b778 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#25 0x00007f17304e9e2b in QTimerInfoList::activateTimers() () from /usr/lib/libQt5Core.so.5
#26 0x00007f17304ea40a in ?? () from /usr/lib/libQt5Core.so.5
#27 0x00007f172ef0fa31 in g_main_dispatch (context=0x7f1724000ee0) at ../glib/glib/gmain.c:3460
#28 g_main_context_dispatch (context=0x7f1724000ee0) at ../glib/glib/gmain.c:4200
#29 0x00007f172ef6ccc9 in g_main_context_iterate.isra.0 (context=context@entry=0x7f1724000ee0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#30 0x00007f172ef0d0e2 in g_main_context_iteration (context=0x7f1724000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#31 0x00007f17304ea5cc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#32 0x00007f173049a484 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#33 0x00007f173049b923 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#34 0x0000561bd3e61d4e in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/baloo/baloo-5.108.0/src/file/extractor/main.cpp:43
[Inferior 1 (process 41131) detached]

Reported using DrKonqi
Comment 1 tagwerk19 2023-07-23 20:47:44 UTC
It may be that you've got a corrupted index. Igor Poboiko has a consistency check script (in python), with a brief description here:

    https://invent.kde.org/frameworks/baloo/-/merge_requests/87#note_535270

that might be worth a try. Heads up about the need to load the whole database into memory, if you have a big database it's not going to work.

I was able to install on Fedora with:

    $ sudo pkcon install python3-pip
    $ pip install lmdb
    $ wget https://invent.kde.org/frameworks/baloo/uploads/bdc9f5f17fc96490b7bd4a22ac664843/baloo-checkdb.py
    $ chmod 700 baloo-checkdb.py

If the index is corrupt, probably your only option is to purge and reindex.
Comment 2 hunterofgypsy 2023-07-24 06:19:54 UTC
Using Artix Linux (open-rc). This didn't used to happen. But after some updates every time I start my computer and log in it tells me that baloo has crashed.
Comment 3 tagwerk19 2023-07-24 07:32:23 UTC
(In reply to hunterofgypsy from comment #2)
> Using Artix Linux (open-rc). This didn't used to happen. But after some
> updates every time I start my computer and log in it tells me that baloo has
> crashed.
Do you know what your previous version, the one that was OK, was? 

There's not been a lot of changes to the code in the last months (although a few very recent). The largest change was this:
    https://invent.kde.org/frameworks/baloo/-/merge_requests/87
which was to fix an issue with non-printable characters. 

You could try the consistency check code or reindex with a "balooctl purge"
Comment 4 tagwerk19 2023-07-24 16:47:27 UTC
(In reply to tagwerk19 from comment #1)
> ... I was able to install on Fedora with ...
For Manjaro:

    $ sudo pkcon install python-lmdb
    $ wget https://invent.kde.org/frameworks/baloo/uploads/bdc9f5f17fc96490b7bd4a22ac664843/baloo-checkdb.py
    $ chmod 700 baloo-checkdb.py
Comment 5 Nicolas Fella 2023-08-13 15:17:20 UTC

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