Error Exception: Axis-aligned connection not found on A*PathFinding version 5.2.4

full stack trace:

Exception: Axis-aligned connection not found
Pathfinding.PathTracer.RemoveGridPathDiagonals (Pathfinding.Funnel+PathPart[] parts, System.Int32 partIndex, Pathfinding.Collections.CircularBuffer`1[Pathfinding.GraphNode]& path, Pathfinding.Collections.CircularBuffer`1[System.Int32]& pathNodeHashes, Pathfinding.NNConstraint nnConstraint, Pathfinding.ITraversalProvider traversalProvider, Pathfinding.Path pathObject) (at ./Packages/com.arongranberg.astar/Utilities/PathTracer.cs:1895)
Pathfinding.PathTracer.LocalSearch (Pathfinding.GraphNode currentNode, UnityEngine.Vector3 point, System.Int32 maxNodesToSearch, Pathfinding.Util.NativeMovementPlane movementPlane, System.Boolean reverse, Pathfinding.ITraversalProvider traversalProvider, Pathfinding.Path path) (at ./Packages/com.arongranberg.astar/Utilities/PathTracer.cs:1114)
Pathfinding.PathTracer.RepairFull (UnityEngine.Vector3 point, System.Boolean isStart, Pathfinding.PathTracer+RepairQuality quality, Pathfinding.Util.NativeMovementPlane movementPlane, Pathfinding.ITraversalProvider traversalProvider, Pathfinding.Path path) (at ./Packages/com.arongranberg.astar/Utilities/PathTracer.cs:852)
Pathfinding.PathTracer.Repair (UnityEngine.Vector3 point, System.Boolean isStart, Pathfinding.PathTracer+RepairQuality quality, Pathfinding.Util.NativeMovementPlane movementPlane, Pathfinding.ITraversalProvider traversalProvider, Pathfinding.Path path, System.Boolean allowCache) (at ./Packages/com.arongranberg.astar/Utilities/PathTracer.cs:659)
Pathfinding.PathTracer.SetPath (System.Collections.Generic.List`1[T] parts, System.Collections.Generic.List`1[T] nodes, UnityEngine.Vector3 unclampedStartPoint, UnityEngine.Vector3 unclampedEndPoint, Pathfinding.Util.NativeMovementPlane movementPlane, Pathfinding.PathRequestSettings pathfindingSettings, Pathfinding.Path path) (at ./Packages/com.arongranberg.astar/Utilities/PathTracer.cs:1975)
Pathfinding.PathTracer.SetPath (Pathfinding.ABPath path, Pathfinding.Util.NativeMovementPlane movementPlane) (at ./Packages/com.arongranberg.astar/Utilities/PathTracer.cs:1934)
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:122)
UnityEngine.Debug:LogException(Exception)
Pathfinding.ECS.ManagedState:SetPath(Path, ManagedState, AgentMovementPlane&, DestinationPoint&) (at ./Packages/com.arongranberg.astar/Core/ECS/Components/ManagedState.cs:132)
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@1.1.0-pre.3/Unity.Entities/IJobChunk.cs:420)
Unity.Entities.JobChunkProducer`1:Execute(JobChunkWrapper`1&, IntPtr, IntPtr, JobRanges&, Int32) (at ./Library/PackageCache/com.unity.entities@1.1.0-pre.3/Unity.Entities/IJobChunk.cs:363)

other similar topic: Exception: Axis-aligned connection not found - #11 by aron_granberg

When are you seeing this error? During runtime? After specific actions? The relevant code would be helpful here as well, if available. What are your versions of the Entities package? Lastly, what Unity version?

I got it during runtime, at start of game when everyone runs. Unity version: 2022.3.53, Entities version: 1.1.0-pre.3.

Your version of Entities seems rather out of date. Can you try backing up or duplicating your project and updating to the newest version?

update Burst to 1.8.19, entities to 1.3.9 now got this:
Processing assembly Library/Bee/artifacts/1900b0aEDbg.dag/AstarPathfindingProject.dll, with 139 defines and 222 references
processors: Unity.Entities.CodeGen.EntitiesILPostProcessors, Unity.Jobs.CodeGen.JobsILPostProcessor, zzzUnity.Burst.CodeGen.BurstILPostProcessor
running Unity.Entities.CodeGen.EntitiesILPostProcessors
Unity.Entities.CodeGen.EntitiesILPostProcessors: ILPostProcessor has thrown an exception: System.InvalidOperationException: Type initialization failure: AIDestinationSetter inherits from more than one of IBufferElementData,
IComponentData, ISharedComponentData, and UnityEngine.Object, which is not allowed.
at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.g__HasAnyOfTheInterfaces|15_0(TypeDefinition def)
at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.g__HasAnyOfTheInterfacesRecursive|15_1(TypeDefinition def)
at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.IsInstantiableComponentType(TypeReference type)
at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.AddTypeToListIfSupported(HashSet1 typeSet, TypeReference type) at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.GatherTypeInformation() at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.PostProcessImpl(TypeDefinition[] componentSystemTypes) at Unity.Entities.CodeGen.EntitiesILPostProcessor.PostProcess(AssemblyDefinition assemblyDefinition, TypeDefinition[] componentSystemTypes, Boolean& madeAChange) at Unity.Entities.CodeGen.EntitiesILPostProcessors.Process(ICompiledAssembly compiledAssembly) at Unity.ILPP.Runner.PostProcessingPipeline.PostProcessAssemblyAsync(PostProcessAssemblyRequest request, Action2 progressSink)
PostProcessing failed: System.InvalidOperationException: Type initialization failure: AIDestinationSetter inherits from more than one of IBufferElementData,
IComponentData, ISharedComponentData, and UnityEngine.Object, which is not allowed.
at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.g__HasAnyOfTheInterfaces|15_0(TypeDefinition def)
at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.g__HasAnyOfTheInterfacesRecursive|15_1(TypeDefinition def)
at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.IsInstantiableComponentType(TypeReference type)
at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.AddTypeToListIfSupported(HashSet1 typeSet, TypeReference type) at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.GatherTypeInformation() at Unity.Entities.CodeGen.StaticTypeRegistryPostProcessor.PostProcessImpl(TypeDefinition[] componentSystemTypes) at Unity.Entities.CodeGen.EntitiesILPostProcessor.PostProcess(AssemblyDefinition assemblyDefinition, TypeDefinition[] componentSystemTypes, Boolean& madeAChange) at Unity.Entities.CodeGen.EntitiesILPostProcessors.Process(ICompiledAssembly compiledAssembly) at Unity.ILPP.Runner.PostProcessingPipeline.PostProcessAssemblyAsync(PostProcessAssemblyRequest request, Action2 progressSink)
at Unity.ILPP.Runner.PostProcessingService.PostProcessAssembly(PostProcessAssemblyRequest request, IServerStreamWriter`1 responseStream, ServerCallContext context)
Unhandled Exception: System.InvalidOperationException: Post processing failed
at Unity.ILPP.Trigger.TriggerApp.d__1.MoveNext() + 0xf74
— End of stack trace from previous location —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
at Unity.ILPP.Trigger.TriggerApp.d__1.MoveNext() + 0x1149
— End of stack trace from previous location —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb6
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x42
at Unity.ILPP.Trigger.TriggerApp.d__0.MoveNext() + 0xc7
— End of stack trace from previous location —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb6
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x42
at Program.<$>d__0.MoveNext() + 0x1a3
— End of stack trace from previous location —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb6
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x42
at Program.(String) + 0x20
at Unity.ILPP.Trigger!+0x47849b

Also I’d update Astar to 5.3.3 since you’re on 5.2.4. Let me know if you still have this issue when fully updated.