- A* version: 5.4.6
- Unity version: 6000.3.11f1
We are using the FollowerEntity, along with the RandomPath, ConstantPath, ABPath, and FleePath (along with directly setting the destination).
It does not happen often but occasionally we get an Assert exception from the last assert in Funnel.SplitIntoParts. But I am struggling to figure out how to debug what exactly is the source of it, especially since it happens so inconsistantly and infrequently.
Any adivce for what might be the cause or how one might go about tracking it down? Thanks!
AssertionException: Assertion failure. Values are not equal.
Expected: 7 == 5
UnityEngine.Assertions.Assert.Fail (System.String message, System.String userMessage) (at <1b6535aa091d41cf8b3ca222ed9ceef0>:0)
UnityEngine.Assertions.Assert.AreEqual[T] (T expected, T actual, System.String message, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <1b6535aa091d41cf8b3ca222ed9ceef0>:0)
UnityEngine.Assertions.Assert.AreEqual[T] (T expected, T actual, System.String message) (at <1b6535aa091d41cf8b3ca222ed9ceef0>:0)
UnityEngine.Assertions.Assert.AreEqual (System.Int32 expected, System.Int32 actual) (at <1b6535aa091d41cf8b3ca222ed9ceef0>:0)
Pathfinding.Funnel.SplitIntoParts (Pathfinding.Path path) (at ./Packages/com.arongranberg.astar/Utilities/Funnel.cs:195)
Pathfinding.PathTracer.SetPath (Pathfinding.ABPath path, Pathfinding.Util.NativeMovementPlane movementPlane) (at ./Packages/com.arongranberg.astar/Utilities/PathTracer.cs:2058)
Pathfinding.ECS.ManagedState.SetPath (Pathfinding.Path path, Pathfinding.ECS.ManagedState state, Pathfinding.ECS.AgentMovementPlane& movementPlane, Pathfinding.ECS.DestinationPoint& destination) (at ./Packages/com.arongranberg.astar/Core/ECS/Components/ManagedState.cs:144)
UnityEngine.Debug:LogException(Exception)
Pathfinding.ECS.ManagedState:SetPath(Path, ManagedState, AgentMovementPlane&, DestinationPoint&) (at ./Packages/com.arongranberg.astar/Core/ECS/Components/ManagedState.cs:154)
Pathfinding.ECS.JobRepairPath:Execute(LocalTransform&, MovementState&, AgentCylinderShape&, AgentMovementPlane&, AutoRepathPolicy&, DestinationPoint&, EnabledRefRW`1, ManagedState, MovementSettings&, NativeList`1, NativeArray`1&, Allocator, Boolean) (at ./Packages/com.arongranberg.astar/Core/ECS/Jobs/JobRepairPath.cs:158)
Pathfinding.ECS.JobRepairPath:Execute(ArchetypeChunk&, Int32, Boolean, v128&) (at ./Packages/com.arongranberg.astar/Core/ECS/Jobs/JobRepairPath.cs:127)
Pathfinding.ECS.JobRepairPath:Unity.Entities.IJobChunk.Execute(ArchetypeChunk&, Int32, Boolean, v128&)
Unity.Entities.JobChunkProducer`1:ExecuteInternal(JobChunkWrapper`1&, IntPtr, JobRanges&, Int32) (at ./Library/PackageCache/com.unity.entities@f6e02210e263/Unity.Entities/IJobChunk.cs:421)
Unity.Entities.JobChunkProducer`1:Execute(JobChunkWrapper`1&, IntPtr, IntPtr, JobRanges&, Int32) (at ./Library/PackageCache/com.unity.entities@f6e02210e263/Unity.Entities/IJobChunk.cs:364)