Bugzilla – Bug 863
Can't call method "id" on an undefined value
Last modified: 2008-09-15 14:37:04 UTC
I have done a clean install of 25 Feb 6.0 build on Windows XP. I pointed it to an empty audiodir, then imported the data from MusicMagic. When I make a MusicMagic mix from the web interface Slimserver crashes with "Can't call method "id" on an undefined value". I can make a mix from the Squeezebox 2005-02-25 12:42:43.7061 Musicmagic request: http://localhost:10002/api/mix? song%3DM%3A%5CJacques%20Brel%5CVera%20Coomans%20-%20La%20chanson%20des%20vieux% 20amants.mp3&variety=0&style=0&sizetype=tracks&size=12 2005-02-25 12:42:43.8159 mp3 file type for http://localhost:10002/api/mix?song% 3DM%3A%5CJacques%20Brel%5CVera%20Coomans%20-%20La%20chanson%20des%20vieux% 20amants.mp3&variety=0&style=0&sizetype=tracks&size=12 2005-02-25 12:42:43.8179 MusicMagic: Original M:\Jacques Brel\Vera Coomans - La chanson des vieux amants.mp3 : New M:\Jacques Brel\Vera Coomans - La chanson des vieux amants.mp3 2005-02-25 12:42:43.8189 MusicMagic: Original M:\Magic Car\Magic Car - Downtown.mp3 : New M:\Magic Car\Magic Car - Downtown.mp3 2005-02-25 12:42:43.8194 MusicMagic: Original M:\This Mortal Coil\Filigree & Shadow02 This Mortal Coil - The Jeweller.mp3 : New M:\This Mortal Coil\Filigree & Shadow02 This Mortal Coil - The Jeweller.mp3 2005-02-25 12:42:43.8200 MusicMagic: Original M:\Voice Squad, The\The Voice Squad - A Fond Kiss.mp3 : New M:\Voice Squad, The\The Voice Squad - A Fond Kiss.mp3 2005-02-25 12:42:43.8205 MusicMagic: Original M:\Stina Nordenstam\Stina Nordenstam - When Debbie�s Back From Texas.mp3 : New M:\Stina Nordenstam\Stina Nordenstam - When Debbie�s Back From Texas.mp3 2005-02-25 12:42:43.8211 MusicMagic: Original M:\Laura Veirs\Laura Veirs - Rapture.mp3 : New M:\Laura Veirs\Laura Veirs - Rapture.mp3 2005-02-25 12:42:43.8216 MusicMagic: Original M:\Housemartins, The\15 - He ain't heavy.mp3 : New M:\Housemartins, The\15 - He ain't heavy.mp3 2005-02-25 12:42:43.8222 MusicMagic: Original M:\Alyth McCormack\Alyth McCormack - The Selkie.mp3 : New M:\Alyth McCormack\Alyth McCormack - The Selkie.mp3 2005-02-25 12:42:43.8227 MusicMagic: Original M:\Huong Thanh\Huong Than - Like A Guitar With No Strings.mp3 : New M:\Huong Thanh\Huong Than - Like A Guitar With No Strings.mp3 2005-02-25 12:42:43.8232 MusicMagic: Original M:\Tom Waits\Tom Waits - Bad Liver and a Broken Heart.mp3 : New M:\Tom Waits\Tom Waits - Bad Liver and a Broken Heart.mp3 2005-02-25 12:42:43.8238 MusicMagic: Original M:\Michael O'Donnell\Michael O'Donnell - Lord Franklin.mp3 : New M:\Michael O'Donnell\Michael O'Donnell - Lord Franklin.mp3 2005-02-25 12:42:43.8243 MusicMagic: Original M:\Tom Waits\07 - Pony.mp3 : New M:\Tom Waits\07 - Pony.mp3 2005-02-25 12:42:43.9221 CacheItem: Checking status of file:///M:/This% 20Mortal%20Coil/Filigree%20&%20Shadow02%20This%20Mortal%20Coil%20-%20The% 20Jeweller.mp3 (TTL: 1109335152). Can't call method "id" on an undefined value at C:/Program Files/SlimServer/server/Plugins/MusicMagic/Plugin.pm line 988.
This is related to a change made in r2200 to use item instead of itempath.
Same problem on 6.0 Feb 26 build on XP Can't call method "id" on an undefined value at C:/Program Files/SlimServer/server/Plugins/MusicMagic/Plugin.pm line 1004.
you still see it, becuase there has been on fix done. it would have been noted here. as for me, I cannot reproduce this. the question is why the track you are trying to use for mixing is coming up as non-existent. make sure you are starting with a clean database. erase slimserversql.db and let it complete.
Bart - Kevin is correct, the database is likely out of date. You should do a refresh for both MMM and SlimServer. In addition, I've checked in a fix as svn change 2238 that will prevent the crash.
The database is new, I did a clean install each time (renaming the old installation directories each time) However, I have done some more testing; I can reproduce the error every time if I try to make a MusicMagic mix while Slimserver is importing the data but once the data has been imported then the error does not occur. I will apply change 2238 and try it.
Seems to be fixed - If I delete the database or do a fresh installation and try to make a MusicMagic mix before the import is finished it will return a mix with less than "MMMSize" tracks, but will not crash. Once the import has finished then it will make the full mix.
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006. I am setting them to targets of 6.2.1 to keep them from showing up in my queries.