Bugzilla – Bug 10165
Stream connection failure when synced can lead to invalid state
Last modified: 2009-09-08 09:13:41 UTC
If one out of a set of more than one active synced players gets a connection failure to the stream source (either local or remote), and at least one of the players succeeds in connecting, then StreamingController can get into an invalid state. Automatic track advance will also fail in this case. Typical log messages are: [08-11-27 10:33:33.1601] Slim::Player::StreamingController::_BadState (317) 00:04:20:06:0b:6f: event StatusHeartbeat received while in invalid state WAITING_TO_SYNC-TRACKWAIT [08-11-27 10:33:33.1611] Slim::Player::StreamingController::_eventAction (288) 00:04:20:06:0b:6f: StatusHeartbeat with action Slim::Player::StreamingController::_BadState resulted in invalid state WAITING_TO_SYNC-TRACKWAIT
Created attachment 4360 [details] proposed patch
Dean, the scope of this patch is pretty isolated, only covering streaming-failed cases. It also only covers the cases when starting to stream from stopped, which may not have been the case you hit. Can you confirm that there were no relevant log messages before the two in the description above?
Created attachment 4361 [details] proposed patch 2
Dean, the second patch is more comprehensive, and also covers the case when a connection failure occurs for the 'next' stream, when paying out the current stream. The side-effect is that the current stream may be stopped somewhere in the last 10 seconds. I'll try to see if I can come up with a way of letting that stream play out in these circumstances.
Yeah, there were no other relevant log messages before those pairs. I don't quite understand the problem or the patch. Does it recover from this failure or just stop?
Without the patch it just stalls. With the patch it will try to move on, possibly cutting up to 10s off the end of the previous track. But I still do not understand why there was not a preceding error message.
Change 24206
This bug has been fixed in the 7.3.0 release version of SqueezeCenter! Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already. If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Reduce number of active targets for SC