安卓 11 应用卡死问题 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
liang00
V2EX    Android

安卓 11 应用卡死问题

  •  
  •   liang00 2021-07-24 20:16:51 +08:00 13499 次点击
    这是一个创建于 1592 天前的主题,其中的信息可能已经有所发展或是发生改变。

    请教大家一个问题,手机刷抖音一段时间应用就卡死,重新打开又正常了,可以切换回桌面,其他正常。我用 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.95 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 | 
    8 条回复    2021-08-04 16:26:55 +08:00
    superhxl
        1
    superhxl  
       2021-07-25 04:46:47 +08:00 via Android
    技术不懂,个人感觉是 11 的问题! 1+8,氧系统,升级系统后经常卡死,升级最新版本也无济于事!最近开始重新拾起 brevent,限制后台才好很多!
    h3n6Qx2UB9a4g477
        2
    h3n6Qx2UB9a4g477  
       2021-07-25 06:57:23 +08:00
    skiavk 的 Bug,时间长了会导致媒体密集型的 fd 泄漏,可以尝试修改 build.prop 的 debug.hwui.renderer 的值为 skiagl
    h3n6Qx2UB9a4g477
        3
    h3n6Qx2UB9a4g477  
       2021-07-25 07:08:00 +08:00
    *媒体密集型的应用

    *使用 Vulkan 后端进行 Skia UI 渲染会导致泄漏
    rb6221
        4
    rb6221  
       2021-07-25 16:28:59 +08:00
    你这截图也看不出啥来
    有这空不如 APP 里直接反馈给开发人员 说不定下个版本就修复了
    jjpprrrr
        5
    jjpprrrr  
       2021-07-25 21:39:04 +08:00
    Skia vulkan 的问题,去 build.prop 里把 debug.hwui.renderer 那一条删掉
    twoyuan
        6
    twoyuan  
       2021-07-26 21:32:19 +08:00
    @superhxl #1 我是一加 8T 氧,也是日常无规律卡死,经常遇到系统界面 ANR
    liang00
        7
    liang00  
    OP
       2021-08-04 16:26:15 +08:00
    @Rsplwe 感谢!
    liang00
        8
    liang00  
    OP
       2021-08-04 16:26:55 +08:00
    @jjpprrrr 感谢!
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     1062 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 23ms UTC 23:16 PVG 07:16 LAX 15:16 JFK 18:16
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86