Jump to content

Crashing a lot when attacking critters - Public Testing 489490


NeoDeusMachina
  • Branch: Preview Branch Version: Windows Fixed

I have been getting multiple crashes when attacking critters, see crash messages below. It happens pretty consistently when I launch an eradication command on a massive amount of Pips, for example. Some other times, dupes attack critters just fine, but if I cancel the attack commands the game instantly crashes.

Let me know if having a save file uploaded would be helpful - otherwise I will only attach the Player.log.

Spoiler

Exception in: (Minion).ThreatMonitor.root.threatened.duplicant.ShouldFight. 
System.NullReferenceException: Object reference not set to an instance of an object
  at AttackChore.End (System.String reason) [0x00008] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\chores\AttackChore.cs:213 
  at Chore.Cancel (System.String reason) [0x0006b] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\demands\Chore.cs:815 
  at GameStateMachine`4+State[StateMachineType,StateMachineInstanceType,MasterType,DefType].ClearChore (StateMachineInstanceType smi, System.Int32 chore_data_idx, System.Int32 callback_data_idx) [0x00063] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\statemachine\GameStateMachine.cs:1519 
  at GameStateMachine`4+State+<>c__DisplayClass60_0[StateMachineType,StateMachineInstanceType,MasterType,DefType].<ToggleChore>b__1 (StateMachineInstanceType smi) [0x00001] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\statemachine\GameStateMachine.cs:1608 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteActions (StateMachine`4+State[StateMachineType,StateMachineInstanceType,MasterType,DefType] state, System.Collections.Generic.List`1[T] actions) [0x00057] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\statemachine\StateMachine.cs:875 

UnityEngine.Debug:LogError (object,UnityEngine.Object)
Debug:LogError (object,UnityEngine.Object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Debug.cs:152)
DebugUtil:LogErrorArgs (UnityEngine.Object,object[]) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/DebugUtil.cs:191)
DebugUtil:LogException (UnityEngine.Object,string,System.Exception) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/DebugUtil.cs:201)
StateMachine`4/GenericInstance<ThreatMonitor, ThreatMonitor/Instance, IStateMachineTarget, ThreatMonitor/Def>:ExecuteActions (StateMachine`4/State<ThreatMonitor, ThreatMonitor/Instance, IStateMachineTarget, ThreatMonitor/Def>,System.Collections.Generic.List`1<StateMachine/Action>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:909)
StateMachine`4/GenericInstance<ThreatMonitor, ThreatMonitor/Instance, IStateMachineTarget, ThreatMonitor/Def>:PopState () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:972)
StateMachine`4/GenericInstance<ThreatMonitor, ThreatMonitor/Instance, IStateMachineTarget, ThreatMonitor/Def>:GoTo (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1136)
GameStateMachine`4/State/TransitionUpdater<ThreatMonitor, ThreatMonitor/Instance, IStateMachineTarget, ThreatMonitor/Def>:Update (ThreatMonitor/Instance,single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/GameStateMachine.cs:2411)
UpdateBucketWithUpdater`1<ThreatMonitor/Instance>:Update (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:79)
StateMachineUpdater/BucketGroup:AdvanceOneSubTick (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:152)
StateMachineUpdater:AdvanceOneSimSubTick () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:244)
Game:SimEveryTick (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Game.cs:1372)
Game:Update () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Game.cs:1348)

Build: U39-489490-S

This seems like a different crash while attacking:

Spoiler

Exception in: (Nisbet).AttackChore+States.GoTo((Stop))
System.NullReferenceException: Object reference not set to an instance of an object
  at AttackChore.End (System.String reason) [0x00008] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\chores\AttackChore.cs:213 
  at Chore.Cancel (System.String reason) [0x0006b] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\demands\Chore.cs:815 
  at Chore.Fail (System.String reason) [0x00033] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\demands\Chore.cs:795 
  at Chore.OnStateMachineStop (System.String reason, StateMachine+Status status) [0x00016] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\demands\Chore.cs:831 
  at AttackChore.OnStateMachineStop (System.String reason, StateMachine+Status status) [0x00008] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\chores\AttackChore.cs:139 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].StopSM (System.String reason) [0x000c6] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\statemachine\StateMachine.cs:1049 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].GoTo (StateMachine+BaseState base_state) [0x00125] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\statemachine\StateMachine.cs:1110 

UnityEngine.Debug:LogError (object,UnityEngine.Object)
Debug:LogError (object,UnityEngine.Object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Debug.cs:152)
DebugUtil:LogErrorArgs (UnityEngine.Object,object[]) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/DebugUtil.cs:191)
StateMachine`4/GenericInstance<AttackChore/States, AttackChore/StatesInstance, AttackChore, object>:GoTo (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1163)
StateMachine`4/Parameter`1/Transition<AttackChore/States, AttackChore/StatesInstance, AttackChore, object, UnityEngine.GameObject>:Evaluate (AttackChore/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1293)
StateMachine`4/Parameter`1/Context<AttackChore/States, AttackChore/StatesInstance, AttackChore, object, UnityEngine.GameObject>:Set (UnityEngine.GameObject,AttackChore/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1369)
StateMachine`4/TargetParameter/Context<AttackChore/States, AttackChore/StatesInstance, AttackChore, object>:Set (UnityEngine.GameObject,AttackChore/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1960)
StateMachine`4/TargetParameter/Context<AttackChore/States, AttackChore/StatesInstance, AttackChore, object>:OnObjectDestroyed (object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1965)
EventSystem:Trigger (UnityEngine.GameObject,int,object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/EventSystem.cs:161)
KMonoBehaviour:Trigger (int,object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/KMonoBehaviour.cs:411)
KPrefabID:OnCleanUp () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/KPrefabID.cs:362)
KMonoBehaviour:OnDestroy () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/KMonoBehaviour.cs:230)

Build: U39-489490-S

 


Steps to Reproduce

- Attack a lot of critters ( it doesn't seem to happen systematically every single time).

- Cancelling attack order while dupes are fighting sometimes triggers the crash

  • 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 have exactly the same problem. I'm pretty sure this will happen when I use the mass attack command and the last creature dies.
I saw a similar error log but was different one time:

Spoiler

Exception in: (Мип).AttackChore+States.GoTo((Stop)) System.NullReferenceException: Object reference not set to an instance of an object at AttackChore.End (System.String reason) [0x00008] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\chores\AttackChore.cs:213 at Chore.Cancel (System.String reason) [0x0006b] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\demands\Chore.cs:815 at Chore.Fail (System.String reason) [0x00033] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\demands\Chore.cs:795 at Chore.OnStateMachineStop (System.String reason, StateMachine+Status status) [0x00016] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\demands\Chore.cs:831 at AttackChore.OnStateMachineStop (System.String reason, StateMachine+Status status) [0x00008] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\chores\AttackChore.cs:139 at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].StopSM (System.String reason) [0x000c6] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\statemachine\StateMachine.cs:1049 at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].GoTo (StateMachine+BaseState base_state) [0x00125] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\ai\statemachine\StateMachine.cs:1110 UnityEngine.Debug:LogError (object,UnityEngine.Object) Debug:LogError (object,UnityEngine.Object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Debug.cs:152) DebugUtil:LogErrorArgs (UnityEngine.Object,object[]) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/DebugUtil.cs:191) StateMachine`4/GenericInstance<AttackChore/States, AttackChore/StatesInstance, AttackChore, object>:GoTo (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1163) StateMachine`4/Parameter`1/Transition<AttackChore/States, AttackChore/StatesInstance, AttackChore, object, UnityEngine.GameObject>:Evaluate (AttackChore/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1293) StateMachine`4/GenericInstance<AttackChore/States, AttackChore/StatesInstance, AttackChore, object>:PushState (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:823) StateMachine`4/GenericInstance<AttackChore/States, AttackChore/StatesInstance, AttackChore, object>:GoTo (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1141) StateMachine/Instance:StartSM () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:253) StateMachine`4/GenericInstance<AttackChore/States, AttackChore/StatesInstance, AttackChore, object>:StartSM () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1010) Chore:Begin (Chore/Precondition/Context) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/demands/Chore.cs:710) AttackChore:Begin (Chore/Precondition/Context) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/chores/AttackChore.cs:207) ChoreDriver/StatesInstance:BeginChore () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/demands/ChoreDriver.cs:30) ChoreDriver/States/<>c:<InitializeStates>b__5_2 (ChoreDriver/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/demands/ChoreDriver.cs:107) StateMachine`4/GenericInstance<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object>:ExecuteActions (StateMachine`4/State<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object>,System.Collections.Generic.List`1<StateMachine/Action>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:875) StateMachine`4/GenericInstance<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object>:PushState (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:834) StateMachine`4/GenericInstance<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object>:GoTo (StateMachine/BaseState) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1141) StateMachine`4/Parameter`1/Transition<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object, Chore>:Evaluate (ChoreDriver/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1293) StateMachine`4/Parameter`1/Context<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object, Chore>:Set (Chore,ChoreDriver/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1369) StateMachine`4/Parameter`1<ChoreDriver/States, ChoreDriver/StatesInstance, ChoreDriver, object, Chore>:Set (Chore,ChoreDriver/StatesInstance) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/statemachine/StateMachine.cs:1251) ChoreDriver:SetChore (Chore/Precondition/Context) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/demands/ChoreDriver.cs:172) Brain:UpdateChores () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/Brain.cs:80) Brain:UpdateBrain () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/Brain.cs:57) MinionBrain:UpdateBrain () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/MinionBrain.cs:262) BrainScheduler/BrainGroup:RenderEveryTick (single,bool) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/BrainScheduler.cs:207) BrainScheduler:RenderEveryTick (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/BrainScheduler.cs:360) SimAndRenderScheduler/RenderEveryTickUpdater:Update (IRenderEveryTick,single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/SimAndRenderScheduler.cs:188) UpdateBucketWithUpdater`1<IRenderEveryTick>:Update (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:79) StateMachineUpdater/BucketGroup:AdvanceOneSubTick (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:152) StateMachineUpdater:RenderEveryTick (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:264) Game:LateUpdate () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Game.cs:1628) Build: U39-489490-SD

 

  • Like 2

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...