I’m getting gc. finalizer crash in ARM64 il2cpp android (oculus) build. When the build is release. If build is development crash doesn’t appear. I’m using unity 2022.2.14 with URP render pipeline.
A Fatal signal 5 (SIGTRAP), code -6 (SI_TKILL) in tid 15881 (GC Finalizer), pid 15851 (Inovepic.Future)
2023-04-17 16:47:05.592 16753-16753 DEBUG pid-16753 A *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2023-04-17 16:47:05.592 16753-16753 DEBUG pid-16753 A Build fingerprint: ‘oculus/hollywood/hollywood:10/QQ3A.200805.001/50163300257300150:user/release-keys’
2023-04-17 16:47:05.592 16753-16753 DEBUG pid-16753 A Revision: ‘0’
2023-04-17 16:47:05.592 16753-16753 DEBUG pid-16753 A ABI: ‘arm64’
2023-04-17 16:47:05.592 16753-16753 DEBUG pid-16753 A Timestamp: 2023-04-17 16:47:05+0300
2023-04-17 16:47:05.592 16753-16753 DEBUG pid-16753 A pid: 15851, tid: 15881, name: GC Finalizer >>> com.Inovepic.Future <<<
2023-04-17 16:47:05.592 16753-16753 DEBUG pid-16753 A uid: 10104
2023-04-17 16:47:05.592 16753-16753 DEBUG pid-16753 A signal 5 (SIGTRAP), code -6 (SI_TKILL), fault addr --------
2023-04-17 16:47:05.593 16753-16753 DEBUG pid-16753 A x0 0000000000000000 x1 0000000000003e09 x2 0000000000000005 x3 8080808080808080
2023-04-17 16:47:05.593 16753-16753 DEBUG pid-16753 A x4 fefefefefefefeff x5 fefefefefefefeff x6 fefefefefefefeff x7 7f7f7f7f7f7f7f7f
2023-04-17 16:47:05.593 16753-16753 DEBUG pid-16753 A x8 0000000000000083 x9 06dd67c58a690098 x10 ffffffffffb70725 x11 ffffffffffb706c3
2023-04-17 16:47:05.593 16753-16753 DEBUG pid-16753 A x12 0000000000000000 x13 0000000000000041 x14 0000000000000004 x15 ffffffffffffffff
2023-04-17 16:47:05.593 16753-16753 DEBUG pid-16753 A x16 00000078c9c61a78 x17 00000078c9c459a0 x18 00000077c7f0e000 x19 00000077c874d870
2023-04-17 16:47:05.593 16753-16753 DEBUG pid-16753 A x20 00000000000000ae x21 00000077c874d910 x22 00000077c874e018 x23 00000077e60e9000
2023-04-17 16:47:05.593 16753-16753 DEBUG pid-16753 A x24 00000077e59d1b0c x25 00000077e4d39000 x26 0000000000000001 x27 00000076f0c1a9c0
2023-04-17 16:47:05.593 16753-16753 DEBUG pid-16753 A x28 00000077c874e018 x29 00000077c874dbb0
2023-04-17 16:47:05.593 16753-16753 DEBUG pid-16753 A sp 00000077c874d7b0 lr 00000077e59d184c pc 00000078c9c459a8
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A
backtrace:
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #00 pc 00000000000c59a8 (libc.so not found) /apex/com.android.runtime/lib64/bionic/libc.so (tgkill+8) (BuildId: 76160b7be02961a2e357c92bde57eb19)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #01 pc 0000000000c85848 (DebugStringToFilePostprocessedStacktrace(DebugStringToFileData const&) at ??:0) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libunity.so (BuildId: 1ea0e69733fbb791)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #02 pc 0000000000c85dc4 (DebugStringToFile(DebugStringToFileData const&) at ??:0) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libunity.so (BuildId: 1ea0e69733fbb791)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #03 pc 0000000000abb284 (GetGfxDevice() at ??:0) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libunity.so (BuildId: 1ea0e69733fbb791)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #04 pc 00000000004db028 (RenderTexture::GetActive(int) at ??:0) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libunity.so (BuildId: 1ea0e69733fbb791)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #05 pc 00000000004ddaf8 (RenderTexture::Release() at ??:0) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libunity.so (BuildId: 1ea0e69733fbb791)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #06 pc 00000000003f59f8 (RenderTexture_CUSTOM_Release(ScriptingBackendNativeObjectPtrOpaque*) at ??:0) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libunity.so (BuildId: 1ea0e69733fbb791)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #07 pc 000000000183cc08 (Cookie_Finalize_m708693D06A197CBD6B57531F0BFE400692E9361A at E:/UnityProjects/Future/future-vr/Library/Bee/artifacts/Android/il2cppOutput/cpp\Assembly-CSharp.cpp:15313) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libil2cpp.so (BuildId: de4474fddc58361f)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #08 pc 00000000016d7cc0 (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**) at E:/Program Files/Unity/2022.2.14f1/Editor/Data/il2cpp/libil2cpp/vm\Runtime.cpp:604) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libil2cpp.so (BuildId: de4474fddc58361f)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #09 pc 00000000016d7c0c (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) at E:/Program Files/Unity/2022.2.14f1/Editor/Data/il2cpp/libil2cpp/vm\Runtime.cpp:590) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libil2cpp.so (BuildId: de4474fddc58361f)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #10 pc 0000000001747e74 (il2cpp::gc::GarbageCollector::RunFinalizer(void*, void*) at E:/Program Files/Unity/2022.2.14f1/Editor/Data/il2cpp/libil2cpp/gc\GarbageCollector.cpp:178) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libil2cpp.so (BuildId: de4474fddc58361f)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #11 pc 000000000177d784 (GC_invoke_finalizers at E:/Program Files/Unity/2022.2.14f1/Editor/Data/il2cpp/external/bdwgc/extra/…\finalize.c:1315) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libil2cpp.so (BuildId: de4474fddc58361f)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #12 pc 0000000001747dbc (il2cpp::gc::GarbageCollector::InvokeFinalizers() at E:/Program Files/Unity/2022.2.14f1/Editor/Data/il2cpp/libil2cpp/gc\BoehmGC.cpp:461) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libil2cpp.so (BuildId: de4474fddc58361f)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #13 pc 0000000001768524 (il2cpp::os::RunWrapper(void*) at E:/Program Files/Unity/2022.2.14f1/Editor/Data/il2cpp/libil2cpp/os\Thread.cpp:201) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libil2cpp.so (BuildId: de4474fddc58361f)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #14 pc 0000000001740060 (il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) at E:/Program Files/Unity/2022.2.14f1/Editor/Data/il2cpp/libil2cpp/os/Posix\ThreadImpl.cpp:123) /data/app/com.Inovepic.Future-rH7BDUfJ0SqgMbv_siU4Og==/lib/arm64/libil2cpp.so (BuildId: de4474fddc58361f)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #15 pc 00000000000d5c44 (libc.so not found) /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 76160b7be02961a2e357c92bde57eb19)
2023-04-17 16:47:05.594 16753-16753 DEBUG pid-16753 A #16 pc 0000000000082fe4 (libc.so not found) /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 76160b7be02961a2e357c92bde57eb19)
From the stack, it seems to have something to do with the ‘Inovepic’ (Inova EPIC?) third-party plugin/code. You might try testing with it removed (if possible) or contact them about it.
I’ve solved it and the issue indeed was in the code of Inovepic. The problem was in wrong disposing of an objects from scene on scene switch.
1 Like