GNOME Bugzilla – Bug 634063
Clearing Files Queue deletes entries from DB
Last modified: 2012-05-19 18:40:25 UTC
Created attachment 173873 [details] general information When I drag'n'drop the files queue item onto the audio collection item, the files are moved but not being added to the database. After the program restart it is impossible to find them, though the files reside where they should be (in collection folder) and are renamed properly.
Let me make sure I'm understanding this correctly. 1. You open a file from your file system into Banshee's File System Queue. 2. You drag and drop these songs into the main Library. 3. Banshee doesn't list the files (despite the fact that they were correctly copied into the right folder structure if you have Banshee set to manage your file organization). If that's the case, it sounds like an important piece of the FSQ is pretty broken. Could you retest with Banshee 1.9.3 or a recent daily build or git master? Also, could you attach a debug log following the directions here: http://live.gnome.org/Banshee/CommonQuestions/Logs Thanks in advance (and sorry you didn't get a response sooner)!
Yes, that is correct. Updated to git master.
Created attachment 180984 [details] debug log
Created attachment 180986 [details] database debug log
Same issue on 2.0. Clearing the files queue discards files from the library.
banshee-2.0.1-2.fc15.i686 (In reply to comment #1) > Let me make sure I'm understanding this correctly. > > 1. You open a file from your file system into Banshee's File System Queue. > 2. You drag and drop these songs into the main Library. > 3. Banshee doesn't list the files (despite the fact that they were correctly > copied into the right folder structure if you have Banshee set to manage your > file organization). 3. Banshee DOES list the files, now both on the Files Queue and in the database. The files are copied and renamed correctly. But the database record is gone as soon as the Files Queue is cleared. The button that clears the Files Queue messes up the database. In the end the files reside in the Music folder, but won't be listed anymore.
Sorry if I offended anyone. Here's what happens in 2.4: 1. Add songs to the files queue 2. Import the files queue The songs are imported. The files queue stays filled. 3. Press the button that clears the files queue. The files queue is cleared and the library entries for the imported instance are gone. It should also be safe to clear the files queue. It currently results in deletion of the library entries for the songs actually imported. It would also be nice to remove the songs from the files queue automatically on import.
Thank you for your bug report and your persistence. You didn't offend anyone, your bug just slipped off everyone's radar. I was able to reproduce the problem. Here's what's happening: When you drag a track from the FSQ (File System Queue), the entry for this track in the database is just updated to attach it to the music library, it keeps the same TrackId. At this point it's not really in the FSQ anymore, but it's still in the FSQ's cache. So when you clear the FSQ, it's still going to delete the row with the TrackId from the database. So we need to find a way to update the FSQ when tracks are imported.
This problem has been fixed in the development version. The fix will be available in the next software release. Thank you for your bug report. We now refresh the FSQ when tracks are imported, so its content is up-to-date.