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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Bug Crashes on Android at startup after adding Mediation

Discussion in 'Unity Mediation' started by CameronDWills, Aug 30, 2022.

  1. CameronDWills

    CameronDWills

    Joined:
    Feb 26, 2021
    Posts:
    61
    Unity 2022.1.14f1
    After adding mediation to my app, it causes it to crash on startup on most android devices and I show a bunch of errors in google play console. I thought maybe it could be related to this: Crash at Android 12 · Issue #187 · google/play-unity-plugins · GitHub

    but this didn't solve the issue either, and I haven't found a solution yet. My game had no problems running on Android until after I added Mediation. Here are the errors I get now:

    Code (CSharp):
    1. FATAL EXCEPTION: UnityMain
    2. Process:  PID: 20014
    3. java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    4. Version '2022.1.14f1 (ff7e140968b4)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    5. Build fingerprint: 'google/oriole/oriole:12/SQ1D.220205.004/8151327:user/release-keys'
    6. Revision: 'MP1.0'
    7. ABI: 'arm64'
    8. Timestamp: 2022-08-30 10:10:33-0700
    9. pid: 20014, tid: 20033, name: UnityMain  >>> <<<
    10. uid: 10233
    11. signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    12. Cause: null pointer dereference
    13.     x0  0000000000000000  x1  0000000000000010  x2  0000000000000010  x3  000000000000000c
    14.     x4  0000000000000000  x5  00000076a3c9f61d  x6  0000000000000000  x7  0000000000000001
    15.     x8  000000767000f340  x9  000000000000042f  x10 0000000000000000  x11 0000000000000000
    16.     x12 0000000000000527  x13 0000000000000000  x14 0000000000000526  x15 00000003b4e14e4c
    17.     x16 00000076a4018cb8  x17 00000079aa926680  x18 00000076a2b00000  x19 000000761003ca20
    18.     x20 00000076a2d0b7c0  x21 0000000000000000  x22 00000076a2d0b719  x23 0000000000000001
    19.     x24 b4000077899276a0  x25 0000000000000000  x26 0000000000000018  x27 00000076a2d0bd90
    20.     x28 00000076a3d48e75  x29 0000000000000049
    21.     sp  00000076a2d0b650  lr  00000076a30de680  pc  00000079aa926690
    22. backtrace:
    23.       #00 pc 0000000000049690  /apex/com.android.runtime/lib64/bionic/libc.so (__strlen_aarch64+16) (BuildId: 28943f8bb3b7b23557619af9a38223c5)
    24.       #01 pc 00000000003cd67c  /data/app/~~G_3eCZNbE5NyyTPkW52xqA==/-xmTgpwO8UcH_6rA50WrrSA==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
    25.       #02 pc 00000000003c8770  /data/app/~~G_3eCZNbE5NyyTPkW52xqA==/-xmTgpwO8UcH_6rA50WrrSA==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
    26.       #03 pc 00000000003b4d10  /data/app/~~G_3eCZNbE5NyyTPkW52xqA==/-xmTgpwO8UcH_6rA50WrrSA==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
    27.       #04 pc 00000000003b65ac  /data/app/~~G_3eCZNbE5NyyTPkW52xqA==/-xmTgpwO8UcH_6rA50WrrSA==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
    28.       #05 pc 00000000003cdf84  /data/app/~~G_3eCZNbE5NyyTPkW52xqA==/-xmTgpwO8UcH_6rA50WrrSA==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
    29.       #06 pc 0000000000222244  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
    30.       #07 pc 0000000000212520  /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
    31.       #08 pc 00000000002115a4  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
    32.       #09 pc 00000000004efe70  /system/framework/arm64/boot-framework.oat (BuildId: b475cc2538d0c50ace3ee34f4ccdf79c9b7101d2)
    33.     at libc.__strlen_aarch64(__strlen_aarch64:16)
    34.     at libunity.0x3cd67c(Native Method)
    35.     at libunity.0x3c8770(Native Method)
    36.     at libunity.0x3b4d10(Native Method)
    37.     at libunity.0x3b65ac(Native Method)
    38.     at libunity.0x3cdf84(Native Method)
    39.     at libart.art_quick_generic_jni_trampoline(art_quick_generic_jni_trampoline:148)
    40.     at libart.nterp_helper(nterp_helper:4016)
    41.     at libart.nterp_helper(nterp_helper:52)
    42.     at boot-framework.0x4efe70(Native Method)
    Code (CSharp):
    1. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2. Build fingerprint: 'google/redfin_64/redfin:13/TP1A.220624.014/8819323:userdebug/dev-keys'
    3. Revision: 'MP1.0'
    4. ABI: 'arm64'
    5. Timestamp: 2022-08-30 10:09:21.798099848-0700
    6. Process uptime: 1s
    7. pid: 7051, tid: 7076, name: UnityMain  >>> <<<
    8. uid: 10265
    9. signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
    10. Abort message: 'Throwing new exception 'No interface method getPackStates(Ljava/util/List;)Lcom/google/android/play/core/tasks/Task; in class Lcom/google/android/play/core/assetpacks/AssetPackManager; or its super classes (declaration of 'com.google.android.play.core.assetpacks.AssetPackManager' appears in /data/app/~~98w5yoNCeQq6ETLLo8LEYA==/-ZUEx6mtdWb1Bp9r323YtaQ==/base.apk)' with unexpected pending exception: java.lang.NoSuchMethodError: No interface method getPackStates(Ljava/util/List;)Lcom/google/android/play/core/tasks/Task; in class Lcom/google/android/play/core/assetpacks/AssetPackManager; or its super classes (declaration of 'com.google.android.play.core.assetpacks.AssetPackManager' appears in /data/app/~~98w5yoNCeQq6ETLLo8LEYA==/-ZUEx6mtdWb1Bp9r323YtaQ==/base.apk)
    11.  at void com.unity3d.player.a.a(java.lang.String[], com.unity3d.player.IAssetPackManagerStatusQueryCallback) ((null):-1)
    12.  at void com.unity3d.player.PlayAssetDeliveryUnityWrapper.getAssetPackStates(java.lang.String[], com.unity3d.player.IAssetPackManagerStatusQueryCallback) ((null):-1)
    13.  at void com.unity3d.player.PlayAssetDeliveryUnityWrapper.getAssetPackState(java.lang.String, com.unity3d.player.IAssetPackManagerStatusQueryCallback) ((null):-1)
    14.  at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
    15.  at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
    16.  at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
    17.  at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
    18.  at boolean android.os.Looper.loopOnce(android.os.Looper, long, int) (Looper.java:201)
    19.  at void android.os.Looper.loop() (Looper.java:288)
    20.  at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)'
    21.     x0  0000000000000000  x1  0000000000001ba4  x2  0000000000000006  x3  000000735e5cbc70
    22.     x4  6f646277641f666d  x5  6f646277641f666d  x6  6f646277641f666d  x7  7f7f7f7f7f7f7f7f
    23.     x8  00000000000000f0  x9  0000007677cbca00  x10 0000000000000001  x11 0000007677cface4
    24.     x12 0000000000006b06  x13 000000000000065c  x14 000000735e5caa90  x15 0000007677cc0662
    25.     x16 0000007677d5fd60  x17 0000007677d3cb70  x18 000000733fa30000  x19 0000000000001b8b
    26.     x20 0000000000001ba4  x21 00000000ffffffff  x22 00000073d4415000  x23 0000000000000002
    27.     x24 000000735e5cd000  x25 000000735e5cc05c  x26 000000735e5cc098  x27 000000735e5cc098
    28.     x28 000000735e5cc4f0  x29 000000735e5cbcf0
    29.     lr  0000007677cec868  sp  000000735e5cbc50  pc  0000007677cec894  pst 0000000000001000
    30. backtrace:
    31.       #00 pc 0000000000051894  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 058e3ec96fa600fb840a6a6956c6b64e)
    32.       #01 pc 00000000006d28bc  /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+704) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
    33.       #02 pc 0000000000016ea8  /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+80) (BuildId: b77c57f68a484ed93d5a7eda59d83bf9)
    34.       #03 pc 0000000000016450  /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()+352) (BuildId: b77c57f68a484ed93d5a7eda59d83bf9)
    35.       #04 pc 000000000038d888  /apex/com.android.art/lib64/libart.so (art::Thread::AssertNoPendingException() const+488) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
    36.       #05 pc 000000000038a324  /apex/com.android.art/lib64/libart.so (art::ClassLinker::FindClass(art::Thread*, char const*, art::Handle<art::mirror::ClassLoader>)+64) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
    37.       #06 pc 00000000005d0860  /apex/com.android.art/lib64/libart.so (art::JNI<false>::FindClass(_JNIEnv*, char const*)+672) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
    38.       #07 pc 00000000003b8248  /data/app/~~98w5yoNCeQq6ETLLo8LEYA==/-ZUEx6mtdWb1Bp9r323YtaQ==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
    39.       #08 pc 00000000003cdf70  /data/app/~~98w5yoNCeQq6ETLLo8LEYA==/-ZUEx6mtdWb1Bp9r323YtaQ==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
    40.       #09 pc 0000000000440354  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
    41.       #10 pc 000000000020a2b0  /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
    42.       #11 pc 0000000000234840  /data/app/~~98w5yoNCeQq6ETLLo8LEYA==/-ZUEx6mtdWb1Bp9r323YtaQ==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer.access$300+0)
    43.       #12 pc 0000000000209334  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
    44.       #13 pc 0000000000233eaa  /data/app/~~98w5yoNCeQq6ETLLo8LEYA==/-ZUEx6mtdWb1Bp9r323YtaQ==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer$e$1.handleMessage+190)
    45.       #14 pc 00000000004e5e04  /system/framework/arm64/boot-framework.oat (android.os.Handler.dispatchMessage+148) (BuildId: 1549e9510d42e3841c5e4c3800af4daa83cc39bb)
    46.       #15 pc 00000000004e9138  /system/framework/arm64/boot-framework.oat (android.os.Looper.loopOnce+1032) (BuildId: 1549e9510d42e3841c5e4c3800af4daa83cc39bb)
    47.       #16 pc 00000000004e8c90  /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+560) (BuildId: 1549e9510d42e3841c5e4c3800af4daa83cc39bb)
    48.       #17 pc 0000000000209398  /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
    49.       #18 pc 00000000002342ac  /data/app/~~98w5yoNCeQq6ETLLo8LEYA==/-ZUEx6mtdWb1Bp9r323YtaQ==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer$e.run+48)
    50.       #19 pc 000000000043696c  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+556) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
    51.       #20 pc 0000000000468738  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+156) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
    52.       #21 pc 0000000000468420  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+388) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
    53.       #22 pc 0000000000617f0c  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1668) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
    54.       #23 pc 00000000000b62b8  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 058e3ec96fa600fb840a6a6956c6b64e)
    55.       #24 pc 0000000000052fb8  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 058e3ec96fa600fb840a6a6956c6b64e)
    edit:
    I was able to fix this by deleting the Unity Play Services plugin I had added into my project
     
    Last edited: Aug 31, 2022
unityunity