Neutronium: Chromium.CfxRemotingException

Got some Neutronium-related exceptions collected from the users.

These exceptions have 1-2 occurences across 300+ beta users.

Chromium.CfxRemotingException: Remote connection lost. ---> System.IO.EndOfStreamException: Failed to read past end of stream.
   в System.IO.BinaryReader.FillBuffer(Int32 numBytes)
   в System.IO.BinaryReader.ReadUInt16()
   в Chromium.Remote.RemoteConnection.ReadLoop()
   в Chromium.Remote.RemoteConnection.ReadLoopEntry()
   --- Конец трассировки внутреннего стека исключений ---
   в Chromium.Remote.RemoteCall.RequestExecution(RemoteConnection connection)
   в Chromium.Remote.CfrTaskRunner.PostTask(CfrTask task)
   в Neutronium.WebBrowserEngine.ChromiumFx.EngineBinding.ChromiumFxDispatcher.RunInContext(Action action)
   в Neutronium.WebBrowserEngine.ChromiumFx.EngineBinding.ChromiumFxWebView.Dispatch(Action act)
   в Neutronium.Core.Binding.BidirectionalMapper.DispatchInJavascriptContext(Action run)
   в Neutronium.Core.Binding.BidirectionalMapper.UpdateFromCSharpChanges(Object newCSharpObject, Func`2 updaterBuilder)
   в Neutronium.Core.Binding.BidirectionalMapper.OnCSharpPropertyChanged(Object sender, PropertyChangedEventArgs e)
   в System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
   в Miner.BindableBase.OnPropertyChanged(String propertyName)
   в Miner.BindableBase.SetProperty[T](T& storage, T value, String propertyName)
   в Miner.MainViewModel.set_Visible(Boolean value)
   в Miner.MainViewModel.Hide()
   в Miner.MainWindow.OnClosing(CancelEventArgs e)
   в System.Windows.Window.WmClose()
   в System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   в System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   в MS.Win32.UnsafeNativeMethods.UnsafeSendMessage(IntPtr hWnd, WindowMessage msg, IntPtr wParam, IntPtr lParam)
   в System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel)
   в System.Windows.Application.DoShutdown()
   в System.Windows.Application.ShutdownImpl()
   в System.Windows.Application.ShutdownCallback(Object arg)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   в System.Windows.Threading.DispatcherOperation.InvokeImpl()
   в System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   в System.Windows.Threading.DispatcherOperation.Invoke()
   в System.Windows.Threading.Dispatcher.ProcessQueue()
   в System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   в System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   в MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   в System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   в System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   в System.Windows.Threading.Dispatcher.Run()
   в System.Windows.Application.RunDispatcher(Object ignore)
   в System.Windows.Application.RunInternal(Window window)
   в System.Windows.Application.Run(Window window)
   в System.Windows.Application.Run()
   в Miner.Program.Main()
Chromium.CfxRemotingException: Remote connection lost. ---> System.IO.EndOfStreamException: Failed to read past end of stream.
   в System.IO.BinaryReader.FillBuffer(Int32 numBytes)
   в System.IO.BinaryReader.ReadUInt16()
   в Chromium.Remote.RemoteConnection.ReadLoop()
   в Chromium.Remote.RemoteConnection.ReadLoopEntry()
   --- Конец трассировки внутреннего стека исключений ---
   в Chromium.Remote.RemoteCall.RequestExecution(RemoteConnection connection)
   в Chromium.Remote.CfrTaskRunner.PostTask(CfrTask task)
   в Neutronium.WebBrowserEngine.ChromiumFx.EngineBinding.ChromiumFxDispatcher.RunInContext(Action action)
   в Neutronium.WebBrowserEngine.ChromiumFx.EngineBinding.ChromiumFxWebView.Dispatch(Action act)
   в Neutronium.Core.Binding.BidirectionalMapper.DispatchInJavascriptContext(Action run)
   в Neutronium.Core.Binding.BidirectionalMapper.UpdateFromCSharpChanges(Object newCSharpObject, Func`2 updaterBuilder)
   в Neutronium.Core.Binding.BidirectionalMapper.OnCSharpPropertyChanged(Object sender, PropertyChangedEventArgs e)
   в System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
   в Miner.BindableBase.OnPropertyChanged(String propertyName)
   в Miner.BindableBase.SetProperty[T](T& storage, T value, String propertyName)
   в Miner.MainViewModel.set_Visible(Boolean value)
   в Miner.MainViewModel.Hide()
   в Miner.MainWindow.OnClosing(CancelEventArgs e)
   в System.Windows.Window.WmClose()
   в System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   в System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   в MS.Win32.UnsafeNativeMethods.UnsafeSendMessage(IntPtr hWnd, WindowMessage msg, IntPtr wParam, IntPtr lParam)
   в System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel)
   в System.Windows.Application.DoShutdown()
   в System.Windows.Application.ShutdownImpl()
   в System.Windows.Application.ShutdownCallback(Object arg)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   в System.Windows.Threading.DispatcherOperation.InvokeImpl()
   в System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   в MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   в System.Windows.Threading.DispatcherOperation.Invoke()
   в System.Windows.Threading.Dispatcher.ProcessQueue()
   в System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   в System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   в MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   в System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   в System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   в System.Windows.Application.RunDispatcher(Object ignore)
   в System.Windows.Application.RunInternal(Window window)
   в System.Windows.Application.Run(Window window)
   в System.Windows.Application.Run()
   в Miner.Program.Main()
Chromium.CfxRemotingException: Remote connection lost. ---> System.IO.IOException: Pipe is broken.
   в System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
   в System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
   в System.IO.Pipes.PipeStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   в Chromium.Remote.PipeBufferStream.Flush()
   в System.IO.BinaryWriter.Flush()
   в Chromium.Remote.RemoteCall.WriteRequest(StreamHandler h)
   в Chromium.Remote.RemoteConnection.Write(Action`1 callback)
   --- Конец трассировки внутреннего стека исключений ---
   в Chromium.Remote.RemoteCall.RequestExecution(RemoteConnection connection)
   в Chromium.Remote.CfrTaskRunner.PostTask(CfrTask task)
   в Neutronium.WebBrowserEngine.ChromiumFx.EngineBinding.ChromiumFxDispatcher.RunInContext(Action action)
   в Neutronium.WebBrowserEngine.ChromiumFx.EngineBinding.ChromiumFxWebView.Dispatch(Action act)
   в Neutronium.Core.Binding.BidirectionalMapper.DispatchInJavascriptContext(Action run)
   в Neutronium.Core.Binding.BidirectionalMapper.UpdateFromCSharpChanges(Object newCSharpObject, Func`2 updaterBuilder)
   в Neutronium.Core.Binding.BidirectionalMapper.OnCSharpPropertyChanged(Object sender, PropertyChangedEventArgs e)
   в System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
   в Miner.BindableBase.OnPropertyChanged(String propertyName)
   в Miner.MainViewModel.<>c__DisplayClass195_0.<Model_PropertyChanged>b__0()
   в System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
   в System.Windows.Threading.Dispatcher.Invoke(Action callback)
   в Miner.MainViewModel.Model_PropertyChanged(Object sender, PropertyChangedEventArgs e)
   в Miner.BindableBase.OnPropertyChanged(String propertyName)
   в Miner.MainModel.OnHashrateChanged(Dictionary`2 hashrate)
   в System.Reactive.AnonymousSafeObserver`1.OnNext(T value)
   в System.Reactive.Linq.ObservableImpl.Where`1._.OnNext(TSource value)
   в System.Reactive.Concurrency.ObserveOn`1.ObserveOnSink.OnNextPosted(Object value)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   в System.Windows.Threading.DispatcherOperation.InvokeImpl()
   в System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   в MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   в System.Windows.Threading.DispatcherOperation.Invoke()
   в System.Windows.Threading.Dispatcher.ProcessQueue()
   в System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   в System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   в MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   в System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   в System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   в System.Windows.Application.RunDispatcher(Object ignore)
   в System.Windows.Application.RunInternal(Window window)
   в System.Windows.Application.Run(Window window)
   в System.Windows.Application.Run()
   в Miner.Program.Main()

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (9 by maintainers)

Commits related to this issue

Most upvoted comments

I was abble to reproduce this unhandled exception with the scenario you mencioned. I am providing a fix. From what I have seen, your fix in OnPropertyChanged will do the trick before the release of the corrected version. From my tests, Neutronium is now recovering everytime Chromium process is killed.