How to reproduce:
1. Open the attached “IN-114190“ project
2. Navigate to “File > Build Profiles“
3. Select the Windows or the macOS Platform
4. Make sure that the Scene List contains “Scenes/Main“
5. Click on the “Build“ button
6. Wait for the build to complete with a result of “Failed”
7. Close the project and open it again
8. Observe the crash
Reproducible with: 2022.2.0a3, 2022.3.66f1, 6000.0.57f1, 6000.2.0b2, 6000.2.4f1
Not reproducible with: 2022.2.0a2, 6000.3.0b1
Fixed in: 6000.3.0a1
Reproducible on: MacOS 15.6.1 (M4), Windows 11 (by user)
Not reproducible on: No other environments tested
Notes:
- The “Main“ scene has no GameObjects in the Hierarchy window
- After the crash, reopening the project will result in crashing at launch. It will stop crashing when switching to a different Unity version
First few lines of the stack trace: