Forums - glDrawArrays crashed when i use fbo

4 posts / 0 new
Last post
glDrawArrays crashed when i use fbo
mozushixin
Join Date: 15 Oct 22
Posts: 3
Posted: Sun, 2022-10-16 01:26

AdrenoGLES Info:

AdrenoGLES-0: 
QUALCOMM build                   : fa3b9353c9, Ib62fda793a
Build Date                       : 03/15/22
OpenGL ES Shader Compiler Version: EV031.36.08.06
Local Branch                     : 
Remote Branch                    : 
Remote Branch                    : 
Reconstruct Branch               : 
AdrenoGLES-0: Build Config                     : S P 12.1.1 AArch64
AdrenoGLES-0: Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
AdrenoGLES-0: Driver Version                   : 0613.0
AdrenoGLES-0: PFP: 0x01730142, ME: 0x00000000
 
Crash Info:
 
DEBUG: signal 11 (SIGSEGV), code 0 (SI_USER), fault addr --------
DEBUG:     x0  0000000000000000  x1  0000000000000001  x2  0000000000000000  x3  0000007e9bfd7868
DEBUG:     x4  0000007df76c1db8  x5  0000000000000026  x6  0000007eb182ebb0  x7  0000000000000001
DEBUG:     x8  0000000000000008  x9  0000000000000001  x10 5665636166727553  x11 0000000000000013
DEBUG:     x12 000000000000000d  x13 0000000000000000  x14 0000000000000008  x15 0000007deede1cc0
DEBUG:     x16 0000007e9bfe9568  x17 0000000000000000  x18 0000007de260a000  x19 0000000000000001
DEBUG:     x20 0000007d50f81180  x21 0000007eb18bf580  x22 0000000000000000  x23 0000000000000001
DEBUG:     x24 0000000000000000  x25 0000000000000001  x26 0000007e4c709680  x27 0000007dc22031f0
DEBUG:     x28 0000000000000006  x29 0000007df6415000
DEBUG:     lr  0000007e9be50980  sp  0000007df6415000  pc  0000007e9be5098c  pst 0000000020001000
DEBUG: backtrace:
DEBUG:       #00 pc 000000000022d98c  /vaendor/lib64/egl/libGLESv2_adreno.so (!!!0000!44e6cf2d5367acd14cfb232e5f66a9!db3d445dbc!+596) (BuildId: c8ff05ee7770eabb902f5e18c4c04e0a)
DEBUG:       #01 pc 00000000003969c8  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!8c9f5a62f5a016bcd3b71c1e0c3a1d!db3d445dbc!+456) (BuildId: c8ff05ee7770eabb902f5e18c4c04e0a)
DEBUG:       #02 pc 0000000000386c5c  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!f56be09eb88f86833124f1df42e945!db3d445dbc!+24532) (BuildId: c8ff05ee7770eabb902f5e18c4c04e0a)
DEBUG:       #03 pc 0000000000176ad8  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!6b200851123c7898055fe62ff9f71f!db3d445dbc!+616) (BuildId: c8ff05ee7770eabb902f5e18c4c04e0a)
DEBUG:       #04 pc 000000000015ca6c  /vendor/lib64/egl/libGLESv2_adreno.so (!!!0000!28254c066fd778faffa7894b1bd8b1!db3d445dbc!+196) (BuildId: c8ff05ee7770eabb902f5e18c4c04e0a)
DEBUG:       #05 pc 00000000001a8d90  /system/framework/arm64/boot-framework.oat (art_jni_trampoline+112) (BuildId: 897daab1b73ac060fa6973ed3376419b40653cca)
DEBUG:       #06 pc 00000000020103e4  /memfd:jit-cache (deleted) (com.koi.opengl.filter.VideoTextureFilter.doDraw+916)
DEBUG:       #07 pc 000000000201b998  /memfd:jit-cache (deleted) (com.koi.opengl.filter.VideoTextureFilter.draw+328)
DEBUG:       #08 pc 0000000002032188  /memfd:jit-cache (deleted) (com.koi.opengl.MutilFboRecordRender.onDrawFrame+2440)
 
  • Up0
  • Down0
mozushixin
Join Date: 15 Oct 22
Posts: 3
Posted: Sun, 2022-10-16 01:33

it not crashed current,until 10-60min 

GLES30.glActiveTexture(GLES30.GL_TEXTURE0)

GLES30.glBindTexture(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, mTextureId)

val mTextureHandler = GLES30.glGetUniformLocation(mProgram, "uTexture")
GLES30.glUniform1i(mTextureHandler, 0)

GLES30.glTexParameterf(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, GLES30.GL_TEXTURE_MIN_FILTER, GLES30.GL_LINEAR.toFloat())
GLES30.glTexParameterf(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, GLES30.GL_TEXTURE_MAG_FILTER, GLES30.GL_LINEAR.toFloat())
GLES30.glTexParameteri(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, GLES30.GL_TEXTURE_WRAP_S, GLES30.GL_CLAMP_TO_EDGE)
GLES30.glTexParameteri(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, GLES30.GL_TEXTURE_WRAP_T, GLES30.GL_CLAMP_TO_EDGE)
val mVertexPosHandler = GLES30.glGetAttribLocation(mProgram, "aPosition")
GLES30.glEnableVertexAttribArray(mVertexPosHandler)
val mTexturePosHandler = GLES30.glGetAttribLocation(mProgram, "aCoordinate")
GLES30.glEnableVertexAttribArray(mTexturePosHandler)
val mVertexMatrixHandler = GLES30.glGetUniformLocation(mProgram, "uMatrix")
GLES30.glUniformMatrix4fv(mVertexMatrixHandler, 1, false, matrixMode?.mMatrix, 0)
GLES30.glVertexAttribPointer(mVertexPosHandler, 2, GLES30.GL_FLOAT, false, 0, mVertexBuffer)
GLES30.glVertexAttribPointer(mTexturePosHandler, 2, GLES30.GL_FLOAT, false, 0, mTextureBuffer)
GLES30.glDrawArrays(GLES30.GL_TRIANGLE_STRIP, 0, 4)
GLES30.glDisableVertexAttribArray(mVertexPosHandler)
GLES30.glDisableVertexAttribArray(mTexturePosHandler)
  • Up0
  • Down0
DuBo
Join Date: 9 Dec 13
Posts: 72
Posted: Tue, 2022-11-29 23:13

Dear Customer

Your current GFX adreno driver is a bit of old, which is released in 8 months ago.

QUALCOMM build                   : fa3b9353c9, Ib62fda793a
Build Date                       : 03/15/22
 

What device are you using? Is it a rooted device, or non-rooted device?
 

Thanks
Bob Du

  • Up0
  • Down0
mozushixin
Join Date: 15 Oct 22
Posts: 3
Posted: Mon, 2022-12-05 21:45

Motorola XT2153-1 Android12 ,not root;

Xiaomi 11, not root.

 

  • 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.