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:
FATAL EXCEPTION: UnityMain
Process: PID: 20014
java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Version '2022.1.14f1 (ff7e140968b4)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
Build fingerprint: 'google/oriole/oriole:12/SQ1D.220205.004/8151327:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2022-08-30 10:10:33-0700
pid: 20014, tid: 20033, name: UnityMain >>> <<<
uid: 10233
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
x0 0000000000000000 x1 0000000000000010 x2 0000000000000010 x3 000000000000000c
x4 0000000000000000 x5 00000076a3c9f61d x6 0000000000000000 x7 0000000000000001
x8 000000767000f340 x9 000000000000042f x10 0000000000000000 x11 0000000000000000
x12 0000000000000527 x13 0000000000000000 x14 0000000000000526 x15 00000003b4e14e4c
x16 00000076a4018cb8 x17 00000079aa926680 x18 00000076a2b00000 x19 000000761003ca20
x20 00000076a2d0b7c0 x21 0000000000000000 x22 00000076a2d0b719 x23 0000000000000001
x24 b4000077899276a0 x25 0000000000000000 x26 0000000000000018 x27 00000076a2d0bd90
x28 00000076a3d48e75 x29 0000000000000049
sp 00000076a2d0b650 lr 00000076a30de680 pc 00000079aa926690
backtrace:
#00 pc 0000000000049690 /apex/com.android.runtime/lib64/bionic/libc.so (__strlen_aarch64+16) (BuildId: 28943f8bb3b7b23557619af9a38223c5)
#01 pc 00000000003cd67c /data/app/~~G_3eCZNbE5NyyTPkW52xqA==/-xmTgpwO8UcH_6rA50WrrSA==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
#02 pc 00000000003c8770 /data/app/~~G_3eCZNbE5NyyTPkW52xqA==/-xmTgpwO8UcH_6rA50WrrSA==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
#03 pc 00000000003b4d10 /data/app/~~G_3eCZNbE5NyyTPkW52xqA==/-xmTgpwO8UcH_6rA50WrrSA==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
#04 pc 00000000003b65ac /data/app/~~G_3eCZNbE5NyyTPkW52xqA==/-xmTgpwO8UcH_6rA50WrrSA==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
#05 pc 00000000003cdf84 /data/app/~~G_3eCZNbE5NyyTPkW52xqA==/-xmTgpwO8UcH_6rA50WrrSA==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
#06 pc 0000000000222244 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
#07 pc 0000000000212520 /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
#08 pc 00000000002115a4 /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
#09 pc 00000000004efe70 /system/framework/arm64/boot-framework.oat (BuildId: b475cc2538d0c50ace3ee34f4ccdf79c9b7101d2)
at libc.__strlen_aarch64(__strlen_aarch64:16)
at libunity.0x3cd67c(Native Method)
at libunity.0x3c8770(Native Method)
at libunity.0x3b4d10(Native Method)
at libunity.0x3b65ac(Native Method)
at libunity.0x3cdf84(Native Method)
at libart.art_quick_generic_jni_trampoline(art_quick_generic_jni_trampoline:148)
at libart.nterp_helper(nterp_helper:4016)
at libart.nterp_helper(nterp_helper:52)
at boot-framework.0x4efe70(Native Method)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/redfin_64/redfin:13/TP1A.220624.014/8819323:userdebug/dev-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2022-08-30 10:09:21.798099848-0700
Process uptime: 1s
pid: 7051, tid: 7076, name: UnityMain >>> <<<
uid: 10265
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
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)
at void com.unity3d.player.a.a(java.lang.String[], com.unity3d.player.IAssetPackManagerStatusQueryCallback) ((null):-1)
at void com.unity3d.player.PlayAssetDeliveryUnityWrapper.getAssetPackStates(java.lang.String[], com.unity3d.player.IAssetPackManagerStatusQueryCallback) ((null):-1)
at void com.unity3d.player.PlayAssetDeliveryUnityWrapper.getAssetPackState(java.lang.String, com.unity3d.player.IAssetPackManagerStatusQueryCallback) ((null):-1)
at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
at boolean android.os.Looper.loopOnce(android.os.Looper, long, int) (Looper.java:201)
at void android.os.Looper.loop() (Looper.java:288)
at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)'
x0 0000000000000000 x1 0000000000001ba4 x2 0000000000000006 x3 000000735e5cbc70
x4 6f646277641f666d x5 6f646277641f666d x6 6f646277641f666d x7 7f7f7f7f7f7f7f7f
x8 00000000000000f0 x9 0000007677cbca00 x10 0000000000000001 x11 0000007677cface4
x12 0000000000006b06 x13 000000000000065c x14 000000735e5caa90 x15 0000007677cc0662
x16 0000007677d5fd60 x17 0000007677d3cb70 x18 000000733fa30000 x19 0000000000001b8b
x20 0000000000001ba4 x21 00000000ffffffff x22 00000073d4415000 x23 0000000000000002
x24 000000735e5cd000 x25 000000735e5cc05c x26 000000735e5cc098 x27 000000735e5cc098
x28 000000735e5cc4f0 x29 000000735e5cbcf0
lr 0000007677cec868 sp 000000735e5cbc50 pc 0000007677cec894 pst 0000000000001000
backtrace:
#00 pc 0000000000051894 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 058e3ec96fa600fb840a6a6956c6b64e)
#01 pc 00000000006d28bc /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+704) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
#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)
#03 pc 0000000000016450 /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()+352) (BuildId: b77c57f68a484ed93d5a7eda59d83bf9)
#04 pc 000000000038d888 /apex/com.android.art/lib64/libart.so (art::Thread::AssertNoPendingException() const+488) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
#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)
#06 pc 00000000005d0860 /apex/com.android.art/lib64/libart.so (art::JNI<false>::FindClass(_JNIEnv*, char const*)+672) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
#07 pc 00000000003b8248 /data/app/~~98w5yoNCeQq6ETLLo8LEYA==/-ZUEx6mtdWb1Bp9r323YtaQ==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
#08 pc 00000000003cdf70 /data/app/~~98w5yoNCeQq6ETLLo8LEYA==/-ZUEx6mtdWb1Bp9r323YtaQ==/lib/arm64/libunity.so (BuildId: a5967d7e23ae3fd72044f366f964aedfefea1098)
#09 pc 0000000000440354 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
#10 pc 000000000020a2b0 /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
#11 pc 0000000000234840 /data/app/~~98w5yoNCeQq6ETLLo8LEYA==/-ZUEx6mtdWb1Bp9r323YtaQ==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer.access$300+0)
#12 pc 0000000000209334 /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
#13 pc 0000000000233eaa /data/app/~~98w5yoNCeQq6ETLLo8LEYA==/-ZUEx6mtdWb1Bp9r323YtaQ==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer$e$1.handleMessage+190)
#14 pc 00000000004e5e04 /system/framework/arm64/boot-framework.oat (android.os.Handler.dispatchMessage+148) (BuildId: 1549e9510d42e3841c5e4c3800af4daa83cc39bb)
#15 pc 00000000004e9138 /system/framework/arm64/boot-framework.oat (android.os.Looper.loopOnce+1032) (BuildId: 1549e9510d42e3841c5e4c3800af4daa83cc39bb)
#16 pc 00000000004e8c90 /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+560) (BuildId: 1549e9510d42e3841c5e4c3800af4daa83cc39bb)
#17 pc 0000000000209398 /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
#18 pc 00000000002342ac /data/app/~~98w5yoNCeQq6ETLLo8LEYA==/-ZUEx6mtdWb1Bp9r323YtaQ==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer$e.run+48)
#19 pc 000000000043696c /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+556) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
#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)
#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)
#22 pc 0000000000617f0c /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1668) (BuildId: 97fdb979efb7d2b596fa4fceabaad95b)
#23 pc 00000000000b62b8 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 058e3ec96fa600fb840a6a6956c6b64e)
#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