安卓 11 应用卡死问题
请教大家一个问题,手机刷抖音一段时间应用就卡死,重新打开又正常了,可以切换回桌面,其他正常。我用 adb logcat 看了对应时间点的日志,图像缓冲内存不足?有没有给分析一下是什么原因导致。先谢谢了!
[ 07-24 19:42:00.985 17287:17322 E/AHardwareBuffer ]
GraphicBuffer(w=1, h=1, lc=1) failed (Out of memory), handle=0x0
[ 07-24 19:42:00.985 17287:17322 W/OpenGLRenderer ]
Failed to allocate scratch buffer, error=-12
[ 07-24 19:42:00.985 17287:17322 E/OpenGLRenderer ]
dequeueBuffer failed: Function not implemented (-38)
[ 07-24 19:42:00.985 17287:17322 E/OpenGLRenderer ]
VulkanSurface::dequeueNativeBuffer called with an invalid surface!
[ 07-24 19:42:00.988 17287:17322 E/Parcel ]
fcntl(F_DUPFD_CLOEXEC) failed in Parcel::read, i is 1, fds[i] is -1, fd_count is 2, error: Too many open files
[ 07-24 19:42:00.988 17287:17322 E/Surface ]
dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
[ 07-24 19:42:00.989 17287:17322 W/OpenGLRenderer ]
dequeueBuffer failed, error = -22; switching to fallback
[ 07-24 19:42:00.989 17287:17322 E/qdgralloc ]
importBuffer: Unable to clone handle
[ 07-24 19:42:00.989 17287:17322 E/GraphicBufferAllocator ]
Failed to allocate (1 x 1) layerCount 1 format 1 usage 10000b00: 5
[ 07-24 19:42:00.996 17287:17322 D/GraphicBufferAllocator ]
GraphicBufferAllocator buffers:
0x98589a90: unknown | 720 ( 768) x 1280 | 1 | 7FA30C06 | 0x20002900 | SurfaceTexture-1-17287-24
0x98787190: unknown | 720 ( 768) x 1280 | 1 | 7FA30C06 | 0x20002900 | SurfaceTexture-1-17287-24
0x9878ec90: 9766.00 KiB | 1156 (1216) x 2056 | 1 | 2 | 0x10000100 | SurfaceTexture-0-17287-132
0x98791d10: 9766.00 KiB | 1156 (1216) x 2056 | 1 | 2 | 0x10000100 | SurfaceTexture-0-17287-131
0x98796290: unknown | 720 ( 768) x 1280 | 1 | 7FA30C06 | 0x20002900 | SurfaceTexture-1-17287-24
0x99825110: unknown | 720 ( 768) x 1280 | 1 | 7FA30C06 | 0x20002900 | SurfaceTexture-1-17287-24
0x99831290: unknown | 720 ( 768) x 1280 | 1 | 7FA30C06 | 0x20002900 | SurfaceTexture-1-17287-24
0x99832d90: unknown | 720 ( 768) x 1280 | 1 | 7FA30C06 | 0x20002900 | SurfaceTexture-1-17287-24
0x9983ab10: unknown | 720 ( 768) x 1280 | 1 | 7FA30C06 | 0x20002900 | SurfaceTexture-1-17287-24
0xa3730610: unknown | 720 ( 768) x 1280 | 1 |
6 条回复 • 2021-07-26 21:32:19 +08:00
1
superhxl 4 天前 via Android 技术不懂,个人感觉是 11 的问题! 1+8,氧系统,升级系统后经常卡死,升级*新版本也无济于事!*近开始重新拾起 brevent,限制后台才好很多!
|
2
Rsplwe 4 天前 skiavk 的 Bug,时间长了会导致媒体密集型的 fd 泄漏,可以尝试修改 build.prop 的 debug.hwui.renderer 的值为 skiagl
|
3
Rsplwe 4 天前 *媒体密集型的应用
*使用 Vulkan 后端进行 Skia UI 渲染会导致泄漏 |
4
janus77 4 天前 你这截图也看不出啥来
有这空不如 APP 里直接反馈给开发人员 说不定下个版本就修复了 |
5
jjpprrrr 3 天前 Skia vulkan 的问题,去 build.prop 里把 debug.hwui.renderer 那一条删掉
|
6
twoyuan 2 天前 @superhxl #1 我是一加 8T 氧,也是日常无规律卡死,经常遇到系统界面 ANR
|