TorchAPI / Torch

An extensible modding framework and improved client/DS for Space Engineers. Still a work in progress!
Apache License 2.0
146 stars 76 forks source link

[FATAL] Initializer: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. #302

Closed Alien6666 closed 2 years ago

Alien6666 commented 5 years ago

Torch Version: 1.3.1.25-master SE Version: 1.189.43

Expected Behavior

Observed Behavior

Notified that it crashed after player disconnected 20 minutes later and closed. I have no plugins installed.

Steps to Reproduce

Not sure.

Other Information

10:28:08.6818 [FATAL] Initializer: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at Torch.Collections.MtObservableSortedDictionary2.ProxyCollection1.CopyTo(TT[] array, Int32 arrayIndex) in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\MtObservableSortedDictionary.cs:line 277 at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at Torch.Collections.SortedView1.Refresh() in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\SortedView.cs:line 111 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) 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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Window.ShowDialog() at Torch.Server.Initializer.Run() in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Initializer.cs:line 123 at Torch.Server.Program.Main(String[] args) in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Program.cs:line 48 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssemblyByName(String assemblyName, String[] args) at Torch.Utils.TorchLauncher.Launch(String entryPoint, String[] args, String[] binaryPaths) in C:\jenkins\workspace\Torch_Torch_master\Torch\Utils\TorchLauncher.cs:line 38 at Torch.Server.Program.Main(String[] args) in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Program.cs:line 48 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at Torch.Collections.MtObservableSortedDictionary2.ProxyCollection1.CopyTo(TT[] array, Int32 arrayIndex) in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\MtObservableSortedDictionary.cs:line 277 at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at Torch.Collections.SortedView1.Refresh() in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\SortedView.cs:line 111 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) 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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Window.ShowDialog() at Torch.Server.Initializer.Run() in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Initializer.cs:line 123 at Torch.Server.Program.Main(String[] args) in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Program.cs:line 48 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssemblyByName(String assemblyName, String[] args) at Torch.Utils.TorchLauncher.Launch(String entryPoint, String[] args, String[] binaryPaths) in C:\jenkins\workspace\Torch_Torch_master\Torch\Utils\TorchLauncher.cs:line 38 at Torch.Server.Program.Main(String[] args) in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Program.cs:line 48 10:28:08.8781 [FATAL] Initializer: System.IndexOutOfRangeException: Index was outside the bounds of the array. at Torch.Collections.MtObservableSortedDictionary2.ProxyCollection1.CopyTo(TT[] array, Int32 arrayIndex) in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\MtObservableSortedDictionary.cs:line 277 at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at Torch.Collections.SortedView1.Refresh() in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\SortedView.cs:line 111 System.IndexOutOfRangeException: Index was outside the bounds of the array. at Torch.Collections.MtObservableSortedDictionary2.ProxyCollection1.CopyTo(TT[] array, Int32 arrayIndex) in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\MtObservableSortedDictionary.cs:line 277 at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at Torch.Collections.SortedView1.Refresh() in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\SortedView.cs:line 111

N1Ran commented 5 years ago

Looks like you may have a corrupt download of Torch. Redownload it and try again

Alien6666 commented 5 years ago

Here's another script error, I cleared out the torch server folder and downloaded a fresh copy. The torch server crashes every night while not in use.

01:18:51.2701 [ERROR] Keen: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at Torch.Collections.MtObservableSortedDictionary2.ProxyCollection1.CopyTo(TT[] array, Int32 arrayIndex) in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\MtObservableSortedDictionary.cs:line 277 at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at Torch.Collections.SortedView1.Refresh() in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\SortedView.cs:line 111 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) 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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Window.ShowDialog() at Torch.Server.Initializer.Run() in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Initializer.cs:line 123 at Torch.Server.Program.Main(String[] args) in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Program.cs:line 48 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssemblyByName(String assemblyName, String[] args) at Torch.Utils.TorchLauncher.Launch(String entryPoint, String[] args, String[] binaryPaths) in C:\jenkins\workspace\Torch_Torch_master\Torch\Utils\TorchLauncher.cs:line 38 at Torch.Server.Program.Main(String[] args) in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Program.cs:line 48 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at Torch.Collections.MtObservableSortedDictionary2.ProxyCollection1.CopyTo(TT[] array, Int32 arrayIndex) in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\MtObservableSortedDictionary.cs:line 277 at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at Torch.Collections.SortedView1.Refresh() in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\SortedView.cs:line 111 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) 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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Window.ShowDialog() at Torch.Server.Initializer.Run() in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Initializer.cs:line 123 at Torch.Server.Program.Main(String[] args) in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Program.cs:line 48 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssemblyByName(String assemblyName, String[] args) at Torch.Utils.TorchLauncher.Launch(String entryPoint, String[] args, String[] binaryPaths) in C:\jenkins\workspace\Torch_Torch_master\Torch\Utils\TorchLauncher.cs:line 38 at Torch.Server.Program.Main(String[] args) in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Program.cs:line 48

kurazarrh commented 5 years ago

I am also getting the exact same error as in @Alien6666 's original post (stack trace pasted below). I have noticed that it seems to happen on our server occasionally when it attempts to autosave, happening maybe 5-10% out of all autosaves.

EDIT: It has now happened twice during times when it was NOT autosaving: Once immediately when I placed some items into a cargo container. Once randomly, out of the blue. I was watching the server console output at the time, and nothing was happening.


EDIT 2: With @N1Ran 's advice, I deleted my Torch folder and reinstalled from scratch. Still getting the exact same error.


Oddly, the server continues to run after encountering this error, but due to the error dialog, I can't shut the server down gracefully once this error occurs.

Torch Version: 1.3.1.33 SE Version: 1.190.009

Stack trace:

17:35:51.1732 [FATAL] Initializer: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at Torch.Collections.MtObservableSortedDictionary2.ProxyCollection1.CopyTo(TT[] array, Int32 arrayIndex) in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\MtObservableSortedDictionary.cs:line 277 at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at Torch.Collections.SortedView1.Refresh() in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\SortedView.cs:line 111 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) 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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Window.ShowDialog() at Torch.Server.Initializer.Run() in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Initializer.cs:line 123 at Torch.Server.Program.Main(String[] args) in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Program.cs:line 48 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssemblyByName(String assemblyName, String[] args) at Torch.Utils.TorchLauncher.Launch(String entryPoint, String[] args, String[] binaryPaths) in C:\jenkins\workspace\Torch_Torch_master\Torch\Utils\TorchLauncher.cs:line 38 at Torch.Server.Program.Main(String[] args) in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Program.cs:line 48 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at Torch.Collections.MtObservableSortedDictionary2.ProxyCollection1.CopyTo(TT[] array, Int32 arrayIndex) in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\MtObservableSortedDictionary.cs:line 277 at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at Torch.Collections.SortedView1.Refresh() in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\SortedView.cs:line 111 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) 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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Window.ShowDialog() at Torch.Server.Initializer.Run() in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Initializer.cs:line 123 at Torch.Server.Program.Main(String[] args) in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Program.cs:line 48 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssemblyByName(String assemblyName, String[] args) at Torch.Utils.TorchLauncher.Launch(String entryPoint, String[] args, String[] binaryPaths) in C:\jenkins\workspace\Torch_Torch_master\Torch\Utils\TorchLauncher.cs:line 38 at Torch.Server.Program.Main(String[] args) in C:\jenkins\workspace\Torch_Torch_master\Torch.Server\Program.cs:line 48 17:35:51.3372 [FATAL] Initializer: System.IndexOutOfRangeException: Index was outside the bounds of the array. at Torch.Collections.MtObservableSortedDictionary2.ProxyCollection1.CopyTo(TT[] array, Int32 arrayIndex) in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\MtObservableSortedDictionary.cs:line 277 at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at Torch.Collections.SortedView1.Refresh() in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\SortedView.cs:line 111 System.IndexOutOfRangeException: Index was outside the bounds of the array. at Torch.Collections.MtObservableSortedDictionary2.ProxyCollection1.CopyTo(TT[] array, Int32 arrayIndex) in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\MtObservableSortedDictionary.cs:line 277 at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at Torch.Collections.SortedView1.Refresh() in C:\jenkins\workspace\Torch_Torch_master\Torch\Collections\SortedView.cs:line 111 17:35:51.3372 [INFO] Initializer: Generating minidump at C:\ProgramData\SpaceEngineersDedicated\TreePunching\Minidump.dmp