You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

嵌入式系统Docker容器中Android 12启动异常排查求助

Android 12容器启动故障排查求助

背景

  • 运行环境:ArmV8架构板卡,Buildroot定制嵌入式Linux,Docker容器内部署原生Android 12
  • 现象:两块同款SoC板卡(硬件一致、固件不同),使用相同Docker镜像,一块可正常启动Android桌面,另一块仅能进入Android终端,执行pm命令报错cmd: Can't find service: package.

日志排查结果

通过bugreportz分析日志,发现启动开机动画时SurfaceFlinger崩溃,日志如下:

05-08 05:21:34.489  1003    62   136 D BootAnimation: BootAnimationShownTiming start time: 310040ms
--------- beginning of crash
05-08 05:21:34.516  1000    61    61 F libc    : system/libfmq/include/fmq/MessageQueueBase.h:610: assertion "mReadPtr is null" failed
05-08 05:21:34.517  1000    61    61 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 61 (surfaceflinger), pid 61 (surfaceflinger)
05-08 05:21:34.663  root   191   191 I gsid    : no DSU: No such file or directory
05-08 05:21:34.669  1000   158   158 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-08 05:21:34.669  1000   158   158 F DEBUG   : Build fingerprint: 'rockchip/rk3588/rk3588:12/SQ3A.220605.009.B1/lisd12291420:userdebug/release-keys'
05-08 05:21:34.669  1000   158   158 F DEBUG   : Revision: '0'
05-08 05:21:34.669  1000   158   158 F DEBUG   : ABI: 'arm64'
05-08 05:21:34.669  1000   158   158 F DEBUG   : Timestamp: 2023-05-08 05:21:34.551424227+0000
05-08 05:21:34.669  1000   158   158 F DEBUG   : Process uptime: 2s
05-08 05:21:34.669  1000   158   158 F DEBUG   : Cmdline: /system/bin/surfaceflinger
05-08 05:21:34.669  1000   158   158 F DEBUG   : pid: 61, tid: 61, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
05-08 05:21:34.669  1000   158   158 F DEBUG   : uid: 1000
05-08 05:21:34.669  1000   158   158 F DEBUG   : tagged_addr_ctrl: 0000000000000001
05-08 05:21:34.669  1000   158   158 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
05-08 05:21:34.669  1000   158   158 F DEBUG   : Abort message: 'system/libfmq/include/fmq/MessageQueueBase.h:610: assertion "mReadPtr is null" failed'

故障系统当前运行的服务列表中无SurfaceFlinger:

image:android.hardware.light.ILights/default
android.hardware.power.IPower/default
android.security.apc
android.security.authorization
android.security.compat
android.security.identity
android.security.legacykeystore
android.security.maintenance
android.security.metrics
android.service.gatekeeper.IGateKeeperService
android.system.keystore2.IKeystoreService/default
drm.drmManager
idmap
incident
installd
manager
media.extractor
media.metrics
stats
storaged
storaged_pri
suspend_control
suspend_control_internal
vold

求助内容

  • 针对SurfaceFlinger的FMQ断言崩溃,提供具体排查方向与技巧
  • 确认该崩溃是否会导致后续核心服务(如package服务)无法初始化
  • 指导如何高效对比正常/故障系统的bugreport日志,定位根因

内容的提问来源于stack exchange,提问作者Lucky Mike

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.22 10:07:01