Search Issue Tracker
Fixed
Fixed in 2022.3.14f1, 2023.2.0b16, 2024.1.0a1
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 ScheduleGenerateTilingShape when modifying PolygonCollider2D path count and setting path vertices
- Crash when a scene is created with LocalPhysicsMode::Physics3D
- [HDRP] Light doesn't bounce off terrains
- Unity Hub opens instead of the Unity Editor when launching a project from a Windows command line if a backslash is added to the end of the project path
- "ParseErrorException" is thrown when parsing a float with a very small value from JSON
Add comment