Bug 2315 - Browsing deleted files causes SlimServer crash
: Browsing deleted files causes SlimServer crash
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 6.2.0
: PC Windows XP
: P2 major (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-18 21:47 UTC by Jim McAtee
Modified: 2008-09-15 14:36 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim McAtee 2005-10-18 21:47:25 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.
Comment 1 Dan Sully 2005-10-18 22:12:11 UTC
Fixed in subversion change 4681
Comment 2 Jim McAtee 2005-10-18 22:31:43 UTC
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.
Comment 3 Dan Sully 2005-10-18 22:37:52 UTC
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.