Bug 480445 - Baloo File Crashes on Login
Summary: Baloo File Crashes on Login
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.114.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-01-28 16:30 UTC by romanavo
Modified: 2024-08-06 03:46 UTC (History)
2 users (show)

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


Attachments
This is the XMP file that is causing the core dump for me (555 bytes, application/x-compressed-tar)
2024-06-11 20:28 UTC, Michael Moore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description romanavo 2024-01-28 16:30:02 UTC
Application: baloo_file_extractor (5.114.0)

Qt Version: 5.15.12
Frameworks Version: 5.114.0
Operating System: Linux 6.7.1-arch1-1 x86_64
Windowing System: X11
Distribution: EndeavourOS
DrKonqi: 5.27.10 [KCrashBackend]

-- Information about the crash:
I used gnome archive manager yesterday and clicked show the files and quit, and then I started getting "Baloo File Extractor closed unsucessfully" over and over again. I am now getting it on launch after a reboot and a full shutdown.

The crash can be reproduced every time.

-- Backtrace:
Application: Baloo File Extractor (baloo_file_extractor), signal: Aborted

[KCrash Handler]
#4  0x00007aef7ceac83c in ?? () from /usr/lib/libc.so.6
#5  0x00007aef7ce5c668 in raise () from /usr/lib/libc.so.6
#6  0x00007aef7ce444b8 in abort () from /usr/lib/libc.so.6
#7  0x00007aef7d2b1b56 in ?? () from /usr/lib/liblmdb.so
#8  0x00007aef7d2afc6e in ?? () from /usr/lib/liblmdb.so
#9  0x00007aef7d2bd8c6 in ?? () from /usr/lib/liblmdb.so
#10 0x00007aef7d2b4fa3 in ?? () from /usr/lib/liblmdb.so
#11 0x00007aef7d2b6bec in ?? () from /usr/lib/liblmdb.so
#12 0x00007aef7d2b9716 in mdb_cursor_put () from /usr/lib/liblmdb.so
#13 0x00007aef7d2ba668 in mdb_put () from /usr/lib/liblmdb.so
#14 0x00007aef7e231e7c in Baloo::PostingDB::put(QByteArray const&, QVector<unsigned long long> const&) () from /usr/lib/libKF5BalooEngine.so.5
#15 0x00007aef7e23e93a in Baloo::WriteTransaction::commit() () from /usr/lib/libKF5BalooEngine.so.5
#16 0x00007aef7e23497e in Baloo::Transaction::commit() () from /usr/lib/libKF5BalooEngine.so.5
#17 0x000064889b3cdfc5 in ?? ()
#18 0x00007aef7d6d30a7 in ?? () from /usr/lib/libQt5Core.so.5
#19 0x00007aef7d6c38de in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#20 0x00007aef7d69bef8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#21 0x00007aef7d6ea55b in QTimerInfoList::activateTimers() () from /usr/lib/libQt5Core.so.5
#22 0x00007aef7d6eab92 in ?? () from /usr/lib/libQt5Core.so.5
#23 0x00007aef7c10df69 in ?? () from /usr/lib/libglib-2.0.so.0
#24 0x00007aef7c16c3a7 in ?? () from /usr/lib/libglib-2.0.so.0
#25 0x00007aef7c10c162 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0x00007aef7d6ead0c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#27 0x00007aef7d69ac04 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#28 0x00007aef7d69c0a3 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#29 0x000064889b3c3d4e in ?? ()
#30 0x00007aef7ce45cd0 in ?? () from /usr/lib/libc.so.6
#31 0x00007aef7ce45d8a in __libc_start_main () from /usr/lib/libc.so.6
#32 0x000064889b3c3e75 in ?? ()
[Inferior 1 (process 2654) detached]

The reporter indicates this bug may be a duplicate of or related to bug 477404.

Reported using DrKonqi
Comment 1 tagwerk19 2024-01-29 16:36:20 UTC
(In reply to romanavo from comment #0)
> I used gnome archive manager yesterday and clicked show the files and quit,
> and then I started getting "Baloo File Extractor closed unsucessfully" over
> and over again. I am now getting it on launch after a reboot and a full
> shutdown.

I wonder if "balooctl monitor" will show which file is causing the problem. What sort of archive file were you opening? I've tried opening a .tgz file (Gnome "Archive Manager" on KDE, installed with pacman, with EndeavourOS_Galileo-Neo-2024.01.25.iso) and that was OK.

Things to consider are whether any temporary files or directory structures are written to disc (and quickly deleted) might depend on the type of archive, whether you have Archive Manager as a flatpak, whether there are any difficult to index files within the archive.
Comment 2 Michael Moore 2024-06-11 20:28:44 UTC
Created attachment 170392 [details]
This is the XMP file that is causing the core dump for me

The attached file is causing the type of crash show by another user. KDE bug submit tool detected this as a duplicate. 

The file is an XMP file (XML metadata sidecar file) for a video I took in 2017. The XMP file was generated by digiKam within the last 12 months, so either Digikam 7.9 or Digikam 8.3. I don't remember exactly when I upgraded. 

There are two outcomes when I manually index the file.

Before running these commands I have suspended the indexer

michael@trex:/tmp$ balooctl index /tmp/IMG_2666.MOV.xmp 
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
kf.baloo.engine: Transaction::commit MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
Indexing /tmp/IMG_2666.MOV.xmp
File(s) indexed

michael@trex:/tmp$ balooctl index /tmp/IMG_2666.MOV.xmp 
mdb.c:2156: Assertion 'rc == 0' failed in mdb_page_dirty()
Aborted (core dumped)
michael@trex:/tmp$

Most of my baloo failed-to-index files are xmp files. 

michael@trex:/tmp$ balooctl failed | wc -l
130
michael@trex:/tmp$ balooctl failed | grep xmp | wc -l
124
Comment 3 tagwerk19 2024-06-12 06:22:59 UTC
(In reply to Michael Moore from comment #2)
> Created attachment 170392 [details]
> This is the XMP file that is causing the core dump for me
This looks OK to me (downloaded into a just-updated Neon User)

    $ balooshow6 -x IMG_2666.MOV.xmp
    a50ad840cbb17 2215426839 676013 IMG_2666.MOV.xmp [/home/test/Downloads/tmp/IMG_2666.MOV.xmp]
            Mtime: 1718137229 2024-06-11T22:20:29
            Ctime: 1718171701 2024-06-12T07:55:01
            Cached properties:
                    Line Count: 25

    Internal Info
    File Name Terms: F2666 Fimg Fmov Fxmp  
    XAttr Terms:
    Plain Text Terms: 0 02 07 1.0 12 16 1999 2021 22 26t03 4.4.0 < = > about adobe begin colorlabel com core createdate datecreated datetime datetimeoriginal dateutc description digikam end exif exiv2 http id meta metadatadate modificationdate modifydate ns org photoshop picklabel rdf syntax tiff urgency video w w3 w5m0mpcehihzreszntczkc9d www x xap xmlns xmp xmpmeta xmptk xpacket
    Property Terms: Mplain Mtext T5 T8 X20-25
    lineCount: 25

    $ baloosearch6 W5M0MpCehiHzreSzNTczkc9d
    /home/test/Downloads/tmp/IMG_2666.MOV.xmp

> Most of my baloo failed-to-index files are xmp files. 
> 
> michael@trex:/tmp$ balooctl failed | wc -l
> 130
> michael@trex:/tmp$ balooctl failed | grep xmp | wc -l
> 124
Ooo. Strange.

I don't *think* XMP data should be troublesome...
Comment 4 tagwerk19 2024-06-12 06:29:54 UTC
"MDB_BAD_TXN"s suggest that the Baloo database is messed up.

If you have another system available, check whether you get the same behaviour when copying the file to it. Could be that you'll have to purge the index and reindex...
Comment 5 tagwerk19 2024-07-07 12:47:10 UTC
(In reply to tagwerk19 from comment #4)
> If you have another system available, check whether you get the same
> behaviour when copying the file to it. Could be that you'll have to purge
> the index and reindex...
Did this make a difference?
Comment 6 Bug Janitor Service 2024-07-22 03:46:23 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
mark the bug 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 7 Bug Janitor Service 2024-08-06 03:46:35 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.