IndexOutOfRangeException

I have these two errors on Android. What could be causing them?

Message: IndexOutOfRangeException: Index was outside the bounds of the array.
Exception: IndexOutOfRangeException: Index was outside the bounds of the array.
	at Pathfinding.HierarchicalGraph+JobRecalculateComponents.RemoveHierarchicalNode(<00000000000000000000000000000000>)
	at Pathfinding.HierarchicalGraph+JobRecalculateComponents.RemoveHierarchicalNode(<00000000000000000000000000000000>)
	at Pathfinding.HierarchicalGraph+JobRecalculateComponents.Execute(<00000000000000000000000000000000>)
	at Pathfinding.HierarchicalGraph.RecalculateIfNecessary(<00000000000000000000000000000000>)
	at Pathfinding.WorkItemProcessor.ProcessWorkItems(<00000000000000000000000000000000>)
	at AstarPath.PerformBlockingActions(<00000000000000000000000000000000>)
	at AstarPath.Update(<00000000000000000000000000000000>)
	at Pathfinding.HierarchicalGraph.RecalculateIfNecessary(Unknown Source)
	at Pathfinding.WorkItemProcessor.ProcessWorkItems(Unknown Source)
	at AstarPath.PerformBlockingActions(Unknown Source)
	at AstarPath.Update(Unknown Source)
Reported at:
Message: IndexOutOfRangeException: Index was outside the bounds of the array.
Exception: IndexOutOfRangeException: Index was outside the bounds of the array.
	at Pathfinding.HierarchicalGraph+JobRecalculateComponents.FloodFill(<00000000000000000000000000000000>)
	at Pathfinding.HierarchicalGraph+JobRecalculateComponents.Execute(<00000000000000000000000000000000>)
	at Pathfinding.HierarchicalGraph.RecalculateIfNecessary(<00000000000000000000000000000000>)
	at Pathfinding.WorkItemProcessor.ProcessWorkItems(<00000000000000000000000000000000>)
	at AstarPath.PerformBlockingActions(<00000000000000000000000000000000>)
	at AstarPath.Update(<00000000000000000000000000000000>)
	at Pathfinding.HierarchicalGraph.RecalculateIfNecessary(Unknown Source)
	at Pathfinding.WorkItemProcessor.ProcessWorkItems(Unknown Source)
	at AstarPath.PerformBlockingActions(Unknown Source)
	at AstarPath.Update(Unknown Source)
Reported at:

Hi

Which version of the package are you using?

I use A* Pathfinding Project v5.0.9

Interesting. Does it only happen on android, or can you replicate it in the editor too?

Only Android. We found it after updating the asset to version 5.0.5
Unity 2022.3.22f1

Can you reliably replicate this? How often does it happen?

Approximately 1% of players (~100 players per week). We can’t reproduce it, we see it only in production :frowning:

Hmm. Sounds incredibly hard to debug, I’m afraid. I think this is a multithreading race condition, but without being able to reproduce it at all, it’s incredibly hard to track down.