This object is in archive! 

ERROR Not-A-Number crash (modded)

jxy shared this feedback 16 months ago
Not Enough Votes

Hello Team !

Currently playing on soft modded server (less that 40 active mods) we encounter a bug that comes really often.

Often when we lock and use weapons, the hosted game crash with a Not-A-Number error triggered.


Here is the stacktrace:

023-08-11 22:55:53.420 - Thread: 1 -> Exception occurred: System.ArithmeticException: Function does not accept floating point Not-a-Number values.

at System.Math.Sign(Double value)

at CoreSystems.Support.MathFuncs.GetRotationAngles(Vector3D& targetVector, MatrixD& matrix, Double& yaw, Double& pitch)

at CoreSystems.Platform.Weapon.LeadTarget(Weapon weapon, MyEntity target, Vector3D& targetPos, Boolean& couldHit, Boolean& willHit)

at WeaponCore.Data.Scripts.CoreSystems.Ui.Targeting.TargetUi.ComputeLead(MyEntity target, Vector3D targetPos, Single& maxLeadLength, Vector3D& fullAveragePos)

at WeaponCore.Data.Scripts.CoreSystems.Ui.Targeting.TargetUi.DrawActiveLeads()

at WeaponCore.Data.Scripts.CoreSystems.Ui.Targeting.TargetUi.DrawTargetUi()

at CoreSystems.Session.Draw()

at Sandbox.Game.World.MySession.DrawSync()

at Sandbox.Game.Gui.MyGuiScreenGamePlay.Draw()

at Sandbox.Graphics.GUI.MyScreenManager.DrawScreens(MyGuiScreenBase screenFade)

at Sandbox.Graphics.GUI.MyScreenManager.Draw()

at Sandbox.Graphics.GUI.MyDX9Gui.Draw()

at Sandbox.Graphics.GUI.MyGuiSandbox.Draw()

at Sandbox.MySandboxGame.PrepareForDraw()

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 SpaceEngineers.MyProgram.Main(String[] args)


Any clue to avoid that ?

Replies (1)

photo
1

when u lock and use weapons in normal game nothing crashes, hence error comes from your mods, not keens job dude

photo
1

But this exception cames from the game itself, hence this cames from a mod, the game may not crash that way ? Also from a NaN value

photo
Leave a Comment
 
Attach a file