Koleckai Silvestri 1150 Posted February 15, 2014 Share Posted February 15, 2014 The issue is that when MBT comes out of sleep, it cannot reconnect to the Websocket fast enough and crashes. Version 3.0.5155.42825 Here is the exception log: http://pastebin.com/3PHckrHM Here is the excerpt from the main log when MBT wakes up: 2014-02-15 11:17:52.7060 Debug - App: Displaying screen saver 2014-02-15 11:17:53.9750 Debug - ApiClient: GET http://192.168.0.3:8096/mediabrowser/Users/a6737ecaf246ef2235c4bee1f90ac99f/Items?Limit=100&SortBy=Random&SeriesStatuses=&fields=&Filters=&ImageTypes=Backdrop&VideoTypes=&AirDays=&recursive=True&MediaTypes=&Genres=&Ids=&Studios=&ExcludeItemTypes=&IncludeItemTypes=Movie,Boxset,Trailer,Game,Series,MusicArtist&Artists=&PersonTypes=&Years=&format=json 2014-02-15 11:17:54.1090 Warn - ApiWebSocket: Web socket connection closed. 2014-02-15 11:17:54.1180 Info - ApiWebSocket: Created new web socket of type WebSocket4NetClientWebSocket 2014-02-15 11:17:58.6343 Info - ApiWebSocket: Created new web socket of type WebSocket4NetClientWebSocket 2014-02-15 11:18:03.1936 Info - ApiWebSocket: Created new web socket of type WebSocket4NetClientWebSocket 2014-02-15 11:18:04.8997 Error - ApiClient: Error getting response from http://192.168.0.3:8096/mediabrowser/Users/a6737ecaf246ef2235c4bee1f90ac99f/Items?Limit=100&SortBy=Random&SeriesStatuses=&fields=&Filters=&ImageTypes=Backdrop&VideoTypes=&AirDays=&recursive=True&MediaTypes=&Genres=&Ids=&Studios=&ExcludeItemTypes=&IncludeItemTypes=Movie,Boxset,Trailer,Game,Series,MusicArtist&Artists=&PersonTypes=&Years=&format=json Unable to connect to the remote server System.Net.WebException at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MediaBrowser.ApiInteraction.HttpWebRequestClient.<SendAsync>d__1.MoveNext() InnerException: System.Net.Sockets.SocketException A socket operation was attempted to an unreachable network 192.168.0.3:8096 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) 2014-02-15 11:18:06.5128 Error - App: UnhandledException Unable to connect to the remote server MediaBrowser.Model.Net.HttpException System.Object: at MediaBrowser.ApiInteraction.HttpWebRequestClient.<SendAsync>d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MediaBrowser.ApiInteraction.ApiClient.<GetItemsAsync>d__26.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MediaBrowser.Theater.Core.Screensaver.ScreensaverWindow.<LoadUserScreensaver>d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Window.Show() at System.Windows.Window.ShowDialog() at MediaBrowser.Theater.Presentation.Controls.BaseModalWindow.ShowModal(Window owner) at MediaBrowser.UI.EntryPoints.ScreensaverEntryPoint.<ShowScreensaver>b__8() at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore() at System.Windows.Threading.DispatcherOperation.InvokeImpl() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout) at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout) at System.Windows.Threading.Dispatcher.Invoke(Action callback) at MediaBrowser.UI.EntryPoints.ScreensaverEntryPoint.ShowScreensaver() at MediaBrowser.UI.EntryPoints.ScreensaverEntryPoint.ShowScreensaverIfNeeded() at MediaBrowser.UI.EntryPoints.ScreensaverEntryPoint.TimerCallback(Object state) at System.Threading.TimerQueueTimer.CallCallbackInContext(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.TimerQueueTimer.CallCallback() at System.Threading.TimerQueueTimer.Fire() at System.Threading.TimerQueue.FireNextTimers() at System.Threading.TimerQueue.AppDomainTimerCallback() InnerException: System.Net.WebException Unable to connect to the remote server at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MediaBrowser.ApiInteraction.HttpWebRequestClient.<SendAsync>d__1.MoveNext() InnerException: System.Net.Sockets.SocketException A socket operation was attempted to an unreachable network 192.168.0.3:8096 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) 2014-02-15 11:18:08.2008 Info - ApiWebSocket: Created new web socket of type WebSocket4NetClientWebSocket 2014-02-15 11:18:13.2081 Info - ApiWebSocket: Created new web socket of type WebSocket4NetClientWebSocket 2 Link to comment Share on other sites More sharing options...
Danee 57 Posted February 15, 2014 Share Posted February 15, 2014 Thanks for posting the log, I experience the same problem. I have not yet found out how long the system needs to sleep before the error occurs, I did find it also occurs on automatic wake up from a scheduled (wmc) recording. As mentioned earlier it doesn't matter if the sleep mode was entered manualy or automaticly. I only use S3 so I do not know if this also happens in S4. On some occasions MBT is still running and the backdrop and 'main' video image still rotate but MBT closes when the dialog is closed, other times MBT is allready closed. I'm on version 3.0.5135.31685 Hth Link to comment Share on other sites More sharing options...
Koleckai Silvestri 1150 Posted February 16, 2014 Author Share Posted February 16, 2014 The system does not seem to crash if you exit out to user profile selection. Takes about 30 seconds, didn't actually time it, for it to connect after coming out of a PC sleep but it did not crash. Link to comment Share on other sites More sharing options...
Danee 57 Posted February 16, 2014 Share Posted February 16, 2014 After some more testing I think it has to do with the inbuild screen saver. It seems that if the sleep period is long enough to at least match the inactivity timer for the screensaver, a wake up causes this error to happen. For sleep periods shorter then the inactivity timer a wake up is no problem. Link to comment Share on other sites More sharing options...
Koleckai Silvestri 1150 Posted February 16, 2014 Author Share Posted February 16, 2014 I am thinking the same. Need a way to turn off the internal MBT screensaver to test that. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now