Bugzilla – Bug 2315
Browsing deleted files causes SlimServer crash
Last modified: 2008-09-15 14:36:01 UTC
I accidentally deleted the contents of a folder (album) full of flac files. Browsing into the album in the webUI under 'New Music' caused SlimServer to crash. Here's the end of my log: 2005-10-18 22:38:56.8958 _checkValidity: Checking to see if file:////bob/music/flac/_Various%20Artists/Brazil%20Classics%202%20-%20O% 20Samba/15%20Sarau%20Para%20Ramad%E9s.flac has changed. 2005-10-18 22:38:56.8963 _hasChanged: Checking for [\\bob\music\flac\_Various Artists\Brazil Classics 2 - O Samba\15 Sarau Para Ramadés.flac] - size & timestamp. 2005-10-18 22:38:56.9054 _hasChanged: removing [\\bob\music\flac\_Various Artists\Brazil Classics 2 - O Samba\15 Sarau Para Ramadés.flac] from the db as it no longer exists. 2005-10-18 22:38:56.9399 cleared file:////bob/music/flac/_Various% 20Artists/Brazil%20Classics%202%20-%20O%20Samba/15%20Sarau%20Para%20Ramad% E9s.flac from database Can't locate object method "id" via package "Class::DBI::Object::Has::Been::Deleted" at C:/Program Files/SlimServer/server/Slim/DataStores/Base.pm line 65. 2005-10-18 22:38:56.9478 forceCommit: syncing to the database.
Fixed in subversion change 4681
Another crasher. I'm at r4683. To test the fix I moved the files out of another album directory. Browsing into the album shows an "All Songs" link in the webUI. Clicking on that link causes a crash. 2005-10-18 23:27:10.4172 browsedb - hierarchy: album,track level: 1 Can't locate object method "url" via package "Class::DBI::Object::Has::Been::Deleted" at C:/Program Files/SlimServer/server/Slim/DataStores/DBI/DBIStore.pm line 1214. 2005-10-18 23:27:10.4236 forceCommit: syncing to the database.
Don't do that? :) Fixed in change 4685 Post 6.2 - we'll get some sort of warning / error messages up. There's a bug for it already.