Bug 445620 - Baloo indexing crashes while indexing random vorbis-tagged flac files on samba share
Summary: Baloo indexing crashes while indexing random vorbis-tagged flac files on samb...
Status: REPORTED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.88.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-17 01:56 UTC by Rob Collins
Modified: 2021-11-17 19:10 UTC (History)
1 user (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 Rob Collins 2021-11-17 01:56:25 UTC
STEPS TO REPRODUCE
0. Set up network samba share using systemd .automount and .mount units, working fine with network music directory mounted locally as (not important so I make something up here) ~/me/music/.
1. cmd: balooctl resume
2. cmd: balooctl status shows the indexing is stuck with files left to index - ie indexing appears frozen at a particular flac file after successfully indexing x1000's of other flac files.
3. after a while a TagLib error is automatically printed at the command line.  The error seems to vary slightly each time but all errors are similar to "TagLib: MPEG::Properties::read() -- Could not find a valid last MPEG frame in the stream. "
4. interestingly, the supposed successful indexed flac file metadata of the sucessessfully indexed flac's do not show up in (eg) "artist" or "album" columns in Dolphin.

OBSERVED RESULT
- baloo stops indexing, stuck with a remaining number of files to index when balooctl status is entered in terminal
- metadata from flac files reported by balooctl status as successfully indexed do not show up in (eg) "artist" or "album" columns in Dolphin.

EXPECTED RESULT
baloo should finish its indexing work and following finish should return the following with the command  "balooctl status":
Baloo File Indexer is running
Indexer state: Idle (Powersave)
Total files indexed: (some number)
Files waiting for content indexing: 0
Files failed to index: 0
Current size of index is (some number) MiB

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:   5.15.2-zen (Garuda Linux distribution of Arch Linux)
KDE Plasma Version:  5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
taglib version: 1.12-1 from archlinux "extra" repo

ADDITIONAL INFORMATION
I have tried this under both wayland and x11 with the same/similar taglib error results.  This bug is particularly problematic for Elisa music library collation as it relies heavily on the baloo backend, and is the reason why I'm here.  I will submit this bug under Elisa also, being such a critical part of that program.
Comment 1 tagwerk19 2021-11-17 19:10:55 UTC
Three things perhaps ...

1...
    You can see what's been indexed for particular files with
        $ balooshow -x oneofyourfiles
    If baloo has extracted the ID3 tags, they should be listed there...

2...
    Check whether KDE/baloo is seeing the mimetype correctly, try
        $ kmimetypefinder5 oneofyourfiles
    and/or
        $ xdg-mime query filetype oneofyourfiles

3...
    Copy the file from the Samba share to the local disc and repeat the tests there.