PDA

View Full Version : Biography crashes Slimserver



Hellsblade
2006-03-18, 10:26
Hi,

I s there a solution to the problem of the constantly crashing Biography plugin. My experience is it crashes almost always on fisrt time use with an artist i haven't chosen before.
The windows event viewer shows this;

The description for Event ID ( 0 ) in Source ( Application ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Can't locate object method "displayWidth" via package "Slim::Player::HTTP" at C:/Program Files/SlimServer/server/Plugins/Biography/Plugin.pm line 364.

These are the line in the script it refers to;

# wrap the text to the device's width
if ($client->displayWidth() > 40) {
my $text2 = $text;
$text2 =~ s/\n//gs;
$width = int($client->displayWidth / ($client->measureText($text2, 2) / length($text2))) - 1;
}
return $width;
}

Can anyone make sense out of this?

The same happen when using the album review plugin.

The description for Event ID ( 0 ) in Source ( Application ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Can't locate object method "displayWidth" via package "Slim::Player::HTTP" at C:/Program Files/SlimServer/server/Plugins/AlbumReview/Plugin.pm line 446.

This refiers to;

if ($client->displayWidth() > 40) {
$text =~ s/\n//gs;
$width = int($client->displayWidth / ($client->measureText($text, 2) / length($text))) - 1;
}
return $width;
}

I can see a pattern here ;-)

Any help would be appreciated.

NB: I'm using slimserver 6.5 but 6.2 has the same problem.
I also use use firefox mostly on a windows XP sp2 client.

rgds,
Hellsblade

mherger
2006-03-18, 11:07
> I s there a solution to the problem of the constantly crashing
> Biography plugin.

Yep: buy a Squeezebox or do at least use Softsqueeze ;-). Or politely ask
the author to fix it...

I guess you're using some MP3 software player?

> information is part of the event: Can't locate object method
> "displayWidth" via package "Slim::Player::HTTP" at C:/Program
> Files/SlimServer/server/Plugins/Biography/Plugin.pm line 364.

The displayWidth seems not to be defined for clients connecting to the mp3
stream using http (http://slimserver:9000/stream.mp3).

> Can anyone make sense out of this?

Oh yes, I do! :-)

> The same happen when using the album review plugin.

Same problem here. Thanks for reporting this!

I uploaded new versions of the two plugins which should fix this issue.
Thanks.

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

Hellsblade
2006-03-18, 11:53
>Yep: buy a Squeezebox or do at least use Softsqueeze ;-). Or politely ask
the author to fix it...

OK. I,m asking politely! :-)

I guess you're using some MP3 software player?

No as a mather of fact i am using softsqueeze. But i'm using Winamp also @work for streaming. I have no real puropose for the squeezebox yet. My PC is in the middle of my living room and already connected to my (oldschool) quad hifi set.
I came across slimserver because i wanted to use it on my NSLU2, but it is to slow for that platform. So i'm using my W2k3 server at the moment.

I uploaded new versions of the two plugins which should fix this issue.
I think this a worldrecord breaking bug fix. Or at least the fastest i've ever seen ;-).



That's really something man, but uhh.., can you direct direct me to the URL's to download the fixes?

Rgds,
Hellsblade

OK. already found them. You changed the original downloads.
Talking about confidence ;-).
I will test them and will let you know the result.

mherger
2006-03-18, 13:04
> That's really something man, but uhh.., can you direct direct me to the
> URL's to download the fixes?

Ooops... http://www.herger.net/slim-plugins/

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

mherger
2006-03-18, 13:06
>> That's really something man, but uhh.., can you direct direct me to the
>> URL's to download the fixes?
>
> Ooops... http://www.herger.net/slim-plugins/

BTW: isn't this the address where you got it in the first place? :-)

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

Hellsblade
2006-03-19, 03:16
Ok, Michael no more crashes for me.
And yes that was the site where i downloaded them.

I noticed this nice little gadget on your site where "what i'm listenig to" is published.
Is this also downloadable? I mean the gadget ofcourse not the music ;-).
And when it comes to this. It would be a nice extra for softsqueeze when it filled the what i'n listening to for MSN messenger as well.

Rgds,
Hellsblade

mherger
2006-03-19, 04:38
> I noticed this nice little gadget on your site where "what i'm listenig
> to" is published.
> Is this also downloadable? I mean the gadget ofcourse not the music

It's Danny' WebLogger:
http://www.regoroad.com/blog/_archives/2004/9/12/138828.html

> And when it comes to this. It would be a nice extra for softsqueeze
> when it filled the what i'n listening to for MSN messenger as well.

I think there has been such a plugin or somethin. Search the forums or the
wiki (I'm not sure).

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)