App crashes for some Android Phones

Hi, I have an app which works on my Moto G7 but it fails on lot other phones. I have another phone Samsung Galaxy A12 on which the same app crashes. Some of the other phones on which the app crashes is:

  • Xperia XA2, Android 9
  • Google Pixel 2, Android 11
  • Samsung J2 Dash, Unknown Android Version
  • Galaxy S10+, Android 11
  • AQT80 tablet, Android 5.1.1
  • ZTE Z981, Android 6.0.1
  • Galaxy J3 Luna Pro
  • Samsung J701F/DS
  • Google Pixel 4a

The app works on these phones:

  • LG Wing, Android 10
  • OnePlus 9, Android 11
  • Moto G7, Android 10
  • Huawei Honor 6x, Android 7.0
  • Google Pixel 4, Android 11
  • Samsung Galaxy S20, Android 11.

I have attached the error log in this link. I spent 2 weeks on this error. Still no solution. I am using Unity 2019.4.1f1.

Please find the same log below:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Version '2019.4.29f1 (0eeae20b1d82)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
Build fingerprint: 'samsung/a12usq/a12u:10/QP1A.190711.020/A125USQU1AUD6:user/release-keys'
Revision: '3'
ABI: 'arm64'
Timestamp: 2021-08-10 16:27:03-0400
pid: 7962, tid: 10673, name: Loading.Preload  >>> com.digitaldreamlabs.cozmo2 <<<
uid: 10240
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x18
Cause: null pointer dereference
    x0  0000007b000a1d70  x1  0000007aa581eb60  x2  0000000000000020  x3  ffffffff9eed4b7e
    x4  001c010248000000  x5  0000007b30233d80  x6  0000007c9cb4c000  x7  00000000003721b4
    x8  0000000000000000  x9  0000000028c8ceb4  x10 000000003b9aca00  x11 0000000028c8ceb4
    x12 0000000000000018  x13 000000006112e117  x14 000cb6f954eb7eda  x15 000010d317627a76
    x16 0000007ba2f610a0  x17 0000007c99c6aa78  x18 0000007a901736db  x19 0000007b000a1d70
    x20 0000007a90544c60  x21 0000007ba2fe8698  x22 0000007ba2f5f000  x23 0000007ba2f81a28
    x24 0000007ba2f81a28  x25 0000007aa581f020  x26 0000007aa581ec50  x27 0000000000000007
    x28 0000007ba73a0a70  x29 0000007aa581ed10
    sp  0000007aa581ea30  lr  0000007ba1bb08fc  pc  0000007ba1965260

backtrace:
      #00 pc 0000000000250260  /data/app/com.digitaldreamlabs.cozmo2-OYgR38mJAyGUoSQ37mXxbA==/lib/arm64/libunity.so (AssetBundleLoadFromAsyncOperation::Perform()+160) (BuildId: 44645278ef4e6345c687379f5d43c8a9914e5202)
      #01 pc 000000000049b8f8  /data/app/com.digitaldreamlabs.cozmo2-OYgR38mJAyGUoSQ37mXxbA==/lib/arm64/libunity.so (PreloadManager::ProcessSingleOperation()+60) (BuildId: 44645278ef4e6345c687379f5d43c8a9914e5202)
      #02 pc 000000000049b738  /data/app/com.digitaldreamlabs.cozmo2-OYgR38mJAyGUoSQ37mXxbA==/lib/arm64/libunity.so (PreloadManager::Run()+132) (BuildId: 44645278ef4e6345c687379f5d43c8a9914e5202)
      #03 pc 000000000049b6a0  /data/app/com.digitaldreamlabs.cozmo2-OYgR38mJAyGUoSQ37mXxbA==/lib/arm64/libunity.so (PreloadManager::Run(void*)+40) (BuildId: 44645278ef4e6345c687379f5d43c8a9914e5202)
      #04 pc 00000000005f8a90  /data/app/com.digitaldreamlabs.cozmo2-OYgR38mJAyGUoSQ37mXxbA==/lib/arm64/libunity.so (Thread::RunThreadWrapper(void*)+512) (BuildId: 44645278ef4e6345c687379f5d43c8a9914e5202)
      #05 pc 00000000000e39e4  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 1616a114eb03a046a9df1c5dc481223d)
      #06 pc 0000000000085248  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 1616a114eb03a046a9df1c5dc481223d)

Looks like it is blowing up in something you are doing with Asset Bundles.

Either attach the debugger or else start sprinkling in Debug.Log() calls to figure out what is null.

Remember that Asset Bundles MUST be built for Android specifically. Editor and iOS ones won’t work.

1 Like

Hi @Kurt-Dekker thanks for the help. Removing some extra pngs in variants to make all the asset bundles similar worked.

1 Like