Forums - help with crash libGLESv2_adreno.so EsxContext ProcessAndSubmitRendering

4 posts / 0 new
Last post
help with crash libGLESv2_adreno.so EsxContext ProcessAndSubmitRendering
Paul_M
Join Date: 29 Apr 16
Posts: 1
Posted: Fri, 2016-04-29 14:59

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
 
  • Up0
  • Down0
mhfeldma Moderator
Join Date: 29 Nov 12
Posts: 310
Posted: Thu, 2016-05-12 10:29

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?

 

  • Up0
  • Down0
zhangshaobing517
Join Date: 24 Aug 16
Posts: 1
Posted: Fri, 2016-09-02 02:21

us also have the same question , like this:

SIGSEGV(SEGV_MAPERR)

 

         #00  pc 001b98cc                          /system/vendor/lib/egl/libGLESv2_adreno.so         #01  pc 000abe2a                          /system/vendor/lib/egl/libGLESv2_adreno.so         #02  pc 000b22c6                          /system/vendor/lib/egl/libGLESv2_adreno.so         #03  pc 0012f2c8                          /system/vendor/lib/egl/libGLESv2_adreno.so         #04  pc 000af1b2                          /system/vendor/lib/egl/libGLESv2_adreno.so         #05  pc 0011626a                          /system/vendor/lib/egl/libGLESv2_adreno.so

 

have  you  solve this problem? or some suggetion ?

  • Up0
  • Down0
alexvlast.1998
Join Date: 11 Apr 20
Posts: 1
Posted: Sun, 2020-04-12 02:29

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.

Fatal Exception: java.lang.Error: FATAL EXCEPTION [main]
Unity version     : 2018.4.15f1
Device model      : Xiaomi Redmi Note 7
Device fingerprint: xiaomi/lavender/lavender:9/PKQ1.180904.001/V11.0.5.0.PFGMIXM:user/release-keys
 
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000001a Build fingerprint: 'xiaomi/lavender/lavender:9/PKQ1.180904.001/V11.0.5.0.PFGMIXM:user/release-keys' Revision: '0' pid: 13894, tid: 14205, name: UnityGfxDeviceW >>> com.Enixan.goldenvalleymobile <<< r0 00000002 r1 00000003 r2 00000000 r3 00000001 r4 caa2a258 r5 caa2a0e4 r6 00001f08 r7 00000000 r8 caa29e00 r9 00000000 sl 00000000 fp 00000000 ip ca920250 sp c9dff448 lr e23f554b pc e23f5fd0 cpsr 0000377d
 at libGLESv2_adreno.EsxRenderBucket::AddUnbucketedEntries(EsxCmdBufType, unsigned int)(AddUnbucketedEntries:131)
       at libGLESv2_adreno.EsxRenderBucket::BucketRenderingCmds(EsxRenderBucketParams*)(BucketRenderingCmds:740)
       at libGLESv2_adreno.EsxContext::BucketRenderingCmds(int)(BucketRenderingCmds:712)
       at libGLESv2_adreno.EsxContext::BindDrawFramebuffer(EsxFramebufferObject*)(BindDrawFramebuffer:178)
       at libGLESv2_adreno.EsxContext::GlBindFramebuffer(unsigned int, unsigned int)(GlBindFramebuffer:272)
       at libunity.012298ec()
       at libunity.0122ae08()
       at libunity.0123281c()
       at libunity.0123368c()
       at libunity.00e70a48()
       at libunity.0060f92c()
       at libunity.0061315c()
       at libunity.006130ec()
       at libunity.0060b72c()
       at libunity.00ad12b0()
       at libc.__pthread_start(void*)(__pthread_start:22)
       at libc.__start_thread(__start_thread:24)

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.