Reproduction steps:
1. Open user attached project.
2. Open “Assets/Scripts/PlayerControler.cs”
3. Add a comment line anywhere
4. Save script file and return to Unity Editor
Expected result: Unity Editor does not crash
Actual result: Unity Editor crashes
Reproducible with: 2021.2.0f1, 2021.2.19f1, 2021.3.6f1
Not reproducible with: 2020.3.37f1, 2021.2.0b16, 2022.1.10f1, 2022.2.0b2, 2023.1.0a4
Reproducible on: Windows 10 Pro 21H2
Notes:
- If it does not crash, it can crash when exiting Unity Editor
- It can also crash when starting the project
- Crash does not reproduce every time
Workaround: Right-click Assets > Reimport All
First lines of stack trace: