<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>472540</bug_id>
          
          <creation_ts>2023-07-23 17:35:35 +0000</creation_ts>
          <short_desc>Baloo constant crashes</short_desc>
          <delta_ts>2023-08-13 15:17:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-baloo</product>
          <component>Baloo File Daemon</component>
          <version>5.108.0</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>405284</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>drkonqi</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="DG">dcgowan</reporter>
          <assigned_to>baloo-bugs-null</assigned_to>
          <cc>hunterofgypsy</cc>
    
    <cc>nicolas.fella</cc>
    
    <cc>tagwerk19</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2242308</commentid>
    <comment_count>0</comment_count>
    <who name="DG">dcgowan</who>
    <bug_when>2023-07-23 17:35:35 +0000</bug_when>
    <thetext>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&lt;char []&gt; = {get() = &lt;optimized out&gt;}
[KCrash Handler]
#6  __pthread_kill_implementation (threadid=&lt;optimized out&gt;, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#7  0x00007f172fc9f2d3 in __pthread_kill_internal (signo=6, threadid=&lt;optimized out&gt;) 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=&lt;optimized out&gt;, func=&lt;optimized out&gt;, line=&lt;optimized out&gt;, file=0x7f1730e8f9e0 &quot;mdb.c&quot;) at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:1571
#11 0x00007f1730e80c2a in mdb_page_dirty (txn=&lt;optimized out&gt;, mp=&lt;optimized out&gt;) at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:2143
#12 mdb_page_dirty (txn=0x561bd57dc300, mp=&lt;optimized out&gt;) at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:2143
#13 0x00007f1730e8e646 in mdb_page_alloc.isra.0 (num=&lt;optimized out&gt;, mp=0x7ffdf86cf4f8, mc=&lt;optimized out&gt;) 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=&lt;optimized out&gt;, key=0x7ffdf86cfd70, data=&lt;optimized out&gt;, flags=32) at /usr/src/debug/lmdb/openldap/libraries/liblmdb/mdb.c:8621
#19 0x00007f1731005007 in Baloo::DocumentDB::del (this=&lt;optimized out&gt;, docId=&lt;optimized out&gt;) 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=&lt;optimized out&gt;) 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&lt;QEventLoop::ProcessEventsFlag&gt;) () from /usr/lib/libQt5Core.so.5
#32 0x00007f173049a484 in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () from /usr/lib/libQt5Core.so.5
#33 0x00007f173049b923 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#34 0x0000561bd3e61d4e in main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at /usr/src/debug/baloo/baloo-5.108.0/src/file/extractor/main.cpp:43
[Inferior 1 (process 41131) detached]

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2242335</commentid>
    <comment_count>1</comment_count>
    <who name="">tagwerk19</who>
    <bug_when>2023-07-23 20:47:44 +0000</bug_when>
    <thetext>It may be that you&apos;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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2242392</commentid>
    <comment_count>2</comment_count>
    <who name="">hunterofgypsy</who>
    <bug_when>2023-07-24 06:19:54 +0000</bug_when>
    <thetext>Using Artix Linux (open-rc). This didn&apos;t used to happen. But after some updates every time I start my computer and log in it tells me that baloo has crashed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2242402</commentid>
    <comment_count>3</comment_count>
    <who name="">tagwerk19</who>
    <bug_when>2023-07-24 07:32:23 +0000</bug_when>
    <thetext>(In reply to hunterofgypsy from comment #2)
&gt; Using Artix Linux (open-rc). This didn&apos;t used to happen. But after some
&gt; updates every time I start my computer and log in it tells me that baloo has
&gt; crashed.
Do you know what your previous version, the one that was OK, was? 

There&apos;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 &quot;balooctl purge&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2242508</commentid>
    <comment_count>4</comment_count>
    <who name="">tagwerk19</who>
    <bug_when>2023-07-24 16:47:27 +0000</bug_when>
    <thetext>(In reply to tagwerk19 from comment #1)
&gt; ... 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2246296</commentid>
    <comment_count>5</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2023-08-13 15:17:20 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 405284 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>