Space Engineers

Space Engineers

Modular Encounters Systems
theBradGuy 15 May, 2019 @ 12:31am
Server Crashing Occasionally
This has been going on since Saturday, and I havn't been able to figure out why until today. I spotted this in my torch.log from a crash with no one but me on the server, and afk at that :
01:42:58.7031 [FATAL] Initializer: System.ArgumentNullException: Value cannot be null. Parameter name: key at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) at System.Collections.Generic.Dictionary`2.FindEntry(TKey key) at ModularEncountersSpawner.Spawners.SpaceCargoShipSpawner.GetSpaceCargoShips(Vector3D playerCoords) at ModularEncountersSpawner.Spawners.SpaceCargoShipSpawner.AttemptSpawn(Vector3D startCoords) at ModularEncountersSpawner.MES_SessionCore.ProcessPlayerWatchList() at ModularEncountersSpawner.MES_SessionCore.UpdateBeforeSimulation() at Sandbox.Game.World.MySession.UpdateComponents() at Sandbox.Game.World.MySession.Update(MyTimeSpan updateTime) at Sandbox.MySandboxGame.Update() at Sandbox.Engine.Platform.Game.UpdateInternal() at Sandbox.Engine.Platform.Game.RunSingleFrame() at Sandbox.Engine.Platform.FixedLoop.<>c__DisplayClass11_0.<Run>b__0() at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback) at Sandbox.Engine.Platform.Game.RunLoop() at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen) at Torch.VRageGame.DoStart() in C:\jenkins\workspace\Torch_Torch_master\Torch\VRageGame.cs:line 241 at Torch.VRageGame.Run() in C:\jenkins\workspace\Torch_Torch_master\Torch\VRageGame.cs:line 118 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.Threading.ThreadHelper.ThreadStart()

This ends up causing torch to keep running, but crashing the game thread, resulting in my server hanging in a fail state rather than crashing and autorestarting.