GNOME Bugzilla – Bug 653260
If "Copy to media folders" option is enabled, importing skips files and/or duplicates tracks
Last modified: 2020-03-17 09:31:17 UTC
Created attachment 190521 [details] banshee --debug Fedora 15 Banshee 2.0.1 Banshee tuned to copy all files to ~/Music on import When importing music from folders, banshee sometimes dublicates records in db (seems actually it imports file twice) and skips another files. Here is log and dump of actual imported folder. After importing music i performed library i rescanned music library to remove dupes from album view, and manually added missing tracks. Dupes: 04.recognizer, 05.armory, 07.rinzler and missed tracks 03,04,05 from Cd2
Created attachment 190522 [details] imported music folder structure
same here.
it happens importing from CD too.
Importing from dupes at the db with 2.2.1
Importing from _CD_ dupes _songs_ at the db with 2.2.1 Sorry my bad comment.
I can confirm this bug in Banshee version 2.4.0 Whenever I want to import a directory, some tracks are skipped. I have to reimport them. Fortunately, if no tags were changed, the duplicates are going to be detected and will not be reimported, only the missing ones. Also, sometimes if I import multiple directories at once, some tracks are imported twice. I've checked, and they are not physically duplicated, only on the database, and hence, shown twice in the playlists. I have to select "Rescan Music Library" to check and delete duplicate entries in the database. I have the "Copy files to media folders when importing" File Policy activated in Preferences, if its important.
*** Bug 689137 has been marked as a duplicate of this bug. ***
*** Bug 687337 has been marked as a duplicate of this bug. ***
*** Bug 684486 has been marked as a duplicate of this bug. ***
Still a bug in 2.6.0
(In reply to comment #10) > Still a bug in 2.6.0 We need more info so one of the developers can reproduce this, guys. Could you try to reduce the problem to a minimal testcase? Let's say: wipe your database (do a backup first), then import a track (only one), and then try to import it again. If that doesn't make the bug appear, try with a bigger set of files, until you find one for which it happens always. Then you tell us more details about where the file is, what folder do you import, etc, ok? Also, couple of questions: (In reply to comment #6) > I have the "Copy files to media folders when importing" File Policy activated > in Preferences, if its important. Carlos, thanks for telling us about this. However, it's more important to know if disabling that preference makes the bug disappear? Can you test? (In reply to comment #0) > Here is log and dump of actual imported folder. tensai, this log shows that you're using the LibraryWatcher extension. Can you tell us please if the bug disappears when you disable the LibraryWatcher extension? Thanks
It is not a bug for me in Ubuntu 13.04 version 2.6.0
(In reply to comment #12) > It is not a bug for me in Ubuntu 13.04 version 2.6.0 Alright thanks. Leaving the NEEDINFO status to wait for cidthecoatrack's feedback.
Have wiped and tried to import. Even importing a single track is inconsistent - sometimes it imports, sometimes it doesn't. Stepped up tracks, still high inconsistency. In the end, I could import a whole album, but only 2 tracks would actually be imported. Turning off the library watcher did not solve the issue.
Can you tell us where (in which path) you have those tracks, and can you send me by email 3 of them so I can try to reproduce the issue in my computer?
My music library is here: /media/derpy/Storage MPD/Music And the files I tried to import were here: /home/derpy/Downloads/Torrents/The Puppini Sisters - The Rise and Fall of Ruby Woo I will email three of the tracks to you.
Hello again, Sorry for answering late. > Carlos, thanks for telling us about this. However, it's more important to know if disabling that preference makes the bug disappear? Can you test? I can confirm that disabling the feature "Copy files to media folders when importing" gets rid of the problem. The songs are all imported once into the database, no duplicates and no skips. As soon as I enable the feature again and import any multiple songs at once, the problem reappears. It happens with any group of songs imported at once. It doesn't matter if they are from the same album or unrelated. What I've noticed is that usually the songs that will be skipped or duplicated are not the first or the last, only songs in the middle of the selected group. Maybe this is important. You can all reproduce the bug very easily: 1. Enable the "Copy files to media folders when importing" preference. 2. Import music, either selecting many files at once, or selecting a directory. If possible, import more than 10 at once, the more you import, the more probable the bug will sow up. Also, if you can import songs from the same album it would be easier for you to detect the tracks that were not imported, by looking at the track number (if those files happen to be correctly tagged). 3. Check in your Music directory which tracks were copied and which weren't. Most of the time, the physical files will be imported without problem (only once and no duplicates/skips). The bug will normally arise in the banshee database, where you will see that there are duplicates or skips. 4. Rescan your music library. Normally the problem will be corrected this way, the duplicates/skips will be removed/added respectively and the problem will disappear. But sometimes, and I don't know why, the songs will not be physically copied or will be physically duplicated, which will complicate the problem. I hope this is enough information for you. If you need more, please let me know.
Thanks so much for all the info guys. But I have more questions. This one for Carlos: do you have the LibraryWatcher extension enabled? And these two for cidthecoatrack (btw thanks for the files, I'll try to reproduce it tonight): a) do you have the preference "Copy files to media folders when importing" enabled like Carlos? b) do you have the LibraryWatcher extension enabled?
Oh I get it. I thought you were asking me if I had enabled the "Copy files to media folders when importing" feature. Let me do some tests with and without the LibraryWatcher extension enabled. Now that I remember, at first I suspected that the problem may have been caused by that extension. Sorry for not mentioning it before, it was long ago since I submitted my first comment here.
(In reply to comment #19) > Oh I get it. I thought you were asking me if I had enabled the "Copy files to > media folders when importing" feature. Yes, I asked you that. But now I asked a new question :)
I just answered. I am going to test with and without the LibraryWatched extension enabled. As soon as I get the results, I'll let you know.
I do have the "copy to media folders" option enabled. With that option enabled, with and without the library watcher made no difference - the bug still appeared.
The bug still appears on nearly every import! My secound harddrive (for music) is very slow and the source location is an ssd (so fast). The preference "Copy files to media folders when importing" enabled is enabled. The LibraryWatcher extension is enabled. It appears to be a weakly synchronized threaded import loop. Any guesses?
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the responsibility for active development again. See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.