Also, I’m running into a hard Editor Crash while trying to use the 4.3.95 version PathTracer
This is almost certainly an issue on my end! But I’m not sure where the problem is
=================================================================
Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at Unity.Collections.LowLevel.Unsafe.UnsafeUtility:FreeTracked <0x00094>
at Array:Resize <0x00182>
at Unmanaged:Free <0x0004a>
at Unity.Collections.AllocatorManager:TryLegacy <0x00192>
at Unity.Collections.AllocatorManager:Try <0x0003a>
at AllocatorHandle:Try <0x0005a>
at Unity.Collections.AllocatorManager:FreeBlock <0x0005a>
at Unity.Collections.AllocatorManager:Free <0x00092>
at Unity.Collections.AllocatorManager:Free <0x0003a>
at Unity.Collections.AllocatorManager:Free <0x00032>
at Pathfinding.Util.NativeCircularBuffer`1:Grow <0x00182>
at Pathfinding.Util.NativeCircularBuffer`1:SpliceUninitializedAbsolute <0x00072>
at Pathfinding.Util.NativeCircularBuffer`1:SpliceAbsolute <0x00042>
at Pathfinding.Util.NativeCircularBuffer`1:Splice <0x00042>
at FunnelState:Splice <0x00032>
at Pathfinding.PathTracer:SetFunnelState <0x00362>
at Pathfinding.PathTracer:SetPath <0x0029a>
at AstarAINav:OnPathComplete <0x00512>
at Pathfinding.Seeker:OnPathComplete <0x001ef>
at Pathfinding.Seeker:OnPathComplete <0x0002a>
at Pathfinding.Path:ReturnPath <0x00028>
at Pathfinding.Path:Pathfinding.IPathInternals.ReturnPath <0x00017>
at Pathfinding.PathReturnQueue:ReturnPaths <0x002b2>
at AstarPath:Update <0x000b2>
at System.Object:runtime_invoke_void__this__ <0x00087>
=================================================================
Received signal SIGSEGV
Obtained 52 stack frames
0x00007ff660912fab (Unity) DynamicHeapAllocator::Deallocate
0x00007ff66092452f (Unity) DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate
0x00007ff660913822 (Unity) MemoryManager::Deallocate
0x00007ff66091c2ea (Unity) free_alloc_internal
0x00007ff6601ffb97 (Unity) UnsafeUtility::Free
0x00007ff66006a797 (Unity) UnsafeUtility_CUSTOM_FreeTracked
0x000001c568bdce35 (Mono JIT Code) (wrapper managed-to-native) Unity.Collections.LowLevel.Unsafe.UnsafeUtility:FreeTracked (void*,Unity.Collections.Allocator)
0x000001c5688fe2d3 (Mono JIT Code) Unity.Collections.Memory/Unmanaged/Array:Resize (void*,long,long,Unity.Collections.AllocatorManager/AllocatorHandle,long,int) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/Memory.cs:90)
0x000001c568bdcd7b (Mono JIT Code) Unity.Collections.Memory/Unmanaged:Free (void*,Unity.Collections.AllocatorManager/AllocatorHandle) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/Memory.cs:28)
0x000001c568bcbd43 (Mono JIT Code) Unity.Collections.AllocatorManager:TryLegacy (Unity.Collections.AllocatorManager/Block&) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/AllocatorManager.cs:1033)
0x000001c568bcba4b (Mono JIT Code) Unity.Collections.AllocatorManager:Try (Unity.Collections.AllocatorManager/Block&) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/AllocatorManager.cs:1055)
0x000001c568bcb9bb (Mono JIT Code) Unity.Collections.AllocatorManager/AllocatorHandle:Try (Unity.Collections.AllocatorManager/Block&) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/AllocatorManager.cs:540)
0x000001c568bdccbb (Mono JIT Code) Unity.Collections.AllocatorManager:FreeBlock<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,Unity.Collections.AllocatorManager/Block&) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/AllocatorManager.cs:70)
0x000001c568bcc453 (Mono JIT Code) Unity.Collections.AllocatorManager:Free<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,void*,int,int,int) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/AllocatorManager.cs:84)
0x000001c71a90c8db (Mono JIT Code) Unity.Collections.AllocatorManager:Free<Unity.Collections.AllocatorManager/AllocatorHandle, Unity.Mathematics.float3> (Unity.Collections.AllocatorManager/AllocatorHandle&,Unity.Mathematics.float3*,int) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/AllocatorManager.cs:89)
0x000001c71a90c853 (Mono JIT Code) Unity.Collections.AllocatorManager:Free<Unity.Mathematics.float3> (Unity.Collections.AllocatorManager/AllocatorHandle,Unity.Mathematics.float3*,int) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/AllocatorManager.cs:153)
0x000001c73cd4b1c3 (Mono JIT Code) Pathfinding.Util.NativeCircularBuffer`1<Unity.Mathematics.float3>:Grow () (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Core/Collections/NativeCircularBuffer.cs:270)
0x000001c73cd4af83 (Mono JIT Code) Pathfinding.Util.NativeCircularBuffer`1<Unity.Mathematics.float3>:SpliceUninitializedAbsolute (int,int,int) (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Core/Collections/NativeCircularBuffer.cs:200)
0x000001c73cd4ae13 (Mono JIT Code) Pathfinding.Util.NativeCircularBuffer`1<Unity.Mathematics.float3>:SpliceAbsolute (int,int,System.Collections.Generic.List`1<Unity.Mathematics.float3>) (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Core/Collections/NativeCircularBuffer.cs:185)
0x000001c73cd4ad83 (Mono JIT Code) Pathfinding.Util.NativeCircularBuffer`1<Unity.Mathematics.float3>:Splice (int,int,System.Collections.Generic.List`1<Unity.Mathematics.float3>) (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Core/Collections/NativeCircularBuffer.cs:178)
0x000001c73cd4acb3 (Mono JIT Code) Pathfinding.Funnel/FunnelState:Splice (int,int,System.Collections.Generic.List`1<Unity.Mathematics.float3>,System.Collections.Generic.List`1<Unity.Mathematics.float3>) (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Utilities/Funnel.cs:533)
0x000001c73cd49423 (Mono JIT Code) Pathfinding.PathTracer:SetFunnelState (Pathfinding.Funnel/PathPart) (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Utilities/PathTracer.cs:1546)
0x000001c73cd4870b (Mono JIT Code) Pathfinding.PathTracer:SetPath (System.Collections.Generic.List`1<Pathfinding.Funnel/PathPart>,System.Collections.Generic.List`1<Pathfinding.GraphNode>,UnityEngine.Vector3,UnityEngine.Vector3,Pathfinding.Util.NativeMovementPlane,Pathfinding.ITraversalProvider,Pathfinding.Path) (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Utilities/PathTracer.cs:1820)
0x000001c73cd47173 (Mono JIT Code) AstarAINav:OnPathComplete (Pathfinding.Path) (at D:/Dev/Unity Projects/Delver/Assets/Scripts/_AI/_Nav/AstarAINav.cs:177)
0x000001c73cd33ae0 (Mono JIT Code) Pathfinding.Seeker:OnPathComplete (Pathfinding.Path,bool,bool) (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Core/AI/Seeker.cs:357)
0x000001c73cd338ab (Mono JIT Code) Pathfinding.Seeker:OnPathComplete (Pathfinding.Path) (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Core/AI/Seeker.cs:317)
0x000001c73cd33859 (Mono JIT Code) Pathfinding.Path:ReturnPath () (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Core/Pathfinding/Path.cs:857)
0x000001c73cd33808 (Mono JIT Code) Pathfinding.Path:Pathfinding.IPathInternals.ReturnPath () (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Core/Pathfinding/Path.cs:1068)
0x000001c71dc3c473 (Mono JIT Code) Pathfinding.PathReturnQueue:ReturnPaths (bool) (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Core/Pathfinding/PathReturnQueue.cs:61)
0x000001c71fc7e293 (Mono JIT Code) AstarPath:Update () (at ./Library/PackageCache/com.arongranberg.astar@4.3.95/Core/AstarPath.cs:888)
0x000001c5c0cbea28 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ff8a0a94bfe (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff8a09cd254 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ff8a09cd3cc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ff66102f514 (Unity) scripting_method_invoke
0x00007ff66100d274 (Unity) ScriptingInvocation::Invoke
0x00007ff660ff4a64 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ff660ff4b8a (Unity) MonoBehaviour::CallUpdateMethod
0x00007ff660a8817b (Unity) BaseBehaviourManager::CommonUpdate<BehaviourManager>
0x00007ff660a8f6da (Unity) BehaviourManager::Update
0x00007ff660cc417d (Unity) `InitPlayerLoopCallbacks'::`2'::UpdateScriptRunBehaviourUpdateRegistrator::Forward
0x00007ff660ca32ac (Unity) ExecutePlayerLoop
0x00007ff660ca3420 (Unity) ExecutePlayerLoop
0x00007ff660ca9cb5 (Unity) PlayerLoop
0x00007ff661c73faf (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff661c80ddd (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff661c7f0c1 (Unity) Application::TickTimer
0x00007ff6620f977a (Unity) MainMessageLoop
0x00007ff6620fe650 (Unity) WinMain
0x00007ff6634de0ae (Unity) __scrt_common_main_seh
0x00007ff93b157344 (KERNEL32) BaseThreadInitThunk
0x00007ff93b7626b1 (ntdll) RtlUserThreadStart
I’ve attached the relevant script that makes the pathfinding calls (along with the full editor log) - do you see any issues?
Crash - Editor.log.txt (930.1 KB)
AstarAINav.cs.txt (7.3 KB)