Random error in path tracer - may be causing crash in build

Hi Aron,

On the latest beta currently (4.3.82) and I randomly get the following error.

AssertionException: Assertion failure. Value was True
Expected: False
UnityEngine.Assertions.Assert.Fail (System.String message, System.String userMessage) (at <56073df97ede4f769c2cc45d546d986d>:0)
UnityEngine.Assertions.Assert.IsFalse (System.Boolean condition, System.String message) (at <56073df97ede4f769c2cc45d546d986d>:0)
UnityEngine.Assertions.Assert.IsFalse (System.Boolean condition) (at <56073df97ede4f769c2cc45d546d986d>:0)
Pathfinding.PathTracer.CalculateFunnelPortals (System.Int32 startNodeIndex, System.Int32 endNodeIndex, System.Collections.Generic.List`1[T] outLeftPortals, System.Collections.Generic.List`1[T] outRightPortals) (at ./Library/PackageCache/com.arongranberg.astar@4.3.82/Utilities/PathTracer.cs:1194)
Pathfinding.PathTracer.SetFunnelState (Pathfinding.Funnel+PathPart part) (at ./Library/PackageCache/com.arongranberg.astar@4.3.82/Utilities/PathTracer.cs:1180)
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) (at ./Library/PackageCache/com.arongranberg.astar@4.3.82/Utilities/PathTracer.cs:1256)
Pathfinding.ECS.ManagedState.SetPath (Pathfinding.Path path, Pathfinding.ECS.ManagedState state, Pathfinding.ECS.AgentMovementPlane& movementPlane) (at ./Library/PackageCache/com.arongranberg.astar@4.3.82/Core/ECS/Components/ManagedState.cs:104)
Pathfinding.ECS.FollowerControlSystem.OnUpdate (Unity.Entities.SystemState& systemState) (at ./Library/PackageCache/com.arongranberg.astar@4.3.82/Core/ECS/Systems/FollowerControlSystem.cs:132)
Pathfinding.ECS.FollowerControlSystem.__codegen__OnUpdate (System.IntPtr self, System.IntPtr state) (at <6956c00f024748b49333f1d9a5da3a8e>:0)
Unity.Entities.SystemBaseRegistry+<>c__DisplayClass9_0.<SelectBurstFn>b__0 (System.IntPtr system, System.IntPtr state) (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities/SystemBaseRegistry.cs:256)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities/Stubs/Unity/Debug.cs:19)
Unity.Entities.<>c__DisplayClass9_0:<SelectBurstFn>b__0(IntPtr, IntPtr) (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities/SystemBaseRegistry.cs:260)
Unity.Entities.UnmanagedUpdate_00001591$BurstDirectCall:wrapper_native_indirect_00000223D82B6AC8(IntPtr&, Void*)
Unity.Entities.UnmanagedUpdate_00001591$BurstDirectCall:Invoke(Void*)
Unity.Entities.WorldUnmanagedImpl:UnmanagedUpdate(Void*) (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities/WorldUnmanaged.cs:828)
Unity.Entities.WorldUnmanagedImpl:UpdateSystem(SystemHandle) (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities/WorldUnmanaged.cs:894)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities/ComponentSystemGroup.cs:733)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities/ComponentSystemGroup.cs:703)
Pathfinding.ECS.AIMovementSystemGroup:OnUpdate() (at ./Library/PackageCache/com.arongranberg.astar@4.3.82/Core/ECS/Systems/AIMovementSystemGroup.cs:160)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities/SystemBase.cs:418)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities/ComponentSystemGroup.cs:739)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities/ComponentSystemGroup.cs:697)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities/SystemBase.cs:418)
Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities/ScriptBehaviourUpdateOrder.cs:526)

On editor there’s a tiny hiccup but on build, shortly after this error it results in a crash. Do you have an idea what may be causing this?

Hi

Yes. This is a known issue in the latest beta. I’ll release a fix as soon as possible.

1 Like

Thanks for the quick response!