[1.203.024] Ai Defensive Block Crash

Slushtrap Gamer shared this bug 7 months ago
Solved

Defensive ai block can cause an exception when fleeing.

2023-10-01 23:38:46.484 - Thread: 1 -> Exception occurred: System.NullReferenceException: Object reference not set to an instance of an object.

at SpaceEngineers.Game.Entities.Blocks.MyDefensiveCombatBlock.Flee(Boolean force)

at SpaceEngineers.Game.Entities.Blocks.MyDefensiveCombatBlock.OnTargetChanged(MyEntity old, MyEntity neww, Boolean fromSearch)

at System.Action`3.Invoke(T1 arg1, T2 arg2, T3 arg3)

at System.DelegateExtensions.InvokeIfNotNull[T1,T2,T3](Action`3 handler, T1 arg1, T2 arg2, T3 arg3)

at SpaceEngineers.Game.EntityComponents.Blocks.MySearchEnemyComponent.SetFoundEnemy(MyEntity value, Boolean fromSearch)

at SpaceEngineers.Game.EntityComponents.Blocks.MySearchEnemyComponent.FilterEnemiesComplete(WorkData workData)

at Sandbox.MySandboxGame.ProcessInvoke(Boolean isClosing)

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 VRage.Dedicated.DedicatedServer.RunInternal(String instanceName)

at VRage.Dedicated.DedicatedServer.RunMain(String instanceName, String customPath, Boolean isService, Boolean showConsole, Boolean checkAlive)

at VRage.Dedicated.DedicatedServer.ProcessArgs(String[] args)

at VRage.Dedicated.DedicatedServer.Run(String[] args, Action`1 initializeServices)

at SpaceEngineersDedicated.MyProgram.Main(String[] args)

Replies (4)

photo
1

Hello, engineer!

Thank you for writing to us.

Could you please provide us the complete log file? It would be greatly helpful for our further investigation of the crash.

Any other additional information, such as reproduction steps, would also be highly appreciated.

Kind Regards,

Keen Software House: QA Department

photo
1

Looks like its triggered when active defense blocks are removed, like in battles. Has also been observed to cause an exception when getting removed by other means, such as the entity list.

photo
1

Hello. engineer!

Thank you for sharing the log.

The issue has been reported to our internal system.

Kind Regards,

Keen Software House: QA Department

photo
1

Hello, Engineer,

I am happy to let you know that this issue is not present anymore on the current version v203.630.

I will close this thread as Solved.

Please if you would experience this problem from now on open new thread again and provide new information there.

Thank you.

Happy Engineering!

Kind Regards

Keen Software House: QA Department

Leave a Comment
 
Attach a file