-
A* version: 5.3.8
-
Unity version: 6000.3.2f1
Issue: Getting a null reference in the following stack
“AstarNodeBuilder <>c__DisplayClass15_0.b__0 (Pathfinding.IWorkItemContext ctx) (at <00000000000000000000000000000000>:0)”,
“Pathfinding.WorkItemProcessor.ProcessWorkItems (System.Boolean force, System.Boolean sendEvents) (at <00000000000000000000000000000000>:0)”,
“AstarPath.PerformBlockingActions (System.Boolean force) (at <00000000000000000000000000000000>:0)”,
“AstarPath.FlushWorkItems () (at <00000000000000000000000000000000>:0)”,
“AstarPath.ShutdownPathfindingThreads () (at <00000000000000000000000000000000>:0)”,
“AstarPath.OnDestroy () (at <00000000000000000000000000000000>:0)”,
“”same error in OnDisable as well
“AstarNodeBuilder+<>c__DisplayClass15_0.b__0 (Pathfinding.IWorkItemContext ctx) (at <00000000000000000000000000000000>:0)”,
“Pathfinding.WorkItemProcessor.ProcessWorkItems (System.Boolean force, System.Boolean sendEvents) (at <00000000000000000000000000000000>:0)”,
“AstarPath.PerformBlockingActions (System.Boolean force) (at <00000000000000000000000000000000>:0)”,
“AstarPath.FlushWorkItems () (at <00000000000000000000000000000000>:0)”,
“AstarPath.ShutdownPathfindingThreads () (at <00000000000000000000000000000000>:0)”,
“AstarPath.OnDisable () (at <00000000000000000000000000000000>:0)”,
“”I’m not sure why it’s happening, is there anything I’m missing out? Its not always reproducible, have seen it triggered for some live users (android devices only for now).
When is this happening? Just constantly during runtime or after something in particular?
As I have not been able to reproduce it from my side, I’m not really sure when its triggered. By looking at the stack its triggered from the OnDestory and OnDisable unity events, so must have happened during scene reload which destroys the gameobject with the AstarPath script.
I sure wish this had the line numbers in the stack
Are you able to debug it on a system that’ll provide the line numbers?
I wish that too..will try some cases in my system and update if i get a better stack trace
1 Like