Bug 1331 - "no method found" crash in Class::DBI::Object::Has::Been::Deleted
: "no method found" crash in Class::DBI::Object::Has::Been::Deleted
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 6.0.1
: All All
: P2 major (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-07 09:43 UTC by S. Ben Melhuish
Modified: 2008-08-18 10:54 UTC (History)
0 users

See Also:
Category: ---


Attachments
Patch to bypass and debug deleted object. (921 bytes, patch)
2005-04-12 09:01 UTC, Dan Sully
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description S. Ben Melhuish 2005-04-07 09:43:32 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).
Comment 1 KDF 2005-04-07 11:53:46 UTC
try running with d_sql and/or d_info turned on.  Hopefully this will provide moe
specific information.
Comment 2 S. Ben Melhuish 2005-04-07 13:25:27 UTC
Thanks for the pointer; I'll try to do this tonight.
Comment 3 S. Ben Melhuish 2005-04-08 12:31:58 UTC
Was not able to reproduce the bug last night (though I have no reason to believe
it won't happen again).
Comment 4 S. Ben Melhuish 2005-04-09 23:12:20 UTC
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.
Comment 5 S. Ben Melhuish 2005-04-11 08:40:39 UTC
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.
Comment 6 Dan Sully 2005-04-11 18:14:41 UTC
Ben - are you up for editing some perl code to test a fix?
Comment 7 S. Ben Melhuish 2005-04-12 08:14:12 UTC
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.
Comment 8 Dan Sully 2005-04-12 09:01:13 UTC
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
Comment 9 S. Ben Melhuish 2005-04-13 19:31:33 UTC
Patch applied; I'll watch for misbehavior.
Comment 10 S. Ben Melhuish 2005-04-18 10:11:43 UTC
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").
Comment 11 Blackketter Dean 2005-04-20 16:09:16 UTC
Appears to be fixed.  Dan: was this patch ever committed?  If so, please close the bug.