Search Unity

Native Crash on iOS when loading Asset Bundle in Unity 2018

Discussion in 'Asset Bundles' started by FedericoBozzoMiniclip, Jan 30, 2019.

  1. FedericoBozzoMiniclip

    FedericoBozzoMiniclip

    Joined:
    Feb 27, 2018
    Posts:
    2
    Hi All,

    after upgrading a project from Unity 5.6 to 2018.2, we started to experience random native crashes only on iOs and only when loading an Asset Bundle.

    This happens with all Asset Bundles, not just one in particular, and, of course, we already rebuilt all bundles with the new Unity version (even re importing every single asset inside the new Unity).

    Attaching Xcode, the crash appears to be a “EXC_BAD_ACCESS” in the UnityPreload thread.

    Without bundles the crash does not happen.

    Does anyone of you have an idea of what might cause this issue or have you ever experienced this yourself?

    Attachment: last logs and error message. Of course the size of the bundle we are trying to load is much smaller, so the error seams to be wrong.
     

    Attached Files:

  2. edoardo_milano_miniclip

    edoardo_milano_miniclip

    Joined:
    Sep 20, 2018
    Posts:
    1
    it would be interesting to know why native unity stuff makes your application crash without explanation :rolleyes:
     
    gggames1988 and Pezzano like this.
  3. saveriodilazzaro

    saveriodilazzaro

    Joined:
    Jan 15, 2019
    Posts:
    1
    I also need it!
     
    Pezzano likes this.
  4. buFFalo94

    buFFalo94

    Joined:
    Sep 14, 2015
    Posts:
    181
    According to the attached file the crash happen because of out of memory. The problem can be the compression used when building asset bundles or the way you try to load them. Give more details about that maybe someone can help you