Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene.unity“ scene
3. Click File > Build
4. Set Development Build checkmark
5. Build and Run
Expected result: The Player does not crash right after loading
Actual result: The Player crashes
Reproducible with: 1.0.0-pre-15 (2022.2.0a19, 2022.2.8f1, 2023.1.0b6, 2023.2.0a4)
Couldn’t test with: 2020.3.46f1, 2021.3.20f1, 2022.2.0a1 - 2022.2.0a17(couldn’t downgrade packages), 2022.2.0a18 (Error building Player: InvalidOperationException: Failed to build EntityScene for 'Assets/Scenes/SampleScene/EntitiesSubscene.unity')
Reproducible on: Ubuntu 22.04, Windows 10 Pro 22H2
Note: Couldn’t downgrade or upgrade Entities package: project takes too long to load