Reproduction steps:
1. Open the attached “repro-project“
2. Open the Assets/Samples/Agents Navigation/3.1.6/Zerg/Zerg.unity scene
3. Enter Play Mode
4. Exit Play Mode
5. Observe the crash
Reproducible with: 2022.3.4f1, 2023.1.3f1. 2023.2.0a22
Could not test with: 2021.3.28f1 (could not downgrade the project)
Reproduced on: Windows 10 Pro
Note: If the Editor does not crash after performing the steps repeat steps 3 and 4 until it does.
First few lines of the stack trace:
{{0x00007ff705567b72 (Unity) NavMeshWorld_CUSTOM_AddDependencyInternal_Injected }}
{{0x0000021564323f65 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Experimental.AI.NavMeshWorld:AddDependencyInternal_Injected (intptr,Unity.Jobs.JobHandle&) }}
{{0x0000021564323e83 (Mono JIT Code) UnityEngine.Experimental.AI.NavMeshWorld:AddDependencyInternal (intptr,Unity.Jobs.JobHandle) }}
{{0x0000021564323dd3 (Mono JIT Code) UnityEngine.Experimental.AI.NavMeshWorld:AddDependency (Unity.Jobs.JobHandle) }}
{{0x0000021564322c3b (Mono JIT Code) ProjectDawn.Navigation.NavMeshQuerySystem:OnUpdate (Unity.Entities.SystemState&) (at ./Packages/com.projectdawn.navigation/ProjectDawn.Navigation/NavMeshQuery/NavMeshQuerySystem.cs:157) }}