Bug 457746 - Deleted audio file not removed from index as expected
Summary: Deleted audio file not removed from index as expected
Status: RESOLVED DUPLICATE of bug 353874
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.96.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-11 07:54 UTC by Dmitry
Modified: 2024-02-29 09:21 UTC (History)
5 users (show)

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


Attachments
I show that the file has not disappeared (1.54 MB, image/png)
2022-08-11 07:54 UTC, Dmitry
Details
Properties appeared out of nowhere (786.51 KB, image/png)
2022-08-12 08:01 UTC, Dmitry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2022-08-11 07:54:42 UTC
Created attachment 151242 [details]
I show that the file has not disappeared

SUMMARY
***
I do not know what led to the error. After deleting the song, it did not disappear in Elisa. If I click on "Show Location", then it will point to another folder. Not the one where this song was. I am sure that this file no longer exists.

Restarting and updating the music list does not help. This song is not playing and I do not know how to remove it from here.

This has never happened before, so I don't know how to reproduce the error
***


STEPS TO REPRODUCE
1. Delete a file from your computer   \(〇_o)/
2. Look at the list of albums. The song will be there

OBSERVED RESULT
The file was deleted from the computer, but remained in Elisa as an album and is not deleted

EXPECTED RESULT
The file was deleted and after reindexing it is not visible

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.16-zen1-1-zen (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-08-11 18:44:23 UTC
I have a few questions:
1. what does `baloosearch Helena` in a terminal window show?
2. If you're using the default "fast native file indexer" setting in the settings window, can you try the "filesystem indexer" and then refresh the music collection from the hamburger menu and see if that helps?
Comment 2 Dmitry 2022-08-12 06:21:33 UTC
(In reply to Nate Graham from comment #1)
> I have a few questions:
> 1. what does `baloosearch Helena` in a terminal window show?
> 2. If you're using the default "fast native file indexer" setting in the
> settings window, can you try the "filesystem indexer" and then refresh the
> music collection from the hamburger menu and see if that helps?

1. I entered this line. I deleted the Steam folder from the results, it occupied 50+ lines.

$ baloosearch Helena
/home/zalimannard/.wine/system.reg
/home/zalimannard/Music/Eurobeat/SEB Vol. 041 [1994]/05. Helena - With You.mp3
/home/zalimannard/.cache/yay/completion.cache
/home/zalimannard/.cache/vlc/art/artistalbum/Helena
/home/zalimannard/.config/chromium/ZxcvbnData/1/female_names.txt
/home/zalimannard/.oh-my-zsh/plugins/emoji/emoji-char-definitions.zsh
/home/zalimannard/.oh-my-zsh/plugins/emoji/emoji-data.txt
/home/zalimannard/.local/share/TelegramDesktop/tdata/dictionaries/en_US/en_US.dic
/home/zalimannard/Music/Eurobeat/SEB Vol. 024 [1992]/02. Helena - Just an Illusion.mp3

Maybe you will need it for the deleted file as well:

$ baloosearch Silver
/home/zalimannard/.cache/vlc/art/artistalbum/Silver
/home/zalimannard/Music/Eurobeat/SEB Vol. 043 [1994]
/home/zalimannard/.local/opt/tor-browser/app/Browser/TorBrowser/Data/Tor/cached-microdesc-consensus
/home/zalimannard/.cache/yay/completion.cache
/home/zalimannard/.config/chromium/ZxcvbnData/1/english_wikipedia.txt
/home/zalimannard/.config/chromium/ZxcvbnData/1/passwords.txt
/home/zalimannard/.config/chromium/ZxcvbnData/1/surnames.txt
/home/zalimannard/.config/chromium/ZxcvbnData/1/us_tv_and_film.txt
/home/zalimannard/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/share/man/man1/xtensa-lx106-elf-g++.1
/home/zalimannard/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/share/man/man1/xtensa-lx106-elf-gcc.1
/home/zalimannard/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/share/info/gcc.info
/home/zalimannard/.oh-my-zsh/plugins/fzf/README.md
/home/zalimannard/.oh-my-zsh/plugins/ag/README.md
/home/zalimannard/.cache/yay/proton-ge-custom-bin/changelog.md
/home/zalimannard/.local/share/TelegramDesktop/tdata/dictionaries/en_US/en_US.dic
/home/zalimannard/.config/falkon/profiles/default/adblock/easylist.txt
/home/zalimannard/.cache/yay/android-ndk/src/android-ndk-r25/toolchains/llvm/prebuilt/linux-x86_64/python3/lib/python3.9/site-packages/pip/_vendor/certifi/cacert.pem
/home/zalimannard/Music/Eurobeat/SEB Vol. 044 [1994]/03. Silver - On My Own.mp3

2. Yes, it really works. That file disappeared from the list. But another problem appears: to update the list, you need to restart Elisa, because it says "Nothing found". After restarting, all files are displayed correctly.
After returning to the "fast native file indexer", the problem from the bug report returns.
Comment 3 Dmitry 2022-08-12 08:01:56 UTC
Created attachment 151275 [details]
Properties appeared out of nowhere
Comment 4 Dmitry 2022-08-12 08:02:18 UTC
I found something else

Initially, the folder was normal, but in the ~/Music folder it had properties, as if it were a music file.
Attached a screenshot to the report to show what I mean.
The file was opened only through Elisa.

After I renamed the folder, the properties of the music file disappeared. Then I returned the old name and everything remained correct. No additional album appears. In the output of `baloosearch Helena`, the mention of this folder is also missing.

Now this problem is no longer there, but clearly something was wrong.
Comment 5 Nate Graham 2022-08-15 16:56:15 UTC
So the problem here is that the deleted file still shows up in a Baloo search; Baloo is giving false data to Elisa when Elisa asks Baloo for a list of music files. It seems like a Baloo problem; moving there.
Comment 6 tagwerk19 2023-09-12 15:59:34 UTC
(In reply to Dmitry from comment #0)
> SOFTWARE/OS VERSIONS
> Operating System: Arch Linux
What filesystem are you using? I ask on the off-chance that it is BTRFS...
Comment 7 Jan Rathmann 2024-02-29 09:21:07 UTC

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