Jump to content

Crash: Out of nav links. Need to increase maxLinksPerCell:17


SajuurCor
  • Branch: Preview Branch Version: Windows Pending

Out of nav links. Need to increase maxLinksPerCell:17

UnityEngine.Debug:LogError (object)
Debug:LogError (object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Debug.cs:142)
NavGridUpdater:CreateLinks (int,NavTable,int,NavGrid/Link[],NavGrid/Transition[][],System.Collections.Generic.Dictionary`2<int, int>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/navigation/NavGridUpdater.cs:207)
NavGridUpdater:CreateLinksForCell (int,NavTable,int,NavGrid/Link[],NavGrid/Transition[][],System.Collections.Generic.Dictionary`2<int, int>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/navigation/NavGridUpdater.cs:65)
NavGridUpdater:UpdateLinks (System.Collections.Generic.HashSet`1<int>,NavTable,int,NavGrid/Link[],NavGrid/Transition[][],System.Collections.Generic.Dictionary`2<int, int>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/navigation/NavGridUpdater.cs:80)
NavGridUpdater:UpdateNavGrid (NavTable,NavTableValidator[],CellOffset[],int,NavGrid/Link[],NavGrid/Transition[][],System.Collections.Generic.Dictionary`2<int, int>,System.Collections.Generic.HashSet`1<int>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/navigation/NavGridUpdater.cs:35)
NavGrid:UpdateGraph (System.Collections.Generic.HashSet`1<int>) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/navigation/NavGrid.cs:528)
NavGrid:UpdateGraph () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ai/navigation/NavGrid.cs:514)
Pathfinding:UpdateNavGrids (bool) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/components/Pathfinding.cs:74)
Game:UnsafeSim200ms (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Game.cs:1483)
Game:SimEveryTick (single) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Game.cs:1401)
Game:Update () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Game.cs:1382)

Build: U42-506365-V


Steps to Reproduce

Rare crash - twice in ~20 hrs on the public testing branch.  Not reproducible upon restart.

Running quite a few mods so it may be attributable to that.  Figured I'd post it since it seems to be new in the test build and stack trace is all in the base game.




User Feedback


This became reproducible on the attached save. 

Patching the NavGrid constructor to double max_links_per_cellmax appears to fix it (although probably far too heavy handily.)  If I understand the code correctly, I believe one of the following needs to be increased (since the error is reporting 17, and these are configured with 16 + 1):

GameNavGrids.CreateDeckoBabyNavigation

GameNavGrids.CreateDreckoNavigation

GameNavGrids.CreateFlyerNavigation

The Clone Dump Cycle 269.sav

Share this comment


Link to comment
Share on other sites

Could you confirm that the error occurs when loading the save without mods? I loaded it without mods installed and didn't see the issue you describe. It may be that one of the mods you're using needs updating for this patch. As you say, if a mod increases the number of possible nav links due to pathfinding changes it will also need to bump the max_links_per_cell for that nav grid.

Share this comment


Link to comment
Share on other sites

I am also getting a similar crash and am curious if you found a solution.  I have reinstalled the game but still get the same error before the first cycle completes on a new colony.  I run with a comical number of mods and have begun isolating variables, but it's slow going.  Is it possible to manually increase the maxLinksPerCell to something above 17?  If so, where is the file location? I'll report back here if I figure it out.  Here's my crash log...

Out of nav links. Need to increase maxLinksPerCell:17

  at UnityEngine.Debug.LogError (System.Object message) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 
  at Debug.LogError (System.Object obj) [0x00000] in <8c239b169b544cce8b8bc7ddd2d09e10>:0 
  at NavGridUpdater.CreateLinks (System.Int32 cell, NavTable nav_table, System.Int32 max_links_per_cell, NavGrid+Link[] links, NavGrid+Transition[][] transitions_by_nav_type, System.Collections.Generic.Dictionary`2[TKey,TValue] teleport_transitions) [0x00000] in <7e5a6eddfdfc4c1da900a524ff2b6754>:0 
  at NavGridUpdater.CreateLinksForCell (System.Int32 cell, NavTable nav_table, System.Int32 max_links_per_cell, NavGrid+Link[] links, NavGrid+Transition[][] transitions_by_nav_type, System.Collections.Generic.Dictionary`2[TKey,TValue] teleport_transitions) [0x00000] in <7e5a6eddfdfc4c1da900a524ff2b6754>:0 
  at NavGridUpdater.UpdateLinks (System.Collections.Generic.HashSet`1[T] dirty_nav_cells, NavTable nav_table, System.Int32 max_links_per_cell, NavGrid+Link[] links, NavGrid+Transition[][] transitions_by_nav_type, System.Collections.Generic.Dictionary`2[TKey,TValue] teleport_transitions) [0x00000] in <7e5a6eddfdfc4c1da900a524ff2b6754>:0 
  at NavGridUpdater.UpdateNavGrid (NavTable nav_table, NavTableValidator[] validators, CellOffset[] bounding_offsets, System.Int32 max_links_per_cell, NavGrid+Link[] links, NavGrid+Transition[][] transitions_by_nav_type, System.Collections.Generic.Dictionary`2[TKey,TValue] teleport_transitions, System.Collections.Generic.HashSet`1[T] dirty_nav_cells) [0x00000] in <7e5a6eddfdfc4c1da900a524ff2b6754>:0 
  at NavGrid.UpdateGraph (System.Collections.Generic.HashSet`1[T] dirty_nav_cells) [0x00000] in <7e5a6eddfdfc4c1da900a524ff2b6754>:0 
  at NavGrid.UpdateGraph () [0x00000] in <7e5a6eddfdfc4c1da900a524ff2b6754>:0 
  at Pathfinding.UpdateNavGrids (System.Boolean update_all) [0x00000] in <7e5a6eddfdfc4c1da900a524ff2b6754>:0 
  at Game.UnsafeSim200ms (System.Single dt) [0x00000] in <7e5a6eddfdfc4c1da900a524ff2b6754>:0 
  at Game.SimEveryTick (System.Single dt) [0x00000] in <7e5a6eddfdfc4c1da900a524ff2b6754>:0 
  at Game.Update () [0x00000] in <7e5a6eddfdfc4c1da900a524ff2b6754>:0 
Build: U42-512719-S

Share this comment


Link to comment
Share on other sites

I've had this problem just a couple of minutes ago and I fixed it by removing Pacu Pathfinding Bugfix mod. I don't really know why it works but it works.

  • Big Ups 1

Share this comment


Link to comment
Share on other sites

I have almost the same error now, any ideas how to fix this?

 

Out of nav links. Need to increase maxLinksPerCell:33

  at UnityEngine.Debug.LogError (System.Object message) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0
  at Debug.LogError (System.Object obj) [0x00000] in <d2ff0ec32ae74bb091b2c7c87705ee3b>:0
  at NavGridUpdater.CreateLinks (System.Int32 cell, NavTable nav_table, System.Int32 max_links_per_cell, NavGrid+Link[] links, NavGrid+Transition[][] transitions_by_nav_type, System.Collections.Generic.Dictionary`2[TKey,TValue] teleport_transitions) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
  at NavGridUpdater.CreateLinksForCell (System.Int32 cell, NavTable nav_table, System.Int32 max_links_per_cell, NavGrid+Link[] links, NavGrid+Transition[][] transitions_by_nav_type, System.Collections.Generic.Dictionary`2[TKey,TValue] teleport_transitions) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
  at NavGridUpdater.UpdateLinks (System.Collections.Generic.HashSet`1[T] dirty_nav_cells, NavTable nav_table, System.Int32 max_links_per_cell, NavGrid+Link[] links, NavGrid+Transition[][] transitions_by_nav_type, System.Collections.Generic.Dictionary`2[TKey,TValue] teleport_transitions) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
  at NavGridUpdater.UpdateNavGrid (NavTable nav_table, NavTableValidator[] validators, CellOffset[] bounding_offsets, System.Int32 max_links_per_cell, NavGrid+Link[] links, NavGrid+Transition[][] transitions_by_nav_type, System.Collections.Generic.Dictionary`2[TKey,TValue] teleport_transitions, System.Collections.Generic.HashSet`1[T] dirty_nav_cells) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
  at NavGrid.UpdateGraph (System.Collections.Generic.HashSet`1[T] dirty_nav_cells) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
  at NavGrid.NavGrid.UpdateGraph_Patch0 (NavGrid ) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
  at Pathfinding.UpdateNavGrids (System.Boolean update_all) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
  at Game.UnsafeSim200ms (System.Single dt) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
  at Game.SimEveryTick (System.Single dt) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
  at Game.Game.Update_Patch2 (Game ) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
Build: U48-568201-SOut of nav links. Need to increase maxLinksPerCell:33

at UnityEngine.Debug.LogError (System.Object message) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0
at Debug.LogError (System.Object obj) [0x00000] in <d2ff0ec32ae74bb091b2c7c87705ee3b>:0
at NavGridUpdater.CreateLinks (System.Int32 cell, NavTable nav_table, System.Int32 max_links_per_cell, NavGrid+Link[] links, NavGrid+Transition[][] transitions_by_nav_type, System.Collections.Generic.Dictionary`2[TKey,TValue] teleport_transitions) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
at NavGridUpdater.CreateLinksForCell (System.Int32 cell, NavTable nav_table, System.Int32 max_links_per_cell, NavGrid+Link[] links, NavGrid+Transition[][] transitions_by_nav_type, System.Collections.Generic.Dictionary`2[TKey,TValue] teleport_transitions) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
at NavGridUpdater.UpdateLinks (System.Collections.Generic.HashSet`1[T] dirty_nav_cells, NavTable nav_table, System.Int32 max_links_per_cell, NavGrid+Link[] links, NavGrid+Transition[][] transitions_by_nav_type, System.Collections.Generic.Dictionary`2[TKey,TValue] teleport_transitions) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
at NavGridUpdater.UpdateNavGrid (NavTable nav_table, NavTableValidator[] validators, CellOffset[] bounding_offsets, System.Int32 max_links_per_cell, NavGrid+Link[] links, NavGrid+Transition[][] transitions_by_nav_type, System.Collections.Generic.Dictionary`2[TKey,TValue] teleport_transitions, System.Collections.Generic.HashSet`1[T] dirty_nav_cells) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
at NavGrid.UpdateGraph (System.Collections.Generic.HashSet`1[T] dirty_nav_cells) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
at NavGrid.NavGrid.UpdateGraph_Patch0 (NavGrid ) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
at Pathfinding.UpdateNavGrids (System.Boolean update_all) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
at Game.UnsafeSim200ms (System.Single dt) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
at Game.SimEveryTick (System.Single dt) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
at Game.Game.Update_Patch2 (Game ) [0x00000] in <ad882e55d8ac49379773540ee16f428f>:0
Build: U48-568201-S

Share this comment


Link to comment
Share on other sites

I found out it was a mod I installed. It is called "Slide Down Ladders" and the bug only appeared after over 400 cycles. Strange.

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