Jump to content

Dying Hive causes NPE when Beeta tries to return to the now-gone Hive


Xirema
  • Branch: Live Branch Version: Windows Fixed

Trace of the Crash, below.

I actually witnessed the sequence of events, because I was watching a Beeta Hive that was heating up past its survivable range. The Hive heated up above 0C, died, and the beeta which was out foraging tried to reenter the hive at the moment the hive died. This crash then occurred.

Exception in: (Bee).BeeForageStates.root.storage.storeMaterial. 
System.NullReferenceException
  at (wrapper managed-to-native) UnityEngine.Component.GetComponentFastPath(UnityEngine.Component,System.Type,intptr)
  at UnityEngine.Component.GetComponent[T] () [0x00021] in <72b60a3dd8cd4f12a155b761a1af9144>:0 
  at BeeForageStates.StoreOre (BeeForageStates+Instance smi) [0x0000b] in <d3a376420e78430e89fc189ee049a6ac>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteActions (StateMachine`4+State[StateMachineType,StateMachineInstanceType,MasterType,DefType] state, System.Collections.Generic.List`1[T] actions) [0x00048] in <d3a376420e78430e89fc189ee049a6ac>:0 

  at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 
  at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <d35824e72985464e85149179dd14d71e>:0 
  at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <d35824e72985464e85149179dd14d71e>:0 
  at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <d35824e72985464e85149179dd14d71e>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteActions (StateMachine`4+State[StateMachineType,StateMachineInstanceType,MasterType,DefType] state, System.Collections.Generic.List`1[T] actions) [0x00000] in <d3a376420e78430e89fc189ee049a6ac>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].PopState () [0x00000] in <d3a376420e78430e89fc189ee049a6ac>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].GoTo (StateMachine+BaseState base_state) [0x00000] in <d3a376420e78430e89fc189ee049a6ac>:0 
  at GameStateMachine`4+EventTransitionData[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteTransition (StateMachineInstanceType smi) [0x00000] in <d3a376420e78430e89fc189ee049a6ac>:0 
  at GameStateMachine`4+EventTransitionData[StateMachineType,StateMachineInstanceType,MasterType,DefType].OnCallback (StateMachineInstanceType smi) [0x00000] in <d3a376420e78430e89fc189ee049a6ac>:0 
  at GameStateMachine`4+EventTransitionData+<>c__DisplayClass7_0[StateMachineType,StateMachineInstanceType,MasterType,DefType].<Register>b__0 (System.Object d) [0x00000] in <d3a376420e78430e89fc189ee049a6ac>:0 
  at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x00000] in <d35824e72985464e85149179dd14d71e>:0 
  at EventExtensions.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x00000] in <d35824e72985464e85149179dd14d71e>:0 
  at PeterHan.FastTrack.PathPatches.DeferredTriggers.TriggerAndQueue (KAnimControllerBase source, System.Int32 hash, System.Object data) [0x00000] in <70a2a68c236d4f72a9a06ed3adc7f3a5>:0 
  at PeterHan.FastTrack.PathPatches.KBatchedAnimController_TriggerStop_Patch.Prefix (KBatchedAnimController __instance) [0x00000] in <70a2a68c236d4f72a9a06ed3adc7f3a5>:0 
  at KBatchedAnimController.KBatchedAnimController.TriggerStop_Patch1 (KBatchedAnimController ) [0x00000] in <d3a376420e78430e89fc189ee049a6ac>:0 
  at AnimEventManager.Update () [0x00000] in <d3a376420e78430e89fc189ee049a6ac>:0 
  at Global.Global.Update_Patch1 (Global ) [0x00000] in <d3a376420e78430e89fc189ee049a6ac>:0 
Build: U46-551176-SD

I originally reported the crash to the Fast Track mod, since its code shows up in the trace, but the mod author believes it to be a vanilla bug.


Steps to Reproduce

1. Have a Beeta Hive die while a Beeta is trying to return uranium ore to the hive

  • Like 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

I hope that the next update lands soon. Getting tired of this error.

Edited by Knurek

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...