Bug 434303 - Elisa recreates it's database (using Baloo indexing) after restarting the pc
Summary: Elisa recreates it's database (using Baloo indexing) after restarting the pc
Status: RESOLVED FIXED
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: 20.12.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-11 21:42 UTC by Lorenz Hoffmann
Modified: 2023-11-17 15:42 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenz Hoffmann 2021-03-11 21:42:05 UTC
SUMMARY
Elisa searches for all files on every start instead of creating a consistent database once and updating it later.

STEPS TO REPRODUCE
1. Start Elisa
2. Restart the system
3. Start Elisa again

OBSERVED RESULT
Elisa searches for music in all specified directories.

EXPECTED RESULT
Elisa should search for music files once and only update it later as it does when it's quit and restarted without rebooting the whole pc.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro (Arch)
(available in About System)
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I have around 2000/3000 flac files, which takes a few seconds to search through - that's the reason I'm reporting this.
Comment 1 Nate Graham 2021-03-15 23:36:51 UTC
Are you using native Baloo indexing or filesystem indexing?
Comment 2 Lorenz Hoffmann 2021-03-15 23:50:09 UTC
(In reply to Nate Graham from comment #1)
> Are you using native Baloo indexing or filesystem indexing?

I'm using the default values everywhere, 'force filesystem indexing' is not checked.
Comment 3 Nate Graham 2021-03-16 02:22:48 UTC
Thanks.
Comment 4 Lorenz Hoffmann 2021-03-23 01:46:19 UTC
> I'm using the default values everywhere

That was actually not true, I had enabled to keep elisa running in the system tray when main window is closed.

I also disabled to show the progress in the window bar.
Comment 5 Paul McAuley 2021-11-05 17:34:03 UTC
I have this problem too. Every time I start Elisa it tries to re-import all 9000 music files taking 30 minutes. It does not seem to remember the imported files. I am using "fast native indexer" with Elisa 21.08.2 (though have experienced this issue pretty much since Elisa existed) on the following system:

Operating System: openSUSE Leap 15.3
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.3.18-59.27-preempt (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 630
Comment 6 tagwerk19 2021-11-16 17:15:30 UTC
(In reply to Paul McAuley from comment #5)
> I have this problem too...
> ... Operating System: openSUSE Leap 15.3
There's an issue with openSUSE and BTRFS and Baloo, see
    https://bugs.kde.org/show_bug.cgi?id=402154#c12

The device number used for the BTRFS partition is not always the same, can get a new (minor) device number on a reboot.

When baloo sees a file with a 'new' device number/inode, it treats it a a new file and reindexes it.

It can be that baloo has many index entries for one file, could that that this confuses Elisa.
Comment 7 Christoph Cullmann 2023-11-17 15:42:18 UTC
Fixed by removing the 'fast' indexer.
https://invent.kde.org/multimedia/elisa/-/merge_requests/521