Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Windows Il2cpp app crushed if scene contains subscene

Discussion in 'Entity Component System' started by EugenyN1, Oct 1, 2022.

  1. EugenyN1

    EugenyN1

    Joined:
    Jun 21, 2019
    Posts:
    17
    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 https://github.com/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.
     

    Attached Files:

    aducceschi, Tony_Max and psuong like this.
  2. lclemens

    lclemens

    Joined:
    Feb 15, 2020
    Posts:
    714
    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: https://forum.unity.com/threads/how-to-include-subscene-in-build.1114528/ .

    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.
     
    Last edited: Oct 7, 2022
    aducceschi, Tony_Max and EugenyN1 like this.
  3. aducceschi

    aducceschi

    Joined:
    Feb 9, 2022
    Posts:
    39
    Same problem with Android build. Also 2022.2.0b9. Entities 1.0.0-exp.8.
     
  4. yokobe0012

    yokobe0012

    Joined:
    Nov 2, 2021
    Posts:
    9
    Same problem with IOS build. Also 2022.2.0b9. Entities 1.0.0-exp.8.
     
    aducceschi likes this.
  5. lclemens

    lclemens

    Joined:
    Feb 15, 2020
    Posts:
    714
    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.
     
    aducceschi and Tony_Max like this.
  6. Tony_Max

    Tony_Max

    Joined:
    Feb 7, 2017
    Posts:
    334
    Same problem with Windows build 2021.3.11 Entities 0.51.1
     
    aducceschi likes this.
  7. aducceschi

    aducceschi

    Joined:
    Feb 9, 2022
    Posts:
    39
    Unity 2022.2.0b11 has fixed the player crashing when containing a subscene in the scene. When having set the compiler to IL2CPP.
     
    lclemens and Tony_Max like this.
  8. Deleted User

    Deleted User

    Guest

    Is it fixed in 2021.3.12?
     
  9. aducceschi

    aducceschi

    Joined:
    Feb 9, 2022
    Posts:
    39
    Maybe. You should backup your project, upgrade and test it yourself.

    This are the patch notes:
    2.PNG
     
  10. Tony_Max

    Tony_Max

    Joined:
    Feb 7, 2017
    Posts:
    334
    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
     
    Last edited: Dec 17, 2022
    lclemens and RafalBlahut like this.