Search Issue Tracker
In Progress
Fixed in 2022.3.14f1, 2023.2.0b16, 2024.1.0a1
Fix In Review for 2023.3.X
Votes
0
Found in
2022.3.3f1
2023.1.1f1
2023.2.0a20
2023.3.0a3
Issue ID
UUM-40408
Regression
No
Crash on System.Array:ClearInternal when AI GameObjects perform pathfinding coroutine
Reproduction steps:
1. Open the attached “repro-project“
2. Have the “Tutorial_01 Test“, “Core“, “Battlefield“, and “InGame UI“ scenes open in the Hierarchy
3. Enter Play Mode
4. In the Game View select the ”PlayerKrieger” GameObject (the red knight near the trees)
5. Right-click on the ”Enemy” GameObject (the red capsule GameObject under the building in the middle of the map)
6. After the fight scene starts wait for the enemy AI GameObjects to finish their actions
7. Observe the crash
Reproducible with: 2022.3.3f1, 2023.1.1f1, 2023.2.0a20
Could not test with: 2021.3.27f1 (could not downgrade the project)
Reproduced on: Windows 10 Pro
Note: If the issue does not reproduce the first time repeat steps 3-6 until it does
First few lines of the stack trace:
{{0x000001ea45cb6ebc (Mono JIT Code) (wrapper managed-to-native) System.Array:ClearInternal (System.Array,int,int) }}
{{0x000001ea45cb6ce3 (Mono JIT Code) System.Array:Clear (System.Array,int,int) }}
{{0x000001ea45c3927b (Mono JIT Code) Pathfinder:ResetPathfinding () (at C:/Users/agnietemargeviciute/Documents/Unity Projects/IN-43564_HRE-Strategy/Assets/_Scripts/Pathfinding/Pathfinder.cs:78) }}
{{0x000001ea45c38d23 (Mono JIT Code) Battle_AI_Controller/<MoveUnit>d__34:MoveNext () (at C:/Users/agnietemargeviciute/Documents/Unity Projects/IN-43564_HRE-Strategy/Assets/_Scripts/AI/AI Enemy/Battle/Battle_AI_Controller.cs:252) }}
{{0x000001e9e85ef7f0 (Mono JIT Code) UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr) }}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on AudioUtil_CUSTOM_HasAudioCallback when entering PlayMode while the GameObject's Properties Inspector window is in Debug mode
- Tilemap Collider 2D is not updating the Collider shapes when removing Tiles on the Tilemap component
- Inspector with the scrollbar is unusable when Material properties are edited and the scene is saved
- The Rendering Profiler module statistics are zero when Application.targetFrameRate is set
- The Editor becomes unresponsive and memory allocation errors are spammed in the Console when Generating Lightning
Add comment