[FATAL] Initializer: System.InvalidCastException: Unable to cast object of type 'Sandbox.Game.Entities.Character.MyCharacter' to type 'Sandbox.Game.Entities.MyForageableEntity'. at Sandbox.Game.WorldEnvironment.Modules.MyForageableEnvironmentProxy.CreateForageableEntitiesData.FinishEntitiesCreation() at Sandbox.Game.WorldEnvironment.Modules.MyForageableEnvironmentProxy.FinishForageableEntities(WorkData workData) at Patched_ParallelTasks.ParallelRunCallbacks_0() at Patched_Sandbox.Game.World.MySessionUpdate_0(Object , MyTimeSpan ) at Sandbox.MySandboxGame.Update() at Patched_Sandbox.Engine.Platform.GameUpdateInternal_1(Object ) at Patched_Sandbox.Engine.Platform.GameRunSingleFrame_1(Object ) at Patched_Sandbox.Engine.Platform.FixedLoop+<>c__DisplayClass11_0<Run>b__0_0(Object ) at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback) at Sandbox.Engine.Platform.Game.RunLoop() at Patched_Sandbox.MySandboxGameRun_0(Object disposeSplashScreen, Boolean , Action ) at Torch.VRageGame.DoStart() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 319 at Torch.VRageGame.Run() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 126 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() System.InvalidCastException: Unable to cast object of type 'Sandbox.Game.Entities.Character.MyCharacter' to type 'Sandbox.Game.Entities.MyForageableEntity'. at Sandbox.Game.WorldEnvironment.Modules.MyForageableEnvironmentProxy.CreateForageableEntitiesData.FinishEntitiesCreation() at Sandbox.Game.WorldEnvironment.Modules.MyForageableEnvironmentProxy.FinishForageableEntities(WorkData workData) at Patched_ParallelTasks.ParallelRunCallbacks_0() at Patched_Sandbox.Game.World.MySessionUpdate_0(Object , MyTimeSpan ) at Sandbox.MySandboxGame.Update() at Patched_Sandbox.Engine.Platform.GameUpdateInternal_1(Object ) at Patched_Sandbox.Engine.Platform.GameRunSingleFrame_1(Object ) at Patched_Sandbox.Engine.Platform.FixedLoop+<>c__DisplayClass11_0<Run>b__0_0(Object ) at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback) at Sandbox.Engine.Platform.Game.RunLoop() at Patched_Sandbox.MySandboxGameRun_0(Object disposeSplashScreen, Boolean , Action ) at Torch.VRageGame.DoStart() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 319 at Torch.VRageGame.Run() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 126 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() 09:00:06.9257 [INFO] Initializer: Generating minidump at Logs\MiniDumpT26-2026-02-13 09-00-06.dmp
This appears to be related to the environment / forageable entity system.
This server has been running with the same world, mods, and plugins for over 6 years without this issue. The problem started suddenly on 2026-02-10 without any intentional changes to the world, mods, or plugins.
Since then, there have been 9 crashes with the exact same exception, at random times:
2026-02-10 at 22:02
2026-02-10 at 23:04
2026-02-12 at 21:20
2026-02-13 at 00:08
2026-02-14 at 00:38
2026-02-14 at 13:32
2026-02-15 at 10:30
2026-02-15 at 15:35
2026-02-15 at 21:12
The crashes occur during normal gameplay, not tied to any specific action.
Before the crash, the log often shows warnings such as:
Trying to remove entity ... that is not yet replicated on client
Validation of sync value ID 5 failed
The crash always occurs in the same function related to forageable environment entities and stops the server completely.
Environment:
Dedicated server (Windows Server 2016)
Latest Space Engineers version
Server running continuously for 6+ years
Same mods and plugins used long-term
Crash started suddenly on 2026-02-10
Occurs randomly after uptime
Expected behavior:
Server should not crash when generating or finishing forageable environment entities.
Actual behavior:
Server crashes with NullReferenceException in MyForageableEnvironmentProxy.
I have the same bug
Hello David,
Thank you for reaching out on the forum.
To investigate this further, could you please send us the full server log file? This will help us confirm whether any mods, scripts, or plugins were involved at the time the issue occurred.
We would also like to know whether this happened only once, or if you are able to reproduce it consistently by following the same steps as before.
This information will help us better understand the situation and continue the investigation.
Kind regards,
Keen Software House: QA Department
Hello David,
Thank you for reaching out on the forum.
To investigate this further, could you please send us the full server log file? This will help us confirm whether any mods, scripts, or plugins were involved at the time the issue occurred.
We would also like to know whether this happened only once, or if you are able to reproduce it consistently by following the same steps as before.
This information will help us better understand the situation and continue the investigation.
Kind regards,
Keen Software House: QA Department
Hello Engineer,
As there has been no reply to this thread in some time, we will close it. If you're experiencing this issue, please create a new thread.
Kind regards,
Keen Software House: QA Department
Hello Engineer,
As there has been no reply to this thread in some time, we will close it. If you're experiencing this issue, please create a new thread.
Kind regards,
Keen Software House: QA Department
Replies have been locked on this page!