Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Timeout or stream close - Crash #716

Open
GoogleCodeExporter opened this issue Nov 30, 2015 · 0 comments
Open

HTTP Timeout or stream close - Crash #716

GoogleCodeExporter opened this issue Nov 30, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 9 Jul 2015 at 5:02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant