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


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