The game crashes at the beginning of the night


GrayFox29
  • Branch: Live Branch Version: Windows Fixed
I tried everything, anyway it crashed on the night of 221 cycle.
 

 

image.png


Steps to Reproduce

=(



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.

Hello,

It seems i have the same bug, maybe triggered by the bees

Exception in: (Bee).AttackStates.root.attack.pre.
System.NullReferenceException: Object reference not set to an instance of an object
  at ThreatMonitor+Instance.OnAttacked (System.Object data) [0x00050] in <9940aeae58614ca1bb6c00a13f254645>:0
  at ThreatMonitor+<>c.<InitializeStates>b__8_1 (ThreatMonitor+Instance smi, System.Object d) [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0
  at GameStateMachine`4+GameEvent+<>c__DisplayClass6_0[StateMachineType,StateMachineInstanceType,MasterType,DefType].<Subscribe>b__0 (System.Object d) [0x00008] in <9940aeae58614ca1bb6c00a13f254645>:0
  at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x000a7] in <7060dbe640fc4334a628e29f0102a641>:0
  at EventExtensions.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x0001d] in <7060dbe640fc4334a628e29f0102a641>:0
  at Hit.DeliverHit () [0x00030] in <9940aeae58614ca1bb6c00a13f254645>:0
  at Hit..ctor (AttackProperties properties, UnityEngine.GameObject target) [0x00014] in <9940aeae58614ca1bb6c00a13f254645>:0
  at Attack.RollHits () [0x00024] in <9940aeae58614ca1bb6c00a13f254645>:0
  at Attack..ctor (AttackProperties properties, UnityEngine.GameObject[] targets) [0x00014] in <9940aeae58614ca1bb6c00a13f254645>:0
  at Weapon.AttackTargets (UnityEngine.GameObject[] targets) [0x00023] in <9940aeae58614ca1bb6c00a13f254645>:0
  at Weapon.AttackTarget (UnityEngine.GameObject target) [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0
  at AttackStates.<InitializeStates>b__9_3 (AttackStates+Instance smi) [0x00012] in <9940aeae58614ca1bb6c00a13f254645>: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 <9940aeae58614ca1bb6c00a13f254645>:0

  at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in <9fe2cbebfa394c8da6af069ec8cc9ef4>:0
  at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <7060dbe640fc4334a628e29f0102a641>:0
  at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <7060dbe640fc4334a628e29f0102a641>:0
  at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <7060dbe640fc4334a628e29f0102a641>: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 <9940aeae58614ca1bb6c00a13f254645>:0
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].PopState () [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].GoTo (StateMachine+BaseState base_state) [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0
  at GameStateMachine`4+EventTransitionData[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteTransition (StateMachineInstanceType smi) [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0
  at GameStateMachine`4+EventTransitionData[StateMachineType,StateMachineInstanceType,MasterType,DefType].OnCallback (StateMachineInstanceType smi) [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0
  at GameStateMachine`4+EventTransitionData+<>c__DisplayClass7_0[StateMachineType,StateMachineInstanceType,MasterType,DefType].<Register>b__0 (System.Object d) [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0
  at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x00000] in <7060dbe640fc4334a628e29f0102a641>:0
  at EventExtensions.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x00000] in <7060dbe640fc4334a628e29f0102a641>:0
  at KBatchedAnimController.TriggerStop () [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0
  at AnimEventManager.Update () [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0
  at Global.Update () [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0
Build: U36-481350-S

bee attacks sun 1.jpg

bee attacks sun 2.jpg

Edited by theotherone1111
when the bee attacks sunbeetle the game crashes - tested 3 times

Share this comment


Link to comment
Share on other sites
My bees do not attack beetles, but at the moment of a crash, the hive floods with water from melted blocks.
Built a melted ice cage. Water did not flow to the bees - it stopped crashing.

image.thumb.png.f9563356394fdc93a8e1c90eeda77e66.png

Share this comment


Link to comment
Share on other sites

Crasheds again. Now I can't understand why.

Exception in: (Bee).AttackStates.root.attack.pre. 
System.NullReferenceException: Object reference not set to an instance of an object
  at ThreatMonitor+Instance.OnAttacked (System.Object data) [0x00050] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at ThreatMonitor+<>c.<InitializeStates>b__8_1 (ThreatMonitor+Instance smi, System.Object d) [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at GameStateMachine`4+GameEvent+<>c__DisplayClass6_0[StateMachineType,StateMachineInstanceType,MasterType,DefType].<Subscribe>b__0 (System.Object d) [0x00008] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x000a7] in <7060dbe640fc4334a628e29f0102a641>:0 
  at EventExtensions.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x0001d] in <7060dbe640fc4334a628e29f0102a641>:0 
  at Hit.DeliverHit () [0x00030] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at Hit..ctor (AttackProperties properties, UnityEngine.GameObject target) [0x00014] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at Attack.RollHits () [0x00024] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at Attack..ctor (AttackProperties properties, UnityEngine.GameObject[] targets) [0x00014] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at Weapon.AttackTargets (UnityEngine.GameObject[] targets) [0x00023] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at Weapon.AttackTarget (UnityEngine.GameObject target) [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at AttackStates.<InitializeStates>b__9_3 (AttackStates+Instance smi) [0x00012] in <9940aeae58614ca1bb6c00a13f254645>: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 <9940aeae58614ca1bb6c00a13f254645>:0 

  at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in <9fe2cbebfa394c8da6af069ec8cc9ef4>:0 
  at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <7060dbe640fc4334a628e29f0102a641>:0 
  at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <7060dbe640fc4334a628e29f0102a641>:0 
  at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <7060dbe640fc4334a628e29f0102a641>: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 <9940aeae58614ca1bb6c00a13f254645>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].PopState () [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].GoTo (StateMachine+BaseState base_state) [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at GameStateMachine`4+EventTransitionData[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteTransition (StateMachineInstanceType smi) [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at GameStateMachine`4+EventTransitionData[StateMachineType,StateMachineInstanceType,MasterType,DefType].OnCallback (StateMachineInstanceType smi) [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at GameStateMachine`4+EventTransitionData+<>c__DisplayClass7_0[StateMachineType,StateMachineInstanceType,MasterType,DefType].<Register>b__0 (System.Object d) [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x00000] in <7060dbe640fc4334a628e29f0102a641>:0 
  at EventExtensions.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x00000] in <7060dbe640fc4334a628e29f0102a641>:0 
  at KBatchedAnimController.TriggerStop () [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at AnimEventManager.Update () [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0 
  at Global.Update () [0x00000] in <9940aeae58614ca1bb6c00a13f254645>:0 
Build: U36-481350-S

1.png

1.sav

Strangely, it started to crash on all saves.

@EricKlei

Share this comment


Link to comment
Share on other sites
2 hours ago, GrayFox29 said:

Now I can't understand why.

"fixed" means "It will be fixed in the next hot fix update or testing branch update" not right away. There will probably be an update in the next few days that will include this fix for your crash

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