Derek-R-S/Light-Reflective-Mirror

V12 crash on debian

illiftwhat opened this issue · 4 comments

Hello,
I am developing, I have the node server which is launched on debian by "screen -dmSL servrelay dotnet LRM.dll".

And since these last days, the server crashed randomly or so during my test and debug but I did not make any changes in LRM, only listed my game.

I have UseEndpoint, EndpointServerList and EnableNATPunchtroughServer enabled in the config
and i use KcpTransport

this is my log (sorry i have only that):

Unhandled exception. System.ArgumentOutOfRangeException: Length cannot be less than zero. (Parameter 'length')
at System.String.Substring(Int32 startIndex, Int32 length)
at System.Net.HttpListenerRequestUriBuilder.GetPath(String uriString)
at System.Net.HttpListenerRequestUriBuilder.BuildRequestUriUsingRawPath()
at System.Net.HttpListenerRequestUriBuilder.Build()
at System.Net.HttpListenerRequest.FinishInitialization()
at System.Net.HttpConnection.OnReadInternal(IAsyncResult ares)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Net.ContextAwareResult.Complete(IntPtr userToken)
at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()

Thanks for help

Same issue here, looks like this package is not production ready. I recommend you to switch solution.

Same, happened recently to me as well. I've been running a LRM node server since December, and this is the first time it happened.

Same, happened recently to me as well. I've been running a LRM node server since December, and this is the first time it happened.

the same thing, the server was running continuously since February and it only happens now, like some kind of bot attack on the server with http requests.

i disabled UseEndpoint and EndpointServerList and the server has not crashed since these changes

I'm using it on Ubuntu btw, and looks like it's comes from this issue: dotnet/runtime#72748, so yeah HTTP endpoints better be avoided for better stability