Bug 397071

Summary: [Indexing issues] Album entries duplicate when moving folders to a different place. Empty album entries don't get deleted. Inability to restore playlist session.
Product: [Applications] Elisa Reporter: Jakub Strzelecki <kubast2>
Component: balooAssignee: Matthieu Gallien <matthieu_gallien>
Status: RESOLVED FIXED    
Severity: normal CC: heri+kde, nate, neousr
Priority: NOR    
Version: 0.2.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=392793
https://bugs.kde.org/show_bug.cgi?id=429006
Latest Commit: Version Fixed In: 24.02
Sentry Crash Report:
Attachments: Screenshots

Description Jakub Strzelecki 2018-08-01 22:53:40 UTC
Created attachment 114260 [details]
Screenshots

Empty album entries/album entries created by moving folders don't get removed from the view.
Moving files/folders to a new folder ,causes Elisa to create duplicate entries ,I have tried restart the database somehow ,but wasn't able to ,I tried:
1.Adding a custom folder and deleting ~/Music default entry ,deleting ~/Music entry when there is a different one causes Elisa to crash.
2.Going to dolphin ,clicking music it prevents elisa from indexing the files ,closing the dolphin and resetting setting to ~/Music from ~/Music(by deleting the entry ,causing it to default back to ~/Music and applying changes). There are no multiple entries neither in dolphin nor in elisa in tracks view or artist view.
3.Reinstalling the application doesn't solve the issue(both by purging it with pacman -Rns or just reinstalling it with pacman -S). 
I will provide 2 pictures for this bug

Also by observing behavior of elisa when turning it off and turning it back on with this bug.
I have noticed that elisa searched for the first album in it is database that shares the right name ,so when one turns off Elisa and turns it back on ,elisa is unable to play the songs ,since she find the album ,but the album is empty ,so the entries in the current playing entry are treated as invalid. I will add in 3 screenshots for this bug(an album that has no empty duplicates and those plays just fine ,and 2 pics for the album that has an empty album duplicate).


It is a story for another bug report ,but sometimes some new folders/albums don't get indexed by Elisa ,and for those I had to go to Files, go to a folder containing indexed files and play one of the files inside of the folder.

I do believe it is baloo integration/baloo indexer integration issue ,but I might be wrong ,but at least the scope(duplicate entries) sounds like it.
Comment 1 Matthieu Gallien 2018-09-05 19:59:57 UTC
Thanks for your report.

A new stable release is being worked on. I hope to be able to improve the stability of this area.

Are you able to help (testing is usually of a great help) ?
Comment 2 Matthieu Gallien 2018-09-26 15:43:21 UTC
An evolution in Baloo will be necessary to ensure Elisa gets notified of moved and removed files. Currently only support for moved files notifications is in Elisa and Baloo.
Comment 3 Jakub Strzelecki 2018-10-01 16:30:10 UTC
Sure thing, I just don't check my emails ever, well I guess, I will need those 2 packages from aur:
>elisa-git
>baloo-git
Comment 4 Matthieu Gallien 2018-10-01 16:40:12 UTC
(In reply to Jakub Strzelecki from comment #3)
> Sure thing, I just don't check my emails ever, well I guess, I will need
> those 2 packages from aur:
> >elisa-git
> >baloo-git

Thanks for your test offer. It is currently not ready to be tested. I will keep you informed.
Comment 5 Neousr 2018-12-19 23:47:05 UTC
I have a similar problem and it seems to fit on this bug.

Removing a folder from Elisa configure will leave album/artists entries blank until the database is erased manually while Eilsa is closed.
Comment 6 Nate Graham 2023-11-17 21:10:13 UTC
This should be fixed in the next release which no longer uses Baloo.