foggycam
foggycam copied to clipboard
Socket error
Twice now, I've been running this program for about an hour when I encounter the following bug: Visual Studio Unhandled Exception window-- System.IndexOutOfRangeException: 'Index was outside the bounds of the array.' This exception was originally thrown at this call stack: foggycam.Program.ProcessReceivedData(byte[]) in Program.cs WebSocket4Net.WebSocket.OnDataReceived(byte[], int, int) SuperSocket.ClientEngine.AuthenticatedStreamTcpSession.ReadAsync() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Threading.Tasks.Task.ThrowAsync.AnonymousMethod__140_1(object) System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute() System.Threading.ThreadPoolWorkQueue.Dispatch()
Foggycam.exe terminal output: [log] Video payload length: 1904 Bitrate: 48000 Video cache length: 641 [error] The capture errored out for the following reason: Unauthorized [log] Socket errored out. A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
System.Net.Sockets.SocketException [log] Setting up connection to wss://oculus6680-us1.dropcam.com:80/nexustalk... [error] The capture errored out for the following reason: Unauthorized
Ran program again for another hour and had this:
Visual Studio Unhandled Exception window-- System.IndexOutOfRangeException: 'Index was outside the bounds of the array.' This exception was originally thrown at this call stack: foggycam.Program.ProcessReceivedData(byte[]) in Program.cs WebSocket4Net.WebSocket.OnDataReceived(byte[], int, int) SuperSocket.ClientEngine.AuthenticatedStreamTcpSession.ReadAsync() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Threading.Tasks.Task.ThrowAsync.AnonymousMethod__140_1(object) System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute() System.Threading.ThreadPoolWorkQueue.Dispatch()
Foggycam.exe terminal output: [log] Video payload length: 1954 Bitrate: 48000 Video cache length: 948 [error] The capture errored out for the following reason: Unauthorized [log] Socket errored out. A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
System.Net.Sockets.SocketException [log] Setting up connection to wss://oculus6680-us1.dropcam.com:80/nexustalk... [error] The capture errored out for the following reason: Unauthorized
Finally, the Visual Studio debug window shows this (many more "The thread ...." above): The thread 0x2c58 has exited with code 0 (0x0). The thread 0x7214 has exited with code 0 (0x0). Exception thrown: 'System.IndexOutOfRangeException' in foggycam.dll Exception thrown: 'System.IndexOutOfRangeException' in System.Private.CoreLib.dll An unhandled exception of type 'System.IndexOutOfRangeException' occurred in System.Private.CoreLib.dll Index was outside the bounds of the array.
The program '[27212] foggycam.exe' has exited with code -1 (0xffffffff).
Not sure if this is an issue from my end-user setup or something else. I don't know enough about the inner workings but figure it might hold clues to a bug.
Thanks for the report @cbjfan2009 - I will investigate this issue.