Search Unity

Question Crash occurred on IL2CPP release build

Discussion in 'Entity Component System' started by sang_unity, Nov 1, 2021.

  1. sang_unity

    sang_unity

    Joined:
    Oct 13, 2021
    Posts:
    2
    While I was developing a prototype using ECS,
    I found that the project that used to working with the mono build,
    but not working with IL2CPP, Release settings.
    Actually, it succeeded to build, but it crashes as soon as start the application.
    Attached is the logcat of the situation.This problem also occurs when using URP with DOTS package.Experienced with android, iOS(didn't tried with x86 or x64 since I'm targeting to mobile devices).Did I missed something with the setting?
    Appreciate it if you could help me.

    === Package Information ===

    Burst 1.5.6
    Collections 0.15.0-preview.21
    DOTS Editor 0.12.0-preview.6
    Entities 0.17.0-preview.42
    Hybrid Renderer 0.11.0-preview.44
    Jobs 0.8.0-preview.23
    Mathematics 1.21.1
    Platforms 0.10.0-preview.10
    Unity Physics 0.6.0-preview.3

    AndIL2CPP_Release.PNG
     

    Attached Files:

  2. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Burst already compiles to native code.
    You don't really need IL2CPP for DOTS/ECS imho.
    All the bugs aren't worth it, might as well just burst compile everything in hot path where possible.
     
  3. sang_unity

    sang_unity

    Joined:
    Oct 13, 2021
    Posts:
    2
    Thanks to you, I learned something new about Burst.
    The reason why I tried to build IL2CPP was because iOS needed it. It would be difficult not to use IL2CPP.
     
    mischa2k likes this.