Search Unity

Bug (Case 1315723) [IL2CPP][Physics][Netcode][Entities] Android build crash

Discussion in 'DOTS Physics' started by optimise, Feb 18, 2021.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,000
    Android with IL2CPP build will crash but working properly with Mono build. I believe other platforms like IOS, Windows, Linux with IL2CPP will also crash. I'm not really sure but seems like there are 2 crash bugs. For Develop build has DOTS Physics package bug meanwhile for release build has Subscene bug in Entities package.
     

    Attached Files:

    Last edited: Feb 19, 2021
  2. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,000
    Hi @steveeHavok. Can you take a look at Android Logcat (Develop) for dots physics crash bug and also if possible forward Android Logcat (Release) to related person to fix Entities package crash bug.
     
  3. milos85miki

    milos85miki

    Joined:
    Nov 29, 2019
    Posts:
    197
  4. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,000
    Hi @milos85miki, you can refer to Android Logcat (Develop) at above. The logcat mention something about PhysicsShapeAuthoring_GetCapsuleProperties.

    upload_2021-2-20_7-50-19.png
     
  5. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,000
  6. milos85miki

    milos85miki

    Joined:
    Nov 29, 2019
    Posts:
    197
    Hi @optimise, I'm investigating. I saw the PhysicsShapeAuthoring entry, but since it's in the middle of the call stack I'm not sure the problem is in that code.

    As you've seen on your other thread, we are aware of one il2cpp crash that can happen with physics, but is actually caused by a bug in another package. That is being worked on (workaround is
    [MonoPInvokeCallback(typeof(_dlg_Hash64Long))]
    ), but I'm trying to figure out if we're dealing with the same underlying problem here or it's something else.

    Will let you know as soon as I have some news.
     
    optimise likes this.
  7. milos85miki

    milos85miki

    Joined:
    Nov 29, 2019
    Posts:
    197
    Just a quick update - the bug was triaged by Unity folks and it's on the radar. That's all I know.
     
    MNNoxMortem and optimise like this.
  8. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,000
    @milos85miki. Any new update for this bug?
     
  9. milos85miki

    milos85miki

    Joined:
    Nov 29, 2019
    Posts:
    197
  10. Qhuhuit

    Qhuhuit

    Joined:
    Feb 17, 2018
    Posts:
    29
    Hello, this is just to say that I have a SIGSEGV crash upon an android release build using il2cpp, and it does not crash on development build nor using mono. I had the crash on a bigger project using a small bit of DOTS code but I have reproduced it on a blank project with just the dots part.
    Sorry if this isn't directly related but I'm interested in any news too.
    Crash with unity 2021 lastest, project was not crashing with 2020
     
  11. ArshakKroyan

    ArshakKroyan

    Joined:
    Mar 4, 2015
    Posts:
    24
    Hi @optimise , Did you find any fix related to this issue?
    We do have a similar issue, the game crashes when we do [IL2CPP] [Android] [Release] build.
     
  12. bubbblesGaming

    bubbblesGaming

    Joined:
    Nov 16, 2017
    Posts:
    1
    Hi,
    I'm also facing this issue.
    Game is ready but can't build for publishing :(
    Please help if anyone has a workaround?
     
  13. chihunkim

    chihunkim

    Joined:
    Oct 6, 2016
    Posts:
    4
    @optimise @ArshakKroyan Any fixes? I faced the similar crash. My simple app works if it is built by Mono. But I need IL2CPP build because google requires ARM64 build.
     
unityunity