SIGSEGV Null Pointer Dereference Crash on Android Devices

I have been experiencing a persistent crash in my Unity game for about three months. Despite extensive research and debugging efforts, I have not been able to identify the root cause. The location of the crash varies; some occur on the first launch, while others happen after about 5 to 10 minutes of gameplay.

Additional Info:
Unity Version : 2022.3.12f1
SDKs in the project: Firebase(analytics, crashlytics), Google Sign in
Almost all the devices experiencing the crash have approximately 50-150 MBs of free RAM, according to Crashlytics. Interestingly, most of these devices crash within the first 3-5 seconds, despite the fact that the app is unlikely to consume a significant amount of memory in such a short timeframe.

Crash Logs:
Crashed: null pointer dereference (SIGSEGV 0x0000000000000000)

null pointer dereference: SIGSEGV 0x0000000000000000
#00 pc 0x0
#01 pc 0x70a752 libil2cpp.so (RuntimeInvoker_TrueVisualElementStyleSheetSet(void ()(), MethodInfo const, void*, void**, void*)) (BuildId: 86fbfa800fedf405)
#02 pc 0x83ce0a libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)) (BuildId: 86fbfa800fedf405)
#03 pc 0x83ce0a libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)) (BuildId: 86fbfa800fedf405)
#04 pc 0x83cd4a libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)) (BuildId: 86fbfa800fedf405)
#05 pc 0x509919 libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)) (BuildId: a58a28139d39baba)
#06 pc 0x509919 libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)) (BuildId: a58a28139d39baba)
#07 pc 0x1186b76 libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#08 pc 0x514187 libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)) (BuildId: a58a28139d39baba)
#09 pc 0x51db6f libunity.so (MonoBehaviour::CallUpdateMethod(int)) (BuildId: a58a28139d39baba)
#10 pc 0x5d1ba1 libunity.so (NavMeshManager::Update()) (BuildId: a58a28139d39baba)
#11 pc 0x2a73db libunity.so (core::hash_map<int, Object*, core::hash, std::__ndk1::equal_to>::find(int const&)) (BuildId: a58a28139d39baba)
#12 pc 0x756c2d libunity.so (PhysicsManager2D::GetPhysicsScene(int) const) (BuildId: a58a28139d39baba)
#13 pc 0x118493e libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#14 pc 0x7570b1 libunity.so (PhysicsManager2D::InterpolateBodies()) (BuildId: a58a28139d39baba)
#15 pc 0x4c3fa1 libunity.so (PhysicsManager::InterpolateBodies(int)) (BuildId: a58a28139d39baba)
#16 pc 0x11801be libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#17 pc 0x455e0f libunity.so (GetTimeSinceStartup()) (BuildId: a58a28139d39baba)
#18 pc 0x424b6b libunity.so (TimeManager::GetRealtime()) (BuildId: a58a28139d39baba)
#19 pc 0x39ee99 libunity.so (void BaseBehaviourManager::CommonUpdate()) (BuildId: a58a28139d39baba)
#20 pc 0x43adc1 libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)) (BuildId: a58a28139d39baba)
#21 pc 0x2d855 libc.so (BuildId: b8cfbb437fd69c213f611149bf35ebf5)
#22 pc 0x379df libc++.so (BuildId: 1797b860f3a1cd1212b90d1918d575fe)
#23 pc 0x404ce7 libart.so (BuildId: 503b2103dbcf532a9838a94c11fffe0e)
#24 pc 0x404b95 libart.so (BuildId: 503b2103dbcf532a9838a94c11fffe0e)
#25 pc 0x10f38b2 libunity.so (__udivmoddi4) (BuildId: a58a28139d39baba)
#26 pc 0x10f373a libunity.so (__divmoddi4) (BuildId: a58a28139d39baba)
#27 pc 0x1cc8606 libil2cpp.so (OnDemandRendering.GetRenderFrameInterval) (BuildId: 86fbfa800fedf405)
#28 pc 0x736726 libil2cpp.so (RuntimeInvoker_FalseVoid_Span_1(void ()(), MethodInfo const, void*, void**, void*)) (BuildId: 86fbfa800fedf405)
#29 pc 0x83ce0a libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)) (BuildId: 86fbfa800fedf405)
#30 pc 0x10f36ee libunity.so (__aeabi_ldivmod) (BuildId: a58a28139d39baba)
#31 pc 0x83cd4a libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)) (BuildId: 86fbfa800fedf405)
#32 pc 0x43ade5 libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)) (BuildId: a58a28139d39baba)
#33 pc 0x118a086 libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#34 pc 0x58fcf9 libunity.so (Scripting::UnityEngine::Rendering::OnDemandRenderingProxy::GetRenderFrameInterval(int*, ScriptingExceptionPtr*)) (BuildId: a58a28139d39baba)
#35 pc 0x1186b76 libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#36 pc 0x514187 libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)) (BuildId: a58a28139d39baba)
#37 pc 0x118a086 libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#38 pc 0x58fcf9 libunity.so (Scripting::UnityEngine::Rendering::OnDemandRenderingProxy::GetRenderFrameInterval(int*, ScriptingExceptionPtr*)) (BuildId: a58a28139d39baba)
#39 pc 0x10f38b2 libunity.so (__udivmoddi4) (BuildId: a58a28139d39baba)
#40 pc 0x10f373a libunity.so (__divmoddi4) (BuildId: a58a28139d39baba)
#41 pc 0x117f562 libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#42 pc 0x117f562 libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#43 pc 0x118a086 libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#44 pc 0x43afcd libunity.so (PlayerLoop()) (BuildId: a58a28139d39baba)
#45 pc 0xae2b5 libc.so (BuildId: b8cfbb437fd69c213f611149bf35ebf5)
#46 pc 0x118a09a libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#47 pc 0x118a086 libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#48 pc 0x560a41 libunity.so (AndroidAssetPacks::AssetPackManager::UpdateCoreAssetPacksStatus()) (BuildId: a58a28139d39baba)
#49 pc 0x11850ff libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#50 pc 0x118a086 libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#51 pc 0x1138a26 libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#52 pc 0x1138a26 libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#53 pc 0x118a09a libunity.so (__ThumbV7PILongThunk_memchr) (BuildId: a58a28139d39baba)
#54 pc 0x568e8b libunity.so (UnityPlayerLoop()) (BuildId: a58a28139d39baba)
#55 pc 0x289f libsigchain.so (BuildId: dcefe36cc143f887aed3f04c7a8b06d0)
#56 pc 0x57c7ad libunity.so (nativeRender(_JNIEnv*, _jobject*)) (BuildId: a58a28139d39baba)
#57 pc 0x50a87 libcodec2_vndk.so (BuildId: d9c1e15f3e6fac90d8c96aec6f1afadb)
#58 pc 0x148d1d libart.so (BuildId: 503b2103dbcf532a9838a94c11fffe0e)
#59 pc 0x32525e libart.so (BuildId: 503b2103dbcf532a9838a94c11fffe0e)
#60 pc 0x148cef libart.so (BuildId: 503b2103dbcf532a9838a94c11fffe0e)
#61 pc 0x32567e libart.so (BuildId: 503b2103dbcf532a9838a94c11fffe0e)
#62 pc 0xbf5c4952
#63 pc 0x32edee libart.so (BuildId: 503b2103dbcf532a9838a94c11fffe0e)

9519628--1342573--Screenshot_1.png
9519628--1342576--Screenshot_2.png

Any chance you can submit a bug-report as described in this document?

It’s important that you report these issues together with a reproduction project if you want them to get fixed. If you don’t do it, it might be a long time until someone else reports them or until Unity Technologies find them.

After you submitted the bug-report, you receive a confirmation email with a bug-report Case number. Please post the Case number (number only, not the link) in this forum thread for Unity staff to pick up.

The issue is that I cannot reproduce it. According to my research over the past three months, I have never seen anyone else reproduce this problem. That’s why I created a post.

Hello guys, I was having the same error and kept smashing my head for hours trying to figure it out, only to discover it was the post processing effects I’ve had attached to my camera. To solve it, I just unmarked the post processing volumes and layers and rebuilt the APK.

I hope to help some of you with this. :wink:

the same thing happened with unity 2022.2.20.