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

Android crash when including ARMv7 in build

Discussion in 'Android' started by PanicEnsues, May 29, 2022.

  1. PanicEnsues

    PanicEnsues

    Joined:
    Jul 17, 2014
    Posts:
    185
    Unity 2020.3.33, building and running on an ARMv64 device: All works fine as long as I only check "ARMv64" under "Target Architectures". If I also include ARMv7 architecture, the built APK crashes on startup with:

    Code (CSharp):
    1. 2022/05/29 11:28:57.994 29200 29220 Error CRASH ABI: 'arm64'
    2. 2022/05/29 11:28:57.994 29200 29220 Error CRASH Timestamp: 2022-05-29 11:28:57-0700
    3. 2022/05/29 11:28:57.994 29200 29220 Error CRASH pid: 29200, tid: 29220, name: UnityMain  >>> com.xxx.xxx <<<
    4. 2022/05/29 11:28:57.994 29200 29220 Error CRASH uid: 10203
    5. 2022/05/29 11:28:57.994 29200 29220 Error CRASH signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x6fc24f8d20
    This just started after I upgraded the project from Unity 2018 to 2020.

    Thanks for any suggestions!
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    Is there a stacktrace ?
     
  3. PanicEnsues

    PanicEnsues

    Joined:
    Jul 17, 2014
    Posts:
    185
    No stacktrace, just a long list of mem addresses.

    I found a workaround in this thread: Delete the Library/IL2CPP* folders, then rebuild.

    There's also a bug reported for it, that has been marked Fixed for 2022, but hasn't been (and IMO probably won't be) back-ported to 2020.
     
  4. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    479