Forums - Adreno show mem_alloc_pure failed

2 posts / 0 new
Last post
Adreno show mem_alloc_pure failed
roc
Join Date: 31 Dec 21
Posts: 1
Posted: Fri, 2021-12-31 00:46
There is an Android ANR on QCOM 8155 platform, seems like there is something wrong with GPU rendering, and at that time show many lremote mem_alloc_pure failed log, 
 
What does "failed: -4" mean and why should cause this fail ?  Thanks! 
 
12-17 16:19:11.751   541   541 E Adreno-GSL_RPC: <gsl_memory_alloc_rpc:3683>: remote mem_alloc_pure failed: -4
12-17 16:19:12.362   541   541 E Adreno-GSL_RPC: <gsl_memory_alloc_rpc:3683>: remote mem_alloc_pure failed: -4
12-17 16:19:12.364   541   541 E Adreno-GSL_RPC: <gsl_memory_alloc_rpc:3683>: remote mem_alloc_pure failed: -4
12-17 16:19:12.372   541   541 E Adreno-GSL_RPC: <gsl_memory_alloc_rpc:3683>: remote mem_alloc_pure failed: -4
12-17 16:19:12.978   541   541 E Adreno-GSL_RPC: <gsl_memory_alloc_rpc:3683>: remote mem_alloc_pure failed: -4
12-17 16:19:12.985   541   541 E Adreno-GSL_RPC: <gsl_memory_alloc_rpc:3683>: remote mem_alloc_pure failed: -4
12-17 16:19:13.640   541   541 E Adreno-GSL_RPC: <gsl_memory_alloc_rpc:3683>: remote mem_alloc_pure failed: -4
12-17 16:19:13.646   541   541 E Adreno-GSL_RPC: <gsl_memory_alloc_rpc:3683>: remote mem_alloc_pure failed: -4
12-17 16:19:13.709  1842  2518 E Adreno-GSL_RPC: <gsl_memory_alloc_rpc:3683>: remote mem_alloc_pure failed: -4
 
  • Our libGLES version:
  •  
/vendor/lib64/egl/libGLESv2_adreno.so: ELF shared object, 64-bit LSB arm64, for Android 28, BuildID=25e0aa950c7776d16e231a4362a78e46, stripped
 
ANR Trace as follows: 
 
"main" prio=5 tid=1 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x73df0ef8 self=0xed148000
          | sysTid=1842 nice=-10 cgrp=default sched=0/0 handle=0xf0d32494
          | state=S schedstat=( 39523421649 37614711444 239360 ) utm=2879 stm=1073 core=1 HZ=100
          | stack=0xff611000-0xff613000 stackSize=8MB
| held mutexes=
          kernel: (couldn't read /proc/self/task/1842/stack)
  native: #00 pc 00019d74  /system/lib/libc.so (syscall+28)
  native: #01 pc 0001d235  /system/lib/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+88)
  native: #02 pc 000633b3  /system/lib/libc.so (pthread_cond_wait+32)
  native: #03 pc 003759db  /system/lib/libhwui.so (android::uirenderer::renderthread::DrawFrameTask::postAndWait()+174)
  native: #04 pc 00375909  /system/lib/libhwui.so (android::uirenderer::renderthread::DrawFrameTask::drawFrame()+24)
  at android.view.ThreadedRenderer.nSyncAndDrawFrame(Native method)
  at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:823)
  at android.view.ViewRootImpl.draw(ViewRootImpl.java:3414)
  at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3201)
  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2553)
  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1517)
  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7301)
  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
  at android.view.Choreographer.doCallbacks(Choreographer.java:761)
  at android.view.Choreographer.doFrame(Choreographer.java:696)
  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
  at android.os.Handler.handleCallback(Handler.java:873)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:193)
  at android.app.ActivityThread.main(ActivityThread.java:6734)
  at java.lang.reflect.Method.invoke(Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)


"RenderThread" daemon prio=7 tid=21 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x12c81498 self=0xec451000
          | sysTid=2518 nice=-10 cgrp=default sched=0/0 handle=0xcdb4b970
          | state=S schedstat=( 98412518439 77192289665 591031 ) utm=6822 stm=3018 core=1 HZ=100
          | stack=0xcda50000-0xcda52000 stackSize=1010KB
| held mutexes=
          kernel: (couldn't read /proc/self/task/2518/stack)
  native: #00 pc 00053f7c  /system/lib/libc.so (__ioctl+8)
  native: #01 pc 00021c31  /system/lib/libc.so (ioctl+36)
  native: #02 pc 0003d5f7  /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+206)
  native: #03 pc 0003e003  /system/lib/libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*)+26)
  native: #04 pc 0003725d  /system/lib/libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+36)
  native: #05 pc 0004cde3  /system/lib/libgui.so (android::BpGraphicBufferProducer::dequeueBuffer(int*, android::sp<android::Fence>*, unsigned int, unsigned int, int, unsigned long long, unsigned long long*, android::FrameEventHistoryDelta*)+122)
  native: #06 pc 000589a3  /system/lib/libgui.so (android::Surface::dequeueBuffer(ANativeWindowBuffer**, int*)+306)
  native: #07 pc 00005b3f  /vendor/lib/egl/eglSubDriverAndroid.so (???)
  native: #08 pc 00005fd7  /vendor/lib/egl/eglSubDriverAndroid.so (???)
  native: #09 pc 000e7ddb  /vendor/lib/egl/libGLESv2_adreno.so (!!!0000!59bef17764eba5e897c3f9ebcb5264!0ffc86f!+314)
  native: #10 pc 000d6749  /vendor/lib/egl/libGLESv2_adreno.so (!!!0000!76a447c8b7e9705dc6af2d47a4b56b!0ffc86f!+64)
  native: #11 pc 0000cc6d  /system/lib/libEGL.so (eglQuerySurface+156)
  native: #12 pc 00376809  /system/lib/libhwui.so (android::uirenderer::renderthread::EglManager::beginFrame(void*)+80)
  native: #13 pc 00372399  /system/lib/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::getFrame()+8)
  native: #14 pc 0009a92f  /system/lib/libhwui.so (android::uirenderer::renderthread::CanvasContext::draw()+62)
  native: #15 pc 00375dfb  /system/lib/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+942)
  native: #16 pc 0033d5af  /system/lib/libhwui.so (android::uirenderer::WorkQueue::process()+122)
  native: #17 pc 000a38bb  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+178)
  native: #18 pc 0000c147  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+166)
  native: #19 pc 00063c85  /system/lib/libc.so (__pthread_start(void*)+22)
  native: #20 pc 0001e085  /system/lib/libc.so (__start_thread+22)
          (no managed stack frames)
 
  • Up0
  • Down0
DuBo
Join Date: 9 Dec 13
Posts: 41
Posted: Fri, 2022-02-11 07:12

This looks like a complicated issue, we need to debug it with OEM on their device, it cannot be simply answered on this forum.

QCOM 8155 platform seems AUTO platform, not Mobile phone.

Thanks
Bob Du

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