Bug 3115 - Synced player -> SN -> Sign-Off, crashes SlimServer
: Synced player -> SN -> Sign-Off, crashes SlimServer
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Sync
: 6.2.2
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-06 12:39 UTC by Andy Grundman
Modified: 2008-09-15 14:38 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
Mem usage after 3 hours (51.29 KB, image/jpeg)
2006-04-29 09:29 UTC, Tim Limon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Grundman 2006-03-06 12:39:54 UTC
From tim @ http://forums.slimdevices.com/showthread.php?t=21829

I've been enjoying the new Pandora service (Rocks!) and absolutely love
it.  Prior to this, I've run my 3 sb2's synced to a Shoutcast station
for many months without issue.  

Now, when I use one of these synced players to go into SN for a while,
and then sign off, my server behaves lethargic. A quick check in the
TaskManager reveals that its using 173,343K and rising.  I need to
restart the server to restore normal functionality.  

The problem has happened three times this last weekend and is pretty
repeatable.  Any thoughts?

--tim

SlimServer Version: 6.2.2 - 6012 - Windows XP - EN - cp1252
Comment 1 Blackketter Dean 2006-03-06 12:55:13 UTC
The sn plugin will need to call Slim::Player::Sync::unsync($client,1); when it connects to sn, 

Better yet, it should probably call Slim::Control::Request::executeRequest($client, ['client', 'forget']); and then add the call to unsync to Slim::Control::Commands::clientForgetCommand()
 
I believe that the player's sync will be restored when it reconnects.
Comment 2 Andy Grundman 2006-03-06 13:08:29 UTC
Good, maybe a simple fix.  The client should be automatically forgotten after 5 minutes though, and he says he was in SN for "a while".

I'll try to reproduce.
Comment 3 Andy Grundman 2006-03-06 13:58:07 UTC
Here's what happened when I tried it using trunk.

Synced SB2 and SB3 to a RadioIO stream, no problems.
Connected the SB3 to SN, the SB2 stopped playing.  (is that normal?)
Logged off SN, players resynced.
Started up RadioIO again, they play in sync.

However, as you indicated, the memory starts leaking and cpu usage is high.

The web interface now reports: SB2 (synced with SB3 & SB3).

Tim, does this match your experience?

Will try Dean's suggestion and see what happens.
Comment 4 Tim Limon 2006-03-06 14:22:43 UTC
Andy,

>Connected the SB3 to SN, the SB2 stopped playing.  (is that normal?)

Yes. This has been my experience, When I log on to SN from a synced player 
the other ones stop as well.  I haven't experimented with all the permutations 
of which player was the one on which the radioIO was initiated and which one drops off, 
but thats generally what happens.

>Tim, does this match your experience?

Yes. This matches my experience, 
I'm glad you were able to reproduce it so quickly!
Thank you.
Comment 5 Andy Grundman 2006-03-07 07:12:14 UTC
Fixed in r6524 by adding Dean's temporary unsync to clientForgetCommand.
Comment 6 Tim Limon 2006-03-11 15:34:12 UTC
Verified, Works great. Thanks for the prompt response!
Comment 7 Tim Limon 2006-04-27 18:24:27 UTC
Was this also fixed for the 6.2.2 version as of 4/27/2006?
Comment 8 Andy Grundman 2006-04-27 19:13:22 UTC
Nope, was only fixed in trunk.  I'm going to reopen and backport it for 6.3.
Comment 9 Tim Limon 2006-04-29 09:29:51 UTC
Created attachment 1211 [details]
Mem usage after 3 hours
Comment 10 Andy Grundman 2006-05-01 14:36:34 UTC
I've backported the fix for this bug to 6.3.  It will be in tonight's nightly build.
Comment 11 Chris Owens 2006-06-12 15:20:05 UTC
Verified fixed in SlimServer Version: 6.3.0 - 7895 - Windows XP - EN - cp1252
Comment 12 Chris Owens 2006-06-27 14:21:35 UTC
This bug fix is now part of a released version, and so has been marked closed. If you are still experiencing this problem, please reopen the bug.