Errors in v4.3.64

Upgraded to v4.3.64, and started seeing these errors.

InvalidOperationException: The previously scheduled job JobRVOCalculateNeighbours`1 reads from the Unity.Collections.NativeArray`1[Unity.Mathematics.float3] JobRVOCalculateNeighbours`1.agentData.targetPoint. You must call JobHandle.Complete() on the job JobRVOCalculateNeighbours`1, before you can write to the Unity.Collections.NativeArray`1[Unity.Mathematics.float3] safely.
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckWriteAndThrowNoEarlyOut (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle) (at <61c05f8d81804e929ff4198c5bcc7a62>:0)
Unity.Collections.NativeArray`1[T].CheckElementWriteAccess (System.Int32 index) (at <61c05f8d81804e929ff4198c5bcc7a62>:0)
Unity.Collections.NativeArray`1[T].set_Item (System.Int32 index, T value) (at <61c05f8d81804e929ff4198c5bcc7a62>:0)
Pathfinding.RVO.SimulatorBurst+AgentData.SetTarget (System.Int32 agentIndex, Unity.Mathematics.float3 targetPoint, System.Single desiredSpeed, System.Single maxSpeed, Unity.Mathematics.float3 endOfPath) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/RVO/RVOCoreSimulatorBurst.cs:637)
Pathfinding.RVO.SimulatorBurst+Agent.SetTarget (UnityEngine.Vector3 targetPoint, System.Single desiredSpeed, System.Single maxSpeed, UnityEngine.Vector3 endOfPath) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/RVO/RVOCoreSimulatorBurst.cs:533)
Pathfinding.RVO.RVOController.Move (UnityEngine.Vector3 velocity) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/RVO/RVOController.cs:514)
Pathfinding.AIBase.Teleport (UnityEngine.Vector3 newPosition, System.Boolean clearPath) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:535)
Pathfinding.AIPath.Teleport (UnityEngine.Vector3 newPosition, System.Boolean clearPath) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIPath.cs:168)
Pathfinding.AIBase.Init () (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:524)
Pathfinding.AIBase.Start () (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:517)
InvalidOperationException: The previously scheduled job JobHardCollisions`1 reads from the Unity.Collections.NativeArray`1[Unity.Mathematics.float3] JobHardCollisions`1.agentData.targetPoint. You must call JobHandle.Complete() on the job JobHardCollisions`1, before you can write to the Unity.Collections.NativeArray`1[Unity.Mathematics.float3] safely.
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckWriteAndThrowNoEarlyOut (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle) (at <61c05f8d81804e929ff4198c5bcc7a62>:0)
Unity.Collections.NativeArray`1[T].CheckElementWriteAccess (System.Int32 index) (at <61c05f8d81804e929ff4198c5bcc7a62>:0)
Unity.Collections.NativeArray`1[T].set_Item (System.Int32 index, T value) (at <61c05f8d81804e929ff4198c5bcc7a62>:0)
Pathfinding.RVO.SimulatorBurst+AgentData.SetTarget (System.Int32 agentIndex, Unity.Mathematics.float3 targetPoint, System.Single desiredSpeed, System.Single maxSpeed, Unity.Mathematics.float3 endOfPath) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/RVO/RVOCoreSimulatorBurst.cs:637)
Pathfinding.RVO.SimulatorBurst+Agent.SetTarget (UnityEngine.Vector3 targetPoint, System.Single desiredSpeed, System.Single maxSpeed, UnityEngine.Vector3 endOfPath) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/RVO/RVOCoreSimulatorBurst.cs:533)
Pathfinding.RVO.RVOController.Move (UnityEngine.Vector3 velocity) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/RVO/RVOController.cs:514)
Pathfinding.AIBase.Teleport (UnityEngine.Vector3 newPosition, System.Boolean clearPath) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:535)
Pathfinding.AIPath.Teleport (UnityEngine.Vector3 newPosition, System.Boolean clearPath) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIPath.cs:168)
Pathfinding.AIBase.Init () (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:524)
Pathfinding.AIBase.Start () (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:517)

Look rotation viewing vector is zero
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.Quaternion:LookRotation (UnityEngine.Vector3,UnityEngine.Vector3)
Pathfinding.AIBase:SimulateRotationTowards (UnityEngine.Vector2,single,single) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:713)
Pathfinding.AIPath:CalculateNextRotation (single,UnityEngine.Quaternion&) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIPath.cs:459)
Pathfinding.AIPath:MovementUpdateInternal (single,UnityEngine.Vector3&,UnityEngine.Quaternion&) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIPath.cs:447)
Pathfinding.AIBase:MovementUpdate (single,UnityEngine.Vector3&,UnityEngine.Quaternion&) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:561)
Pathfinding.AIBase:OnUpdate (single) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:503)
Pathfinding.AIBase:OnUpdate (Pathfinding.AIBase[],int,UnityEngine.Jobs.TransformAccessArray,Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:479)
Pathfinding.Util.BatchedEvents/<>c__DisplayClass15_0`1<Pathfinding.AIBase>:<Add>b__0 (object[],int,UnityEngine.Jobs.TransformAccessArray,Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Utilities/BatchedEvents.cs:176)
Pathfinding.Util.BatchedEvents:DoEvent (Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Utilities/BatchedEvents.cs:199)
Pathfinding.Util.BatchedEvents:Update () (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Utilities/BatchedEvents.cs:211)

[./Library/PackageCache/com.arongranberg.astar@4.3.64/Utilities/BatchedEvents.cs line 199]

transform.position assign attempt for 'Imp(Clone) [id:109, player:Jubilant Healer Cpu, team:0]' is not valid. Input position is { NaN, NaN, NaN }.
0x00007ff6b165330d (Unity) StackWalker::GetCurrentCallstack
0x00007ff6b16582b9 (Unity) StackWalker::ShowCallstack
0x00007ff6b26221d1 (Unity) GetStacktrace
0x00007ff6b2ce2042 (Unity) DebugStringToFile
0x00007ff6b1372d1c (Unity) Transform::SetPosition
0x00007ff6b059dd26 (Unity) Transform_CUSTOM_set_position_Injected
0x000001e6ea4413e4 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Transform:set_position_Injected (UnityEngine.Transform,UnityEngine.Vector3&)
0x000001e6ea44122b (Mono JIT Code) UnityEngine.Transform:set_position (UnityEngine.Vector3)
0x000001e6ea6d2c8b (Mono JIT Code) Pathfinding.AIBase:FinalizePosition (UnityEngine.Vector3) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:808)
0x000001e6ea6d1933 (Mono JIT Code) Pathfinding.AIBase:FinalizeMovement (UnityEngine.Vector3,UnityEngine.Quaternion) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:761)
0x000001e6ea6c4faf (Mono JIT Code) Pathfinding.AIBase:OnUpdate (single) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:505)
0x000001e6ea6bf4d8 (Mono JIT Code) Pathfinding.AIBase:OnUpdate (Pathfinding.AIBase[],int,UnityEngine.Jobs.TransformAccessArray,Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Core/AI/AIBase.cs:479)
0x000001e6ea6bfc60 (Mono JIT Code) (wrapper delegate-invoke) System.Action`4<Pathfinding.AIBase[], int, UnityEngine.Jobs.TransformAccessArray, Pathfinding.Util.BatchedEvents/Event>:invoke_void_T1_T2_T3_T4 (Pathfinding.AIBase[],int,UnityEngine.Jobs.TransformAccessArray,Pathfinding.Util.BatchedEvents/Event)
0x000001e6ea6bdfdc (Mono JIT Code) Pathfinding.Util.BatchedEvents/<>c__DisplayClass15_0`1<T_REF>:<Add>b__0 (object[],int,UnityEngine.Jobs.TransformAccessArray,Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Utilities/BatchedEvents.cs:176)
0x000001e6dd4eee6c (Mono JIT Code) Pathfinding.Util.BatchedEvents:DoEvent (Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Utilities/BatchedEvents.cs:199)
0x000001e6e45aa39b (Mono JIT Code) Pathfinding.Util.BatchedEvents:Update () (at ./Library/PackageCache/com.arongranberg.astar@4.3.64/Utilities/BatchedEvents.cs:211)
0x000001e6dc3ba1b8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffff7dc0394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffff7cfeb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffff7cfecdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff6b157b984 (Unity) scripting_method_invoke
0x00007ff6b155c2f4 (Unity) ScriptingInvocation::Invoke
0x00007ff6b1543c64 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ff6b1543d8a (Unity) MonoBehaviour::CallUpdateMethod
0x00007ff6b0fe524b (Unity) BaseBehaviourManager::CommonUpdate<BehaviourManager>
0x00007ff6b0feca5a (Unity) BehaviourManager::Update
0x00007ff6b1212f9d (Unity) `InitPlayerLoopCallbacks'::`2'::UpdateScriptRunBehaviourUpdateRegistrator::Forward
0x00007ff6b11f9a9a (Unity) ExecutePlayerLoop
0x00007ff6b11f9c23 (Unity) ExecutePlayerLoop
0x00007ff6b11fff85 (Unity) PlayerLoop
0x00007ff6b219245f (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff6b219f0fd (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff6b219d491 (Unity) Application::TickTimer
0x00007ff6b2628aaa (Unity) MainMessageLoop
0x00007ff6b262d850 (Unity) WinMain
0x00007ff6b3a0ec8e (Unity) __scrt_common_main_seh
0x00007ff83ac47034 (KERNEL32) BaseThreadInitThunk
0x00007ff83c7e2651 (ntdll) RtlUserThreadStart

Thanks! I’ve fixed this and I’ll release a patch soon.

1 Like

I upgraded to v 3.4.66, when I try to make a Build I get the following shader error.
If I just run the project in the editor it works fine, I only get this when making a build.

Shader error in 'Hidden/ALINE/Surface': syntax error: unexpected token 'v2f' at line 42 (on d3d11)

Compiling Subshader: 0, Pass: <Unnamed Pass 0>, Fragment program with <no keywords>
Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
Disabled keywords: SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING

Also I’m still seeing this error, after i get this a bunch of times, unity crashes.

transform.position assign attempt for 'Imp(Clone) [id:179, player:Excited Warden Cpu, team:0]' is not valid. Input position is { NaN, NaN, NaN }.
0x00007ff611643e7d (Unity) StackWalker::GetCurrentCallstack
0x00007ff611648e29 (Unity) StackWalker::ShowCallstack
0x00007ff612612ac1 (Unity) GetStacktrace
0x00007ff612cd3742 (Unity) DebugStringToFile
0x00007ff61136352c (Unity) Transform::SetPosition
0x00007ff6105905c6 (Unity) Transform_CUSTOM_set_position_Injected
0x00000130df8722a4 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Transform:set_position_Injected (UnityEngine.Transform,UnityEngine.Vector3&)
0x00000130df8720eb (Mono JIT Code) UnityEngine.Transform:set_position (UnityEngine.Vector3)
0x00000130f52b8e1b (Mono JIT Code) Pathfinding.AIBase:FinalizePosition (UnityEngine.Vector3) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Core/AI/AIBase.cs:808)
0x00000130f52b7ac3 (Mono JIT Code) Pathfinding.AIBase:FinalizeMovement (UnityEngine.Vector3,UnityEngine.Quaternion) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Core/AI/AIBase.cs:761)
0x00000130f52a9fff (Mono JIT Code) Pathfinding.AIBase:OnUpdate (single) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Core/AI/AIBase.cs:505)
0x00000130f52a46d8 (Mono JIT Code) Pathfinding.AIBase:OnUpdate (Pathfinding.AIBase[],int,UnityEngine.Jobs.TransformAccessArray,Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Core/AI/AIBase.cs:479)
0x00000130f52a4e60 (Mono JIT Code) (wrapper delegate-invoke) System.Action`4<Pathfinding.AIBase[], int, UnityEngine.Jobs.TransformAccessArray, Pathfinding.Util.BatchedEvents/Event>:invoke_void_T1_T2_T3_T4 (Pathfinding.AIBase[],int,UnityEngine.Jobs.TransformAccessArray,Pathfinding.Util.BatchedEvents/Event)
0x00000130f52a31dc (Mono JIT Code) Pathfinding.Util.BatchedEvents/<>c__DisplayClass15_0`1<T_REF>:<Add>b__0 (object[],int,UnityEngine.Jobs.TransformAccessArray,Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Utilities/BatchedEvents.cs:176)
0x00000130deeb268c (Mono JIT Code) Pathfinding.Util.BatchedEvents:DoEvent (Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Utilities/BatchedEvents.cs:199)
0x00000130dfbb73bb (Mono JIT Code) Pathfinding.Util.BatchedEvents:Update () (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Utilities/BatchedEvents.cs:211)
0x00000130b1ade8d8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffff7550394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffff748eb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffff748ecdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff61156c4f4 (Unity) scripting_method_invoke
0x00007ff61154ce34 (Unity) ScriptingInvocation::Invoke
0x00007ff6115347a4 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ff6115348ca (Unity) MonoBehaviour::CallUpdateMethod
0x00007ff610fd577b (Unity) BaseBehaviourManager::CommonUpdate<BehaviourManager>
0x00007ff610fdcf8a (Unity) BehaviourManager::Update
0x00007ff61120397d (Unity) `InitPlayerLoopCallbacks'::`2'::UpdateScriptRunBehaviourUpdateRegistrator::Forward
0x00007ff6111ea47a (Unity) ExecutePlayerLoop
0x00007ff6111ea603 (Unity) ExecutePlayerLoop
0x00007ff6111f0965 (Unity) PlayerLoop
0x00007ff61218285f (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff61218f59d (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff61218d8a1 (Unity) Application::TickTimer
0x00007ff61261939a (Unity) MainMessageLoop
0x00007ff61261e140 (Unity) WinMain
0x00007ff613a00ffe (Unity) __scrt_common_main_seh
0x00007ff83ac47034 (KERNEL32) BaseThreadInitThunk
0x00007ff83c7e2651 (ntdll) RtlUserThreadStart

Look rotation viewing vector is zero, after getting this a bunch of times Unity crashes.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.Quaternion:LookRotation (UnityEngine.Vector3,UnityEngine.Vector3)
Pathfinding.AIBase:SimulateRotationTowards (UnityEngine.Vector2,single,single) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Core/AI/AIBase.cs:713)
Pathfinding.AIPath:CalculateNextRotation (single,UnityEngine.Quaternion&) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Core/AI/AIPath.cs:459)
Pathfinding.AIPath:MovementUpdateInternal (single,UnityEngine.Vector3&,UnityEngine.Quaternion&) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Core/AI/AIPath.cs:447)
Pathfinding.AIBase:MovementUpdate (single,UnityEngine.Vector3&,UnityEngine.Quaternion&) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Core/AI/AIBase.cs:561)
Pathfinding.AIBase:OnUpdate (single) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Core/AI/AIBase.cs:503)
Pathfinding.AIBase:OnUpdate (Pathfinding.AIBase[],int,UnityEngine.Jobs.TransformAccessArray,Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Core/AI/AIBase.cs:479)
Pathfinding.Util.BatchedEvents/<>c__DisplayClass15_0`1<Pathfinding.AIBase>:<Add>b__0 (object[],int,UnityEngine.Jobs.TransformAccessArray,Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Utilities/BatchedEvents.cs:176)
Pathfinding.Util.BatchedEvents:DoEvent (Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Utilities/BatchedEvents.cs:199)
Pathfinding.Util.BatchedEvents:Update () (at ./Library/PackageCache/com.arongranberg.astar@4.3.66/Utilities/BatchedEvents.cs:211)

[./Library/PackageCache/com.arongranberg.astar@4.3.66/Utilities/BatchedEvents.cs line 199]
1 Like

@aron_granberg just a follow-up, for the shader, I’m on HDRP and since the shader doesn’t compile, it appears pink in editor play mode (not a big deal), but it will prevent a build (that’s kinda of a show stopper), and since it’s part of the package, we can’t really edit it to attempt a fix.

For this type of error

transform.position assign attempt for ‘Imp(Clone) [id:179, player:Excited Warden Cpu, team:0]’ is not valid. Input position is { NaN, NaN, NaN }.

One way I was able to persistently repro this, is if the seeker component has no associated graph. Albeit in my project all agents do have a graph associated with their seeker, perhaps there are other scenarios where this error would show up.

I am also getting this error. Not sure what can be the issue here.

Hi

Beta 4.3.67 has just been released, and I think I’ve fixed this issue. Let me know if it works or not.

I no longer see these errors :+1: