JcBernack / open-hardware-monitor

Automatically exported from code.google.com/p/open-hardware-monitor
0 stars 0 forks source link

HTTP Timeout or stream close - Crash #716

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If http connection is closed by web browser or a web browser timeout causes the 
connection to close, the OHM will crash.
This can be triggered by using wget with a timeout of 1 second. 

Version: 0.7.1.0

System.InvalidOperationException: Cannot close stream until all bytes are 
written.

   at System.Net.HttpResponseStream.Dispose(Boolean disposing)

   at System.IO.Stream.Close()

   at System.Net.HttpListenerResponse.System.IDisposable.Dispose()

   at System.Net.HttpListenerResponse.Close()

   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)

   at System.Net.ListenerAsyncResult.WaitCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)

   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

Common Language Runtime: 4.0.30319.1

Operating System: Microsoft Windows NT 6.1.7601 Service Pack 1

Process Type: 64-Bit

Also the following variation on the same crash has been observed. 

Version: 0.7.1.0

System.IndexOutOfRangeException: Index was outside the bounds of the array.

   at System.Array.InternalGetReference(Void* elemRef, Int32 rank, Int32* pIndices)

   at System.Array.SetValue(Object value, Int32 index)

   at System.Collections.Hashtable.CopyValues(Array array, Int32 arrayIndex)

   at System.Windows.Forms.Application.ThreadContext.ExitCommon(Boolean disposing)

   at System.Windows.Forms.Application.ExitInternal()

   at System.Windows.Forms.Application.Exit(CancelEventArgs e)

   at OpenHardwareMonitor.Program.<Main>b__0(Object sender, FormClosedEventArgs e)

   at System.Windows.Forms.FormClosedEventHandler.Invoke(Object sender, FormClosedEventArgs e)

   at System.Windows.Forms.Form.WmClose(Message& m)

   at OpenHardwareMonitor.GUI.MainForm.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Common Language Runtime: 2.0.50727.5485

Operating System: Microsoft Windows NT 6.1.7601 Service Pack 1

Process Type: 64-Bit

Original issue reported on code.google.com by craig.d....@gmail.com on 9 Jul 2015 at 5:02