Hi,
I'm working on an Android app, and while testing it on Android 6.x Marshmellow devices I keep getting a crash in libGLESv2_adreno.so. Nothing in the backtrace is code from my app, so I'm not sure how to debug it. Any help is appreciated.
I can provide .apk and steps to reproduce.
Crash on Xiaomi MI5 with Android 6.0 has this backtrace:
04-28 12:36:49.029 743 743 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2d4
04-28 12:36:49.051 743 743 F DEBUG : r0 d7242000 r1 00000001 r2 00000000 r3 00000006
04-28 12:36:49.051 743 743 F DEBUG : r4 00000000 r5 00000000 r6 d20d03c0 r7 00000001
04-28 12:36:49.052 743 743 F DEBUG : r8 00000000 r9 00000000 sl d7242000 fp d20ce000
04-28 12:36:49.052 743 743 F DEBUG : ip e92c5541 sp d2217fb8 lr 00000000 pc e91e2bae cpsr 000f0030
04-28 12:36:49.065 743 743 F DEBUG :
04-28 12:36:49.065 743 743 F DEBUG : backtrace:
04-28 12:36:49.065 743 743 F DEBUG : #00 pc 00111bae /system/vendor/lib/egl/libGLESv2_adreno.so (EsxRenderBucket::AddUnbucketedEntries(EsxCmdBufType, unsigned int)+397)
04-28 12:36:49.065 743 743 F DEBUG : #01 pc 000cb275 /system/vendor/lib/egl/libGLESv2_adreno.so (EsxContext::ProcessAndSubmitRendering(EsxFlushReason)+3604)
04-28 12:36:49.065 743 743 F DEBUG : #02 pc 00147531 /system/vendor/lib/egl/libGLESv2_adreno.so (EsxCmdMgr::Flush(EsxFlushReason)+464)
04-28 12:36:49.065 743 743 F DEBUG : #03 pc 000c81f3 /system/vendor/lib/egl/libGLESv2_adreno.so (EsxContext::SwapBuffers(EsxRect const*, unsigned int)+114)
04-28 12:36:49.065 743 743 F DEBUG : #04 pc 0012ebd7 /system/vendor/lib/egl/libGLESv2_adreno.so (EglContext::SwapBuffers(EsxRect const*, unsigned int)+54)
04-28 12:36:49.065 743 743 F DEBUG : #05 pc 00139f31 /system/vendor/lib/egl/libGLESv2_adreno.so (EglWindowSurface::PerformContextSwapOperation(EglContext*, EsxRect const*, unsigned int, EglResourceAccessInfo*)+48)
04-28 12:36:49.055 743 743 W debuggerd: type=1400 audit(0.0:708): avc: denied { read } for name="kgsl-3d0" dev="tmpfs" ino=13629 scontext=u:r:debuggerd:s0 tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=0
04-28 12:36:49.065 743 743 F DEBUG : #07 pc 0012b531 /system/vendor/lib/egl/libGLESv2_adreno.so (EglApi::SwapBuffers(void*, void*)+112)
04-28 12:36:49.065 743 743 F DEBUG : #08 pc 00015ecb /system/lib/libEGL.so (eglSwapBuffersWithDamageKHR+326)
04-28 12:36:49.065 743 743 F DEBUG : #09 pc 0006083b /system/lib/libandroid_runtime.so
04-28 12:36:49.065 743 743 F DEBUG : #10 pc 746c1279 /data/dalvik-cache/arm/
system@framework@boot.oat (offset 0x2378000)
Samsung Note Edge 5 with Android 6 crashes with this:
04-28 18:27:24.215 390 390 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x228
04-28 18:27:24.225 3439 4897 I GCM : GCM message com.oncam.android 0:1461848242122941%4de1ee64f9fd7ecd
04-28 18:27:24.225 1056 3193 V AlarmManager: remove PendingIntent] PendingIntent{4ad92d8: PendingIntentRecord{f103ed3 com.google.android.gms broadcastIntent}}
04-28 18:27:24.235 2171 2171 D PhoneStatusBarView: Rotation 0
04-28 18:27:24.245 390 390 F DEBUG : r0 8e0058ec r1 00001f9e r2 00000800 r3 00000001
04-28 18:27:24.245 390 390 F DEBUG : r4 8e005700 r5 8f762000 r6 8e3bf1b4 r7 00000001
04-28 18:27:24.245 390 390 F DEBUG : r8 8e3befa8 r9 00000000 sl 00000000 fp 8e3bf174
04-28 18:27:24.245 390 390 F DEBUG : ip a79aaa61 sp 8e3bef80 lr a79abb9f pc a79abba2 cpsr 800f0030
04-28 18:27:24.245 400 18563 W QCamera2HWI: processMetaCallback: lls not enabled, no ops here
04-28 18:27:24.245 2171 2171 D PhoneStatusBarView: Rotation 0
04-28 18:27:24.255 390 390 F DEBUG :
04-28 18:27:24.255 390 390 F DEBUG : backtrace:
04-28 18:27:24.255 390 390 F DEBUG : #00 pc 000b2ba2 /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN10EsxContext15WriteBinScissorE13EsxRenderModeP10EsxBinDataP15EsxRenderBucketii+193)
04-28 18:27:24.255 390 390 F DEBUG : #01 pc 000b901f /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN10EsxContext25ProcessAndSubmitRenderingE14EsxFlushReason+1822)
04-28 18:27:24.255 390 390 F DEBUG : #02 pc 0013ba11 /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN9EsxCmdMgr5FlushE14EsxFlushReason+496)
04-28 18:27:24.255 390 390 F DEBUG : #03 pc 000b65a1 /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN10EsxContext11SwapBuffersEPK7EsxRectj+128)
04-28 18:27:24.255 390 390 F DEBUG : #04 pc 001221e7 /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN10EglContext11SwapBuffersEPK7EsxRectj+70)
04-28 18:27:24.255 390 390 F DEBUG : #05 pc 0012dc57 /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN16EglWindowSurface27PerformContextSwapOperationEP10EglContextPK7EsxRectjP21EglResourceAccessInfo+54)
04-28 18:27:24.255 390 390 F DEBUG : #06 pc 0012dd31 /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN16EglWindowSurface11SwapBuffersEP10EglContextPK7EsxRectj+48)
04-28 18:27:24.255 390 390 F DEBUG : #07 pc 0011e8fb /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN6EglApi11SwapBuffersEPvS0_+122)
04-28 18:27:24.255 390 390 F DEBUG : #08 pc 000178b7 /system/lib/libEGL.so (eglSwapBuffersWithDamageKHR+326)
04-28 18:27:24.255 390 390 F DEBUG : #09 pc 0006580b /system/lib/libandroid_runtime.so
04-28 18:27:24.255 390 390 F DEBUG : #10 pc 03a64d91 /system/framework/arm/boot.oat (offset 0x2f4d000)
04-28 18:27:24.285 2171 2171 D PhoneStatusBarView: Rotation 0
04-28 18:27:24.295 2171 2171 D PhoneStatusBarView: Rotation 0
04-28 18:27:24.295 2171 2171 D PhoneStatusBarView: Rotation 0
Hi Paul...
Providing an apk and repro instructions will be helpful..
Any clues on where in your app the crashes occurs?
Have you updated your drivers to the most recent ones available?
Are there any devices that the apk runs fine on?
us also have the same question , like this:
have you solve this problem? or some suggetion ?
Yes, we all have the same issue. There is no reproduce, kinda no special event for that, all logs leeding to different places of app.