Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NRE in Coresystems.Platform.LeadTarget #49

Open
InvalidArgument3 opened this issue May 29, 2024 · 0 comments
Open

NRE in Coresystems.Platform.LeadTarget #49

InvalidArgument3 opened this issue May 29, 2024 · 0 comments

Comments

@InvalidArgument3
Copy link

Is this a multiplayer or singleplayer bug?

both

Describe the bug:

Steps To Reproduce:

appeared when fighting a bunch of random test NPCs in a world.

2024-05-29 03:04:40.657 - Thread:   1 ->  Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at CoreSystems.Platform.Weapon.TrajectoryEstimation(Weapon weapon, Vector3D targetPos, Vector3D targetVel, Vector3D targetAcc, Vector3D shooterPos, Boolean& valid, Boolean basicPrediction, Boolean trackAngular)
   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)
2024-05-29 03:04:40.660 - Thread:   1 ->  Exception occurred: System.NullReferenceException: Object reference not set to an instance of an object.
   at CoreSystems.Platform.Weapon.TrajectoryEstimation(Weapon weapon, Vector3D targetPos, Vector3D targetVel, Vector3D targetAcc, Vector3D shooterPos, Boolean& valid, Boolean basicPrediction, Boolean trackAngular)
   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)
   at avaness.SpaceEngineersLauncher.Program.StartSpaceEngineers(String[] args)
   at avaness.SpaceEngineersLauncher.Program.Main(String[] args)
2024-05-29 03:04:40.660 - Thread:   1 ->  Showing message
2024-05-29 03:04:40.660 - Thread:   1 ->  MyInitializer.OnCrash
2024-05-29 03:04:40.660 - Thread:   1 ->  var exception = System.NullReferenceException: Object reference not set to an instance of an object.
   at CoreSystems.Platform.Weapon.TrajectoryEstimation(Weapon weapon, Vector3D targetPos, Vector3D targetVel, Vector3D targetAcc, Vector3D shooterPos, Boolean& valid, Boolean basicPrediction, Boolean trackAngular)
   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)
   at avaness.SpaceEngineersLauncher.Program.StartSpaceEngineers(String[] args)
   at avaness.SpaceEngineersLauncher.Program.Main(String[] args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant