Windows Il2cpp app crushed if scene contains subscene

Windows Il2cpp app crushed if scene contains subscene in 2022.2.0b9
“il2cpp code generation option” has no effect

To reproduce please build any sample with subscene GitHub - Unity-Technologies/EntityComponentSystemSamples or empty scene with subscene in 2022.2.0b9 use Windows platform and Il2cpp backend.

“com.unity.entities”: “1.0.0-exp.8”

crash log with stack trace attached.

8482226–1127873–Crash_2022-10-01_153741664.zip (35.8 KB)

3 Likes

Hey, I just checked your Player.log and I was getting the exact same error (DotsSerialization_CreateReader) in the last couple of versions 2020.3 with DOTS 0.51.1. It runs fine in the player, but immediately crashes when running a built Windows executable. You can read about my troubleshooting at the bottom of this thread: How to include subscene in build? .

Unfortunately, I have not found an answer. My only recourse was to downgrade from editor 2021.3.11 to 2021.3.8. If you discover anything new, please let me know.

3 Likes

Same problem with Android build. Also 2022.2.0b9. Entities 1.0.0-exp.8.

Same problem with IOS build. Also 2022.2.0b9. Entities 1.0.0-exp.8.

1 Like

The bad news is that there is no fix that I know of. The good news is that one of the devs in the Turbo Makes Games discord said that they are working hard on trying to fix that bug because it was and has been a major show-stopper since 0.51 with 2021.3.9.

2 Likes

Same problem with Windows build 2021.3.11 Entities 0.51.1

1 Like

Unity 2022.2.0b11 has fixed the player crashing when containing a subscene in the scene. When having set the compiler to IL2CPP.

2 Likes

Is it fixed in 2021.3.12?

Maybe. You should backup your project, upgrade and test it yourself.

This are the patch notes:

Crash triggered by subscene and no mention about subscenes in changelog, so probably bug isn’t fixed.

UPD: fixed in entities 1.0.0-pre.15 / unity 2020.2.0f1

2 Likes