Bug 445621

Summary: No music library indexed - baloo's fault it seems
Product: [Applications] Elisa Reporter: Rob Collins <robcollins55>
Component: balooAssignee: Matthieu Gallien <matthieu_gallien>
Status: RESOLVED DUPLICATE    
Severity: major CC: nate, tagwerk19
Priority: NOR    
Version: 21.08.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=445620
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Rob Collins 2021-11-17 02:08:24 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 ....resumes normally and indexing seems to progress by viewing with cmd: balooctl status
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 successfully 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.
- no music library appears in Elisa

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

- music library metadata should appear in Elisa and Dolphin (does not do that with this bug).

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.  I have had to swap to the "index files directly" option in Elisa which is sad because that's not the indexing method intention of Elisa as I understand it.  I have filed a similar report under "frameworks-baloo".
Comment 1 tagwerk19 2021-11-17 08:55:58 UTC
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...
Comment 2 Nate Graham 2021-11-23 21:31:58 UTC

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