Jump to content

Random Crash with IndexOutOfRangeException


AartemisS
  • Branch: Live Branch Version: Windows Fixed

Crashed for each play when Playing long enough, King of random crashes, nothing consists when crashing expect it reports the same error. and the log file have 200M+, it seems something creates a dead loop. (the log file I upload will be deleted most of repeating parts to make it smaller than 99M)

Error Info:

----------------------------------------------------------------------------------------------------------------

System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at PathFinder.AddPotentials (PathFinder+PotentialScratchPad potential_scratch_pad, PathFinder+PotentialPath potential, System.Int32 cost, System.Int32 underwater_cost, PathFinderAbilities& abilities, PathFinderQuery query, System.Int32 max_links_per_cell, NavGrid+Link[] links, PathFinder+PotentialList potentials, PathGrid path_grid, System.Int32 parent_cell, NavType parent_nav_type) [0x00014] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at PathProber.UpdateProbe (NavGrid nav_grid, System.Int32 cell, NavType nav_type, PathFinderAbilities abilities, PathFinder+PotentialPath+Flags flags) [0x00111] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at Navigator+PathProbeTask.Run (System.Object sharedData) [0x00016] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at WorkItemCollection`2[WorkItemType,SharedDataType].InternalDoWorkItem (System.Int32 work_item_idx) [0x0000d] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at JobManager.DoNextWorkItem () [0x0001a] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at JobManager+WorkerThread.Run () [0x0001e] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 

  at UnityEngine.Debug.LogError (System.Object message) [0x00000] in <9fe2cbebfa394c8da6af069ec8cc9ef4>:0 
  at Debug.LogError (System.Object obj) [0x00000] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at JobManager+WorkerThread.PrintExceptions () [0x00000] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at JobManager.Run (IWorkItemCollection work_items) [0x00000] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at GlobalJobManager.Run (IWorkItemCollection work_items) [0x00000] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at BrainScheduler+BrainGroup.AsyncPathProbe () [0x00000] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at BrainScheduler+BrainGroup.RenderEveryTick (System.Single dt, System.Boolean isAsyncPathProbeEnabled) [0x00000] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at BrainScheduler.RenderEveryTick (System.Single dt) [0x00000] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at SimAndRenderScheduler+RenderEveryTickUpdater.Update (IRenderEveryTick updater, System.Single dt) [0x00000] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at UpdateBucketWithUpdater`1[DataType].Update (System.Single dt) [0x00000] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at StateMachineUpdater+BucketGroup.AdvanceOneSubTick (System.Single dt) [0x00000] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at StateMachineUpdater.RenderEveryTick (System.Single dt) [0x00000] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at Game.LateUpdate () [0x00000] in <c8af1c7577924b4e8159a8d1b7565399>:0 
Build: U37-484114-SD

-----------------------------------------------------------------------------------------------------------------------


Steps to Reproduce

No Ideas




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.

Can't believe this fatal error still not handled, the game keeps crashing again and again. So disappointed!

each time it crashes with the same content in the log with multiple copies:

----------------------------------------------------------------------------------------------------------------------- 

[23:24:05.162] [1] [ERROR] System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at PathFinder.AddPotentials (PathFinder+PotentialScratchPad potential_scratch_pad, PathFinder+PotentialPath potential, System.Int32 cost, System.Int32 underwater_cost, PathFinderAbilities& abilities, PathFinderQuery query, System.Int32 max_links_per_cell, NavGrid+Link[] links, PathFinder+PotentialList potentials, PathGrid path_grid, System.Int32 parent_cell, NavType parent_nav_type) [0x00014] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at PathProber.UpdateProbe (NavGrid nav_grid, System.Int32 cell, NavType nav_type, PathFinderAbilities abilities, PathFinder+PotentialPath+Flags flags) [0x00111] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at Navigator+PathProbeTask.Run (System.Object sharedData) [0x00016] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at WorkItemCollection`2[WorkItemType,SharedDataType].InternalDoWorkItem (System.Int32 work_item_idx) [0x0000d] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at JobManager.DoNextWorkItem () [0x0001a] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at JobManager+WorkerThread.Run () [0x0001e] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at PathFinder.AddPotentials (PathFinder+PotentialScratchPad potential_scratch_pad, PathFinder+PotentialPath potential, System.Int32 cost, System.Int32 underwater_cost, PathFinderAbilities& abilities, PathFinderQuery query, System.Int32 max_links_per_cell, NavGrid+Link[] links, PathFinder+PotentialList potentials, PathGrid path_grid, System.Int32 parent_cell, NavType parent_nav_type) [0x00014] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at PathProber.UpdateProbe (NavGrid nav_grid, System.Int32 cell, NavType nav_type, PathFinderAbilities abilities, PathFinder+PotentialPath+Flags flags) [0x00111] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at Navigator+PathProbeTask.Run (System.Object sharedData) [0x00016] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at WorkItemCollection`2[WorkItemType,SharedDataType].InternalDoWorkItem (System.Int32 work_item_idx) [0x0000d] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at JobManager.DoNextWorkItem () [0x0001a] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at JobManager+WorkerThread.Run () [0x0001e] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 

[23:24:05.197] [1] [ERROR] System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at PathFinder.AddPotentials (PathFinder+PotentialScratchPad potential_scratch_pad, PathFinder+PotentialPath potential, System.Int32 cost, System.Int32 underwater_cost, PathFinderAbilities& abilities, PathFinderQuery query, System.Int32 max_links_per_cell, NavGrid+Link[] links, PathFinder+PotentialList potentials, PathGrid path_grid, System.Int32 parent_cell, NavType parent_nav_type) [0x00014] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at PathProber.UpdateProbe (NavGrid nav_grid, System.Int32 cell, NavType nav_type, PathFinderAbilities abilities, PathFinder+PotentialPath+Flags flags) [0x00111] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at Navigator+PathProbeTask.Run (System.Object sharedData) [0x00016] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at WorkItemCollection`2[WorkItemType,SharedDataType].InternalDoWorkItem (System.Int32 work_item_idx) [0x0000d] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at JobManager.DoNextWorkItem () [0x0001a] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at JobManager+WorkerThread.Run () [0x0001e] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at PathFinder.AddPotentials (PathFinder+PotentialScratchPad potential_scratch_pad, PathFinder+PotentialPath potential, System.Int32 cost, System.Int32 underwater_cost, PathFinderAbilities& abilities, PathFinderQuery query, System.Int32 max_links_per_cell, NavGrid+Link[] links, PathFinder+PotentialList potentials, PathGrid path_grid, System.Int32 parent_cell, NavType parent_nav_type) [0x00014] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at PathProber.UpdateProbe (NavGrid nav_grid, System.Int32 cell, NavType nav_type, PathFinderAbilities abilities, PathFinder+PotentialPath+Flags flags) [0x00111] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at Navigator+PathProbeTask.Run (System.Object sharedData) [0x00016] in <c8af1c7577924b4e8159a8d1b7565399>:0 
  at WorkItemCollection`2[WorkItemType,SharedDataType].InternalDoWorkItem (System.Int32 work_item_idx) [0x0000d] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at JobManager.DoNextWorkItem () [0x0001a] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 
  at JobManager+WorkerThread.Run () [0x0001e] in <8e85aab05d1d44a5b339d82e5aea3b88>:0 

-------------------------------------------------------

Share this comment


Link to comment
Share on other sites

So I had something similar with the following repeating.

I don't use any mods at all.

[ERROR] System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at PathFinder.AddPotentials (PathFinder+PotentialScratchPad potential_scratch_pad, PathFinder+PotentialPath potential, System.Int32 cost, System.Int32 underwater_cost, PathFinderAbilities& abilities, PathFinderQuery query, System.Int32 max_links_per_cell, NavGrid+Link[] links, PathFinder+PotentialList potentials, PathGrid path_grid, System.Int32 parent_cell, NavType parent_nav_type) [0x00014] in <84ec5be14c67406292956d199a0bec75>:0 
  at PathProber.UpdateProbe (NavGrid nav_grid, System.Int32 cell, NavType nav_type, PathFinderAbilities abilities, PathFinder+PotentialPath+Flags flags) [0x00111] in <84ec5be14c67406292956d199a0bec75>:0 
  at Navigator+PathProbeTask.Run (System.Object sharedData) [0x00016] in <84ec5be14c67406292956d199a0bec75>:0 
  at WorkItemCollection`2[WorkItemType,SharedDataType].InternalDoWorkItem (System.Int32 work_item_idx) [0x0000d] in <158cd7482f89497392ec5a6ce92a5144>:0 
  at JobManager.DoNextWorkItem () [0x0001a] in <158cd7482f89497392ec5a6ce92a5144>:0 
  at JobManager+WorkerThread.Run () [0x0001e] in <158cd7482f89497392ec5a6ce92a5144>:0 

The file would continually write while I was on the report the crash screen until I clicked the close game button. After about 1-2 min the file is just over 500 MB. I clipped off the bottom that repeats before uploading.

I was at cycle 915 when the game crashed. Save file is 9.2 MB and cannot be uploaded.

I tried loading earlier saves and the last 12 crash the same way (that's two hours of play time) at cycle 896 there's a manual save I did that works (doesn't immediately crash, gonna try playing it after this post.), somewhere between that and the cycle 906 autosave is the issue.

 

Player (cycle 915).txt

Share this comment


Link to comment
Share on other sites

So I have a theory of what may have caused it. I deconstructed a rocket engine (CO2) and then deconstructed the components above. I believe once you deconstruct the engine the components aren't tied to any object. Once I deconstructed those components they gave an error as there's now negative amounts of rocket pieces in some empty object.

IDK if that's it but my 896 cycle save was before this and my game crashed again after I dragged a deconstruct over the entire rocket. My dupes again removed the engine first then the items above. My game began to crash upon reloading saves again. I went back and deconstructed the rocket from top down and haven't had any issues since. I'm now at cycle 1030.

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