Hi. I found that my app crashes on some Android devices. That devices use Adreno 619 GPU. Here is part of tested device list:
Xperia 10 III (SOG04)
AQUOS sense6 (SH-M19)
AQUOS sense7 (SH-53C)
Galaxy A52 5G (SC-53B)
Logcat shows many of GPU errors like this:
Both Vulkan and OpenGLES3 makes freeze/crashes.
Tested on Unity 6000.0.0b13 and 2023.2.16f1. Reported as IN-72861.
Xiaomi Redmi 8A, 4GB, Adreno 505 (game occupied ~1.2GB)
We have same issue with many GPU errors, but only when ad is called:
06-25 16:27:05.764 16417 17250 W Adreno-GSL: <sharedmem_gpuobj_alloc:2713>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
06-25 16:27:05.766 16417 17250 E Adreno-GSL: <gsl_memory_alloc_pure:2297>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
06-25 16:27:05.766 16417 17250 W Adreno-GSL: <sharedmem_gpuobj_alloc:2713>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
06-25 16:27:05.766 16417 16417 V MediaRouter: Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
06-25 16:27:05.769 16417 17250 E Adreno-GSL: <gsl_memory_alloc_pure:2297>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
06-25 16:27:05.771 16417 17250 W Adreno-GSL: <sharedmem_gpuobj_alloc:2713>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
06-25 16:27:05.773 16417 17250 E Adreno-GSL: <gsl_memory_alloc_pure:2297>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
06-25 16:27:05.775 16417 17250 W Adreno-GSL: <sharedmem_gpuobj_alloc:2713>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
06-25 16:27:05.777 16417 17250 E Adreno-GSL: <gsl_memory_alloc_pure:2297>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
06-25 16:27:05.778 16417 17250 W Adreno-GSL: <sharedmem_gpuobj_alloc:2713>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
06-25 16:27:05.780 16417 17250 E Adreno-GSL: <gsl_memory_alloc_pure:2297>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
…
06-25 16:27:05.825 16417 17250 E OpenGLRenderer: GL error: Out of memory!
06-25 16:27:05.825 16417 17250 F OpenGLRenderer: GL errors! frameworks/base/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp:126
…
06-25 16:27:13.109 17312 17312 E chromium: [17312:17312:20240625,162713.109828:ERROR process_memory_range.cc:75] read out of range
06-25 16:27:13.110 17312 17312 E chromium: [17312:17312:20240625,162713.110082:ERROR process_memory_range.cc:75] read out of range
…
06-25 16:27:13.199 16417 17250 E CRASH : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-25 16:27:13.199 16417 17250 E CRASH : Version ‘2022.3.20f1 (61c2feb0970d)’, Build type ‘Release’, Scripting Backend ‘il2cpp’, CPU ‘armeabi-v7a’
06-25 16:27:13.199 16417 17250 E CRASH : Build fingerprint: ‘Xiaomi/olivelite/olivelite:10/QKQ1.191014.001/V12.5.2.0.QCPMIXM:user/release-keys’
06-25 16:27:13.199 16417 17250 E CRASH : Revision: ‘0’
06-25 16:27:13.199 16417 17250 E CRASH : ABI: ‘arm’
06-25 16:27:13.199 16417 17250 E CRASH : Timestamp: 2024-06-25 16:27:13.199605941+0300
06-25 16:27:13.199 16417 17250 E CRASH : pid: 16417, tid: 17250, name: RenderThread >>> *** <<<
06-25 16:27:13.199 16417 17250 E CRASH : uid: 10249
06-25 16:27:13.199 16417 17250 E CRASH : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
06-25 16:27:13.199 16417 17250 E CRASH : r0 00000000 r1 00004362 r2 00000006 r3 64931b18
06-25 16:27:13.199 16417 17250 E CRASH : r4 64931b2c r5 64931b10 r6 00004021 r7 0000016b
06-25 16:27:13.199 16417 17250 E CRASH : r8 64931b28 r9 64931b18 r10 64931b48 r11 64931b38
06-25 16:27:13.199 16417 17250 E CRASH : ip 00004362 sp 64931ae8 lr b07e9d07 pc b07e9d1a
06-25 16:27:13.200 16417 17250 E CRASH :
06-25 16:27:13.200 16417 17250 E CRASH : backtrace:
06-25 16:27:13.200 16417 17250 E CRASH : #00 pc 0005ed1a /apex/com.android.runtime/lib/bionic/libc.so (abort+166) (BuildId: 940109a4b687bf19a1c73c8c92365f8c)
06-25 16:27:13.200 16417 17250 E CRASH : #01 pc 00005a49 /system/lib/liblog.so (__android_log_assert+176) (BuildId: c44a6fcfe562b3f8a3dca0e76e1af7aa)
06-25 16:27:13.200 16417 17250 E CRASH : #02 pc 001f6b8b /system/lib/libhwui.so (BuildId: 47d233df06f54edf127254bb2eccbd67)
06-25 16:27:13.200 16417 17250 E CRASH : #03 pc 001f5f15 /system/lib/libhwui.so (BuildId: 47d233df06f54edf127254bb2eccbd67)
06-25 16:27:13.200 16417 17250 E CRASH : #04 pc 001f5455 /system/lib/libhwui.so (BuildId: 47d233df06f54edf127254bb2eccbd67)
06-25 16:27:13.200 16417 17250 E CRASH : #05 pc 002029b9 /system/lib/libhwui.so (BuildId: 47d233df06f54edf127254bb2eccbd67)
06-25 16:27:13.201 16417 17250 E CRASH : #06 pc 00202811 /system/lib/libhwui.so (BuildId: 47d233df06f54edf127254bb2eccbd67)
06-25 16:27:13.201 16417 17250 E CRASH : #07 pc 0000d90b /system/lib/libutils.so (android::_threadLoop(void*)+214) (BuildId: 8d87721383c85120f02878beed96ee29)
06-25 16:27:13.201 16417 17250 E CRASH : #08 pc 000a69b7 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20) (BuildId: 940109a4b687bf19a1c73c8c92365f8c)
06-25 16:27:13.201 16417 17250 E CRASH : #09 pc 000601af /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 940109a4b687bf19a1c73c8c92365f8c)