WebSocket4Net icon indicating copy to clipboard operation
WebSocket4Net copied to clipboard

Unhandled NullReferenceException

Open 80dB opened this issue 7 years ago • 2 comments

Not entirely sure why it happend (we open several websocket connections), but got this one:

Exception Info: System.NullReferenceException at WebSocket4Net.Common.ArraySegmentList.DecodeMask(Byte[], Int32, Int32) at WebSocket4Net.WebSocketCommandInfo..ctor(System.Collections.Generic.IList1<WebSocket4Net.Protocol.WebSocketDataFrame>) at WebSocket4Net.Protocol.DraftHybi10DataReader.GetCommandInfo(Byte[], Int32, Int32, Int32 ByRef) at WebSocket4Net.WebSocket.OnDataReceived(Byte[], Int32, Int32) at WebSocket4Net.WebSocket.client_DataReceived(System.Object, SuperSocket.ClientEngine.DataEventArgs) at SuperSocket.ClientEngine.ClientSession.OnDataReceived(Byte[], Int32, Int32) at SuperSocket.ClientEngine.SslStreamTcpSession.OnDataRead(System.IAsyncResult) at System.Net.LazyAsyncResult.Complete(IntPtr) at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr) at System.Net.AsyncProtocolRequest.CompleteUser(System.Object) at System.Net.Security._SslStream.ProcessFrameBody(Int32, Byte[], Int32, Int32, System.Net.AsyncProtocolRequest) at System.Net.Security._SslStream.ReadFrameCallback(System.Net.AsyncProtocolRequest) at System.Net.AsyncProtocolRequest.CompleteRequest(Int32) at System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32) at System.Net.FixedSizeReader.ReadCallback(System.IAsyncResult) at System.Net.LazyAsyncResult.Complete(IntPtr) at System.Net.ContextAwareResult.CompleteCallback(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Net.ContextAwareResult.Complete(IntPtr) at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr) at System.Net.LazyAsyncResult.InvokeCallback(System.Object) at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)`

80dB avatar Jan 09 '18 19:01 80dB

Which version do you use?

kerryjiang avatar Jan 09 '18 19:01 kerryjiang

I'm using 0.15.1 from Nuget. It doesn't happen a lot (sometimes it runs for a long time). But it completely crashes the application, which is a little bit ;(

80dB avatar Jan 09 '18 20:01 80dB