Hi,
I have such error log in an empty scene with only an AstarPath component. The graph is set to 2D Grid graph.
I read about updating unity collections package to solve the problem, but my collection package is alreay latest. Is there any other workaround?
Unity version: 2022.3.55f1
collections package: 1.51
A* project: 5.3.7
full error log:
ObjectDisposedException: Cannot access a disposed object.
Object name: ‘The NativeReference is already disposed.’.
Unity.Collections.NativeReference1[T].CheckNotDisposed () (at ./Library/PackageCache/com.unity.collections@1.5.1/Unity.Collections/NativeReference.cs:349) Unity.Collections.NativeReference
1[T].Dispose () (at ./Library/PackageCache/com.unity.collections@1.5.1/Unity.Collections/NativeReference.cs:128)
Pathfinding.NavmeshEdges.Dispose () (at ./Packages/com.arongranberg.astar/Core/Misc/NavmeshEdges.cs:31)
Pathfinding.HierarchicalGraph.OnDisable () (at ./Packages/com.arongranberg.astar/Core/Pathfinding/HierarchicalGraph.cs:110)
AstarPath.OnDisable () (at ./Packages/com.arongranberg.astar/Core/AstarPath.cs:1348)