Entitas
Entitas copied to clipboard
Jenny-Server crash on concurrent Generate from Unity
Run Jenny-Server on Windows. Run Unity 2018.3 with C# Project opened.
Hit CTRL-ALT-G twice in rapid succession.
Observe this crash in Jenny.
Generated 24 files in 4.5 seconds
An existing connection was forcibly closed by the remote host
Unhandled Exception: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
at DesperateDevs.Networking.AbstractTcpSocket.send(Socket socket, Byte[] buffer)
at DesperateDevs.Networking.TcpServerSocket.Send(Byte[] buffer)
at DesperateDevs.CodeGeneration.CodeGenerator.CLI.ServerCommand.onReceived(AbstractTcpSocket socket, Socket client, Byte[] bytes)
at DesperateDevs.Networking.AbstractTcpSocket.triggerOnReceived(ReceiveVO receiveVO, Int32 bytesReceived)
at DesperateDevs.Networking.TcpServerSocket.onReceived(IAsyncResult ar)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.ContextAwareResult.CompleteCallback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.ContextAwareResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)