How to reproduce:
- Open the “IN-19623” project
- Open the “Main Scene” scene
- Enter Play Mode
- In the Hierarchy select the “Main Mesh(Clone)” GameObject
- Add the “Mesh Editor” Component script
- Click the “Recalculate Tangents” button in the “Mesh Editor”
- Observe the crash
Reproducible with: 2021.3.13f1
Could not test with: 2020.3.41f1, 2022.1.23f1, 2022.2.0b15, 2023.1.0a19 (compiler errors I couldn’t fix)
Reproduced on: Windows 10 (Intel)
First lines of stack trace:
0x00007ff6bf1aa1d9 (Unity) Mesh::RecalculateTangents
0x00007ff6bcd1b23f (Unity) Mesh_CUSTOM_RecalculateTangentsImpl
0x00000216581aeedc (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Mesh:RecalculateTangentsImpl (UnityEngine.Mesh,UnityEngine.Rendering.MeshUpdateFlags)
0x00000216581aeda3 (Mono JIT Code) UnityEngine.Mesh:RecalculateTangents (UnityEngine.Rendering.MeshUpdateFlags)
0x00000216581aed1b (Mono JIT Code) UnityEngine.Mesh:RecalculateTangents ()