Bugzilla – Bug 1331
"no method found" crash in Class::DBI::Object::Has::Been::Deleted
Last modified: 2008-08-18 10:54:04 UTC
In the log (no debugging switches were turned on; this was all there was after startup messages): Operation `bool': no method found, argument in overloaded package Class::DBI::Object::Has::Been::Deleted at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN/ Class/DBI.pm line 566. 2005-04-07 00:41:16.9787 Got to the END. 2005-04-07 00:41:17.1125 Got sigint. 2005-04-07 00:41:17.1129 SlimServer cleaning up. This occurred sometime last night, either at the end of a playlist or sometime within an hour after it finished; I don't believe we missed any music. I have not had a chance to attempt a repro. Running 6.0.1 nightly from April 2, 2005, OS X .dmg installer; SliMP3 firmware 2.2 (have not been able to upgrade to 2.3).
try running with d_sql and/or d_info turned on. Hopefully this will provide moe specific information.
Thanks for the pointer; I'll try to do this tonight.
Was not able to reproduce the bug last night (though I have no reason to believe it won't happen again).
Crash occurred again last night. The complete slimserver.log is available at http://pile.org/slimserver -1331.log; here are the last few lines, including the crash. (iTunes is the sole source of music, aside from a few .m3u playlist files. -d_sql and -d_info were both on.) 2005-04-09 05:11:51.3817 Merging entry for file:///Volumes/Eve%E2%80%99s%20Annex/Media/ music/Yardbirds,%20The/Best%20of%20the%20Yardbirds,%20The/The%20Train%20Kept%20A- Rollin_.mp3 2005-04-09 05:11:51.3977 Merging entry for file:///Volumes/Eve%E2%80%99s%20Annex/Media/ music/ZZ%20Top/Greatest%20Hits/Tush.mp3 Operation `bool': no method found, argument in overloaded package Class::DBI::Object::Has::Been:: Deleted at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN/Class/DBI.pm line 566. 2005-04-09 05:11:52.6400 Got to the END. 2005-04-09 05:11:52.6410 Got sigint. 2005-04-09 05:11:52.6416 SlimServer cleaning up.
Only a slight chance this is relevant: The only difference I could think of between the crashing situations and the non-crashing situation was that the crashing situations all involved having recently played some tracks that had not been played since the Slimserver 5.4 --> 6 upgrade.
Ben - are you up for editing some perl code to test a fix?
I'm totally up for editing code. (It's what I do by day. It's difficult for me to find time and desire to do so in the evening, so I haven't tracked this down myself.) I've never applied a Unixy patch, but would be willing to do that, too.
Created attachment 415 [details] Patch to bypass and debug deleted object. Ok - I've attached a patch for you to try out. It applies to server/CPAN/Class/DBI.pm
Patch applied; I'll watch for misbehavior.
I applied the patch to the 4/13 nightly (upgraded to that to test another bug's fix), and haven't seen the bug occur since then (by grepping through the log for the string "Deleted").
Appears to be fixed. Dan: was this patch ever committed? If so, please close the bug.