PDA

View Full Version : Crash from Rescan plugin in recent 6 nightlies



hickinbottoms
2005-04-20, 00:32
I have the rescan plugin set to do its thing at 3AM daily and I've noticed over the last couple of nights that it's causing SlimServer to crash. I believe it's crashing before actually doing the rescan.

Here's the relevant bit from the log:

---
Can't locate object method "id" via package "rescan" (perhaps you forgot to load "rescan"?) at /usr/local/slimserver/6/Slim/Utils/Prefs.pm line 503.
---

This is with SlimServer 6 trunk on Gentoo Linux with Perl 5.8.5. I've confirmed this today on revision 3010, but it's also been the case for at least the last two nightlies (and probably more).

I'm happy to try out any suggestions to isolate the problem if I'm the only one that's been experiencing this.

Stuart

kdf
2005-04-20, 00:58
Quoting hickinbottoms <hickinbottoms.1ns0sb (AT) no-mx (DOT) forums.slimdevices.com>:

>
> I have the rescan plugin set to do its thing at 3AM daily and I've
> noticed over the last couple of nights that it's causing SlimServer to
> crash. I believe it's crashing before actually doing the rescan.
>
> Here's the relevant bit from the log:
>
> ---
> Can't locate object method "id" via package "rescan" (perhaps you
> forgot to load "rescan"?) at
> /usr/local/slimserver/6/Slim/Utils/Prefs.pm line 503.
>
might not take long to guess what line from Rescan plugin is causing this, but
if you could run the server with d_prefs turned on, then you should see some
extra info before this crash that will list the last few lines of code run
before SlimServer died.

-kfd

hickinbottoms
2005-04-20, 01:29
Not much more was displayed with d_prefs, I'm afraid (I think the other lines are warnings, but I could be wrong). The following is what was logged when the rescan timer went off:

----
2005-04-20 09:24:43.4523 Writing out prefs in /etc/slimserver.pref
Use of uninitialized value in string eq at /usr/local/slimserver/6/Slim/Player/Playlist.pm line 555.
Use of uninitialized value in string eq at /usr/local/slimserver/6/Slim/Player/Playlist.pm line 558.
Use of uninitialized value in string eq at /usr/local/slimserver/6/Slim/Player/Playlist.pm line 558.
Can't locate object method "id" via package "rescan" (perhaps you forgot to load "rescan"?) at /usr/local/slimserver/6/Slim/Utils/Prefs.pm line 503.
----

Does this help?

Stuart

kdf
2005-04-20, 01:36
I've checked in a fix. In my case, SlimScrobbler tripped the crash, but the
cause was the rescan plugin for 6.1 calling a command execution without a
client, hence the failed id on rescan instead of an id on a client.

This does not affect 6.0.x.

If you are using 6.1, try updating svn and file a bug report if you still have
troubles.

-kdf

hickinbottoms
2005-04-20, 03:00
Yes, that seems to have fixed the problem for me. It's happily rescanning at the moment.

Thanks very much - no need to raise a bug now.

Stuart