Comment 1 for bug 1399981

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Hm, I don't think this is a problem with the cover-art phase of the scanner. It checks if the scan is cancelled on every iteration of its loop. This means the scan wasn't canceled when you were seeing these messages and that means the LibraryScanner hadn't been deleted yet (since it cancels and waits for the thread to terminate in its destructor).

Since these are locked errors -- it looks like some other thread is starting a transaction while the scanner is writing the covers. I'm not sure which that would be since TrackDAO::finish doesn't get called until after LibraryScanner is totally destroyed. It's possible that destroying the UI released a bunch of TrackPointer references which triggered some saveTracks.