Reproduction steps:
1. Open the attached project "CrashRepro"
2. Add a new Empty Sub Scene (Right-click in the Hierarchy window > New Sub Scene > Empty Scene…)
3. Add an empty GameObject to the subscene
4. Add Mesh filter and Mesh renderer components to the empty GameObject
5. Set the Mesh Filter component Mesh to “Cube“
Expected result: Mesh is rendered
Actual result: Editor crashes
Reproducible with: 1.2.0 (2022.3.31f1), 1.2.1 (2022.3.31f1)
Not reproducible with: 1.1.16 (2023.1.0a11), 1.2.0 (6000.0.4f1), 1.2.1 (6000.0.4f1)
Couldn’t test with: 1.1.16 (2023.1.0a1 - 2023.1.0a10) (Couldn’t add a subscene), 1.2.1 (2023.1.0a11) - Console errors
Reproducible on: Windows 10
Not reproducible on: macOS 14.5 Sonoma (Intel)
Notes:
Does not reproduce on a new project
Steps 4 and 5 are interchangeable, the order does not matter
First few lines of stack trace: