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

NullReferenceException in MyLargeTurretBasePatch #1

Open
viktor-ferenczi opened this issue Jan 2, 2021 · 1 comment
Open

NullReferenceException in MyLargeTurretBasePatch #1

viktor-ferenczi opened this issue Jan 2, 2021 · 1 comment

Comments

@viktor-ferenczi
Copy link

viktor-ferenczi commented Jan 2, 2021

Torch: RELEASE
Torch: Torch Version: v1.3.1.138-master
Torch: Game Version: 1.197.73

00:58:22.7238 [FATAL]  Initializer: System.NullReferenceException: Object reference not set to an instance of an object.
   at Sandbox.Game.Weapons.MyLargeTurretBase.TryFindSavedEntity()
   at Sandbox.Game.Weapons.MyLargeTurretBase.get_PreviousControlledEntity()
   at Sandbox.Game.Weapons.MyLargeTurretBase.get_IsControlled()
   at Sandbox.Game.Weapons.MyLargeTurretBase.get_IsPlayerControlled()
   at PerformanceTweaker.Patch.MyLargeTurretBasePatch.Throttler(MyLargeTurretBase __instance, MyEntityUpdateEnum update, Int32 tick) in C:\Users\Fank\Documents\GitHub\torchapi-performance-tweaker\PerformanceTweaker\Patch\MyLargeTurretBasePatch.cs:line 50
   at Patched_Sandbox.Game.Entities.Cube.MyFunctionalBlockUpdateAfterSimulation10_0(Object )
   at Sandbox.Game.Entities.Blocks.MyTextPanel.UpdateAfterSimulation10()
   at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.UpdateAfterSimulation10()
   at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.DispatchAfterSimulation()
   at Sandbox.Game.Entities.MyEntities.UpdateAfterSimulation()
   at Sandbox.Game.World.MySector.UpdateAfterSimulation()
   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:\build\workspace\Torch_Torch_master\Torch\VRageGame.cs:line 255
   at Torch.VRageGame.Run() in C:\build\workspace\Torch_Torch_master\Torch\VRageGame.cs:line 127
   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.NullReferenceException: Object reference not set to an instance of an object.
   at Sandbox.Game.Weapons.MyLargeTurretBase.TryFindSavedEntity()
   at Sandbox.Game.Weapons.MyLargeTurretBase.get_PreviousControlledEntity()
   at Sandbox.Game.Weapons.MyLargeTurretBase.get_IsControlled()
   at Sandbox.Game.Weapons.MyLargeTurretBase.get_IsPlayerControlled()
   at PerformanceTweaker.Patch.MyLargeTurretBasePatch.Throttler(MyLargeTurretBase __instance, MyEntityUpdateEnum update, Int32 tick) in C:\Users\Fank\Documents\GitHub\torchapi-performance-tweaker\PerformanceTweaker\Patch\MyLargeTurretBasePatch.cs:line 50
   at Patched_Sandbox.Game.Entities.Cube.MyFunctionalBlockUpdateAfterSimulation10_0(Object )
   at Sandbox.Game.Entities.Blocks.MyTextPanel.UpdateAfterSimulation10()
   at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.UpdateAfterSimulation10()
   at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.DispatchAfterSimulation()
   at Sandbox.Game.Entities.MyEntities.UpdateAfterSimulation()
   at Sandbox.Game.World.MySector.UpdateAfterSimulation()
   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:\build\workspace\Torch_Torch_master\Torch\VRageGame.cs:line 255
   at Torch.VRageGame.Run() in C:\build\workspace\Torch_Torch_master\Torch\VRageGame.cs:line 127
   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()
@5trubel
Copy link

5trubel commented Jan 3, 2022

Happening to me aswell
Torch Version: v1.3.1.153-master
Game Version: 1.197.73

Plugins used:

  • Concealment
  • CunchUtils
  • DeathCounter
  • JoinQueue
  • n3bOptimizations
  • PerformanceTweaker
  • Profiler
  • QuantumHangar

00:15:32.7576 [INFO] Keen: Trash collector removed grid '105884362778865706:Large Grid 5706' with entity id '105884362778865706' 00:15:53.5767 [INFO] Keen: Pasting grid request by user: [007...360] 00:16:15.3006 [FATAL] Initializer: System.NullReferenceException: Object reference not set to an instance of an object. at Sandbox.Game.Weapons.MyLargeTurretBase.TryFindSavedEntity() at Sandbox.Game.Weapons.MyLargeTurretBase.get_PreviousControlledEntity() at Sandbox.Game.Weapons.MyLargeTurretBase.get_IsControlled() at Sandbox.Game.Weapons.MyLargeTurretBase.get_IsPlayerControlled() at PerformanceTweaker.Patch.MyLargeTurretBasePatch.Throttler(MyLargeTurretBase __instance, MyEntityUpdateEnum update, Int32 tick) in C:\Users\Fank\Documents\GitHub\torchapi-performance-tweaker\PerformanceTweaker\Patch\MyLargeTurretBasePatch.cs:line 50 at Patched_Sandbox.Game.Entities.Cube.MyFunctionalBlockUpdateAfterSimulation10_0(Object ) at SpaceEngineers.Game.Entities.Blocks.MyLandingGear.UpdateAfterSimulation10() at Patched_Sandbox.Game.Entities.MyParallelEntityUpdateOrchestratorUpdateAfterSimulation10_0(Object ) at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.DispatchAfterSimulation() at Sandbox.Game.Entities.MyEntities.UpdateAfterSimulation() at Sandbox.Game.World.MySector.UpdateAfterSimulation() at Patched_Sandbox.Game.World.MySessionUpdateComponents_0(Object ) at Patched_Sandbox.Game.World.MySessionUpdate_0(Object , MyTimeSpan ) at Sandbox.MySandboxGame.Update() at Patched_Sandbox.Engine.Platform.GameUpdateInternal_0(Object ) at Patched_Sandbox.Engine.Platform.GameRunSingleFrame_0(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 Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen) at Torch.VRageGame.DoStart() in C:\build\workspace\Torch_Torch_master\Torch\VRageGame.cs:line 316 at Torch.VRageGame.Run() in C:\build\workspace\Torch_Torch_master\Torch\VRageGame.cs:line 130 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.NullReferenceException: Object reference not set to an instance of an object. at Sandbox.Game.Weapons.MyLargeTurretBase.TryFindSavedEntity() at Sandbox.Game.Weapons.MyLargeTurretBase.get_PreviousControlledEntity() at Sandbox.Game.Weapons.MyLargeTurretBase.get_IsControlled() at Sandbox.Game.Weapons.MyLargeTurretBase.get_IsPlayerControlled() at PerformanceTweaker.Patch.MyLargeTurretBasePatch.Throttler(MyLargeTurretBase __instance, MyEntityUpdateEnum update, Int32 tick) in C:\Users\Fank\Documents\GitHub\torchapi-performance-tweaker\PerformanceTweaker\Patch\MyLargeTurretBasePatch.cs:line 50 at Patched_Sandbox.Game.Entities.Cube.MyFunctionalBlockUpdateAfterSimulation10_0(Object ) at SpaceEngineers.Game.Entities.Blocks.MyLandingGear.UpdateAfterSimulation10() at Patched_Sandbox.Game.Entities.MyParallelEntityUpdateOrchestratorUpdateAfterSimulation10_0(Object ) at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.DispatchAfterSimulation() at Sandbox.Game.Entities.MyEntities.UpdateAfterSimulation() at Sandbox.Game.World.MySector.UpdateAfterSimulation() at Patched_Sandbox.Game.World.MySessionUpdateComponents_0(Object ) at Patched_Sandbox.Game.World.MySessionUpdate_0(Object , MyTimeSpan ) at Sandbox.MySandboxGame.Update() at Patched_Sandbox.Engine.Platform.GameUpdateInternal_0(Object ) at Patched_Sandbox.Engine.Platform.GameRunSingleFrame_0(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 Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen) at Torch.VRageGame.DoStart() in C:\build\workspace\Torch_Torch_master\Torch\VRageGame.cs:line 316 at Torch.VRageGame.Run() in C:\build\workspace\Torch_Torch_master\Torch\VRageGame.cs:line 130 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()

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

2 participants