I’m using Unity 2022.3.41f1 but this is also reproducible on earlier versions and also Unity 6 Preview.
Randomly my Android App crashes with equal or similar LogCat/Stacktrace
No interaction being done.
Memory profiling on Unity and Logcat shows perfectly stable memory
Tested w/ Vulkan and OpenGLES3
Anyway to extract more details where my code might be failing.
2024/08/09 04:18:24.179 32143 32210 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2024/08/09 04:18:24.179 32143 32210 Error CRASH Version '2022.3.41f1 (0f988161febf)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2024/08/09 04:18:24.179 32143 32210 Error CRASH Build fingerprint: 'Lenovo/LenovoTB-Q706F/Q706F:13/TKQ1.221013.002/S530270_240513_ROW:user/release-keys'
2024/08/09 04:18:24.179 32143 32210 Error CRASH Revision: '0'
2024/08/09 04:18:24.179 32143 32210 Error CRASH ABI: 'arm64'
2024/08/09 04:18:24.179 32143 32210 Error CRASH Timestamp: 2024-08-09 04:18:24.179546415-0300
2024/08/09 04:18:24.179 32143 32210 Error CRASH pid: 32143, tid: 32210, name: UnityGfxDeviceW >>> ai.pdw.trainer <<<
2024/08/09 04:18:24.179 32143 32210 Error CRASH uid: 10376
2024/08/09 04:18:24.179 32143 32210 Error CRASH signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2024/08/09 04:18:24.179 32143 32210 Error CRASH x0 0000000000000000 x1 0000000000007dd2 x2 0000000000000006 x3 000000752af1e290
2024/08/09 04:18:24.179 32143 32210 Error CRASH x4 0080808080808080 x5 0080808080808080 x6 0080808080808080 x7 8080808080808000
2024/08/09 04:18:24.179 32143 32210 Error CRASH x8 00000000000000f0 x9 00000079ae933b70 x10 0000000000000001 x11 00000079ae97378c
2024/08/09 04:18:24.179 32143 32210 Error CRASH x12 0101010101010101 x13 000005a1c5cce1c1 x14 000996c9bc386000 x15 0000000000000050
2024/08/09 04:18:24.179 32143 32210 Error CRASH x16 00000079ae9dbd70 x17 00000079ae9b7420 x18 000000752a1ce000 x19 0000000000007d8f
2024/08/09 04:18:24.179 32143 32210 Error CRASH x20 0000000000007dd2 x21 00000000ffffffff x22 0000000000000000 x23 000000752af1f000
2024/08/09 04:18:24.179 32143 32210 Error CRASH x24 000000000000057a x25 0000000000000000 x26 00000075509f8cdc x27 000000752af1f000
2024/08/09 04:18:24.179 32143 32210 Error CRASH x28 00000075100001cc x29 000000752af1e310
2024/08/09 04:18:24.179 32143 32210 Error CRASH lr 00000079ae9646c8 sp 000000752af1e270 pc 00000079ae9646f4 pst 0000000000001000
2024/08/09 04:18:24.179 32143 32210 Error CRASH backtrace:
2024/08/09 04:18:24.179 32143 32210 Error CRASH #00 pc 00000000000526f4 /apex/com.android.runtime/lib64/bionic/libc.so (abort+168) (BuildId: 2938f6235116cbc48464ee0f7622625e)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #01 pc 00000000000419cc /apex/com.android.runtime/lib64/bionic/libc.so (scudo::map(void*, unsigned long, char const*, unsigned long, scudo::MapPlatformData*)) (BuildId: 2938f6235116cbc48464ee0f7622625e)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #02 pc 0000000000042118 /apex/com.android.runtime/lib64/bionic/libc.so (scudo::reportError(char const*)) (BuildId: 2938f6235116cbc48464ee0f7622625e)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #03 pc 000000000004225c /apex/com.android.runtime/lib64/bionic/libc.so (scudo::reportHeaderRace(void*)) (BuildId: 2938f6235116cbc48464ee0f7622625e)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #04 pc 0000000000043d28 /apex/com.android.runtime/lib64/bionic/libc.so (scudo::Allocator<scudo::AndroidConfig, &(scudo_malloc_postinit)>::deallocate(void*, scudo::Chunk::Origin, unsigned long, unsigned long)+304) (BuildId: 2938f6235116cbc48464ee0f7622625e)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #05 pc 00000000001eee34 /vendor/lib64/libgsl.so (ioctl_kgsl_sharedmem_free+532) (BuildId: a8fc03cfb2095dfe19f58a16397b14e2)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #06 pc 0000000000135db4 /vendor/lib64/hw/vulkan.adreno.so (BuildId: 280718d3727bd46e3b0df0b8b4bcccba)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #07 pc 00000000000862b8 /vendor/lib64/hw/vulkan.adreno.so (qglinternal::vkFreeMemory(VkDevice_T*, VkDeviceMemory_T*, VkAllocationCallbacks const*)+96) (BuildId: 280718d3727bd46e3b0df0b8b4bcccba)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #08 pc 0000000000e5b2c4 /data/app/~~PDpQoYjWfeRyQTwomdVbUg==/ai.pdw.trainer-k3-LT4X7Tjs04TJt2P3zrw==/lib/arm64/libunity.so (vk::Image::ReleaseUnusedResources()+184) (BuildId: 0eddab37b6d9969b)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #09 pc 0000000000e03e54 /data/app/~~PDpQoYjWfeRyQTwomdVbUg==/ai.pdw.trainer-k3-LT4X7Tjs04TJt2P3zrw==/lib/arm64/libunity.so (vk::ResourceDestructionStagingArea::GarbageCollect()+172) (BuildId: 0eddab37b6d9969b)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #10 pc 0000000000e533bc /data/app/~~PDpQoYjWfeRyQTwomdVbUg==/ai.pdw.trainer-k3-LT4X7Tjs04TJt2P3zrw==/lib/arm64/libunity.so (GfxDeviceVK::FlushPools_Internal()+48) (BuildId: 0eddab37b6d9969b)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #11 pc 0000000000e4e6c8 /data/app/~~PDpQoYjWfeRyQTwomdVbUg==/ai.pdw.trainer-k3-LT4X7Tjs04TJt2P3zrw==/lib/arm64/libunity.so (GfxDeviceVK::FlushPools()+280) (BuildId: 0eddab37b6d9969b)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #12 pc 0000000000e4ef68 /data/app/~~PDpQoYjWfeRyQTwomdVbUg==/ai.pdw.trainer-k3-LT4X7Tjs04TJt2P3zrw==/lib/arm64/libunity.so (GfxDeviceVK::SyncLastPresentImpl(bool)+492) (BuildId: 0eddab37b6d9969b)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #13 pc 0000000000e69178 /data/app/~~PDpQoYjWfeRyQTwomdVbUg==/ai.pdw.trainer-k3-LT4X7Tjs04TJt2P3zrw==/lib/arm64/libunity.so (AndroidGfxDeviceVK::SyncLastPresentImpl(bool)+8) (BuildId: 0eddab37b6d9969b)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #14 pc 0000000000e43340 /data/app/~~PDpQoYjWfeRyQTwomdVbUg==/ai.pdw.trainer-k3-LT4X7Tjs04TJt2P3zrw==/lib/arm64/libunity.so (GfxDeviceVK::SetRenderTargetsImpl(GfxRenderTargetSetup const&)+60) (BuildId: 0eddab37b6d9969b)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #15 pc 0000000000fa4d20 /data/app/~~PDpQoYjWfeRyQTwomdVbUg==/ai.pdw.trainer-k3-LT4X7Tjs04TJt2P3zrw==/lib/arm64/libunity.so (GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)+29896) (BuildId: 0eddab37b6d9969b)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #16 pc 0000000000f9d7f0 /data/app/~~PDpQoYjWfeRyQTwomdVbUg==/ai.pdw.trainer-k3-LT4X7Tjs04TJt2P3zrw==/lib/arm64/libunity.so (GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)+84) (BuildId: 0eddab37b6d9969b)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #17 pc 0000000000f9d790 /data/app/~~PDpQoYjWfeRyQTwomdVbUg==/ai.pdw.trainer-k3-LT4X7Tjs04TJt2P3zrw==/lib/arm64/libunity.so (GfxDeviceWorker::Run()+140) (BuildId: 0eddab37b6d9969b)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #18 pc 0000000000f9d514 /data/app/~~PDpQoYjWfeRyQTwomdVbUg==/ai.pdw.trainer-k3-LT4X7Tjs04TJt2P3zrw==/lib/arm64/libunity.so (GfxDeviceWorker::RunGfxDeviceWorker(void*)+4) (BuildId: 0eddab37b6d9969b)
2024/08/09 04:18:24.179 32143 32210 Error CRASH #19 pc 000000000079ef48 /data/app/~~PDpQoYjWfeRyQTwomdVbUg==/ai.pdw.trainer-k3-LT4X7Tjs04TJt2P3zrw==/lib/arm64/libunity.so (Thread::RunThreadWrapper(void*)+1184) (BuildId: 0eddab37b6d9969b)
2024/08/09 04:18:24.180 32143 32210 Error CRASH #20 pc 00000000000ba598 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 2938f6235116cbc48464ee0f7622625e)
2024/08/09 04:18:24.180 32143 32210 Error CRASH #21 pc 0000000000053f3c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 2938f6235116cbc48464ee0f7622625e)
2024/08/09 04:18:24.234 32143 32165 Info ai.pdw.trainer Explicit concurrent copying GC freed 3915(176KB) AllocSpace objects, 1(20KB) LOS objects, 49% free, 2190KB/4381KB, paused 85us,43us total 21.593ms
2024/08/09 04:18:24.381 32143 32210 Error CRASH Forwarding signal 6
0001/01/01 00:00:00.000 -1 -1 Info --------- beginning of crash
2024/08/09 04:18:24.381 32143 32210 Fatal libc Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 32210 (UnityGfxDeviceW), pid 32143 (ai.pdw.trainer)