SWT/ANR问题--ANR/JE引发SWT

问题背景:

执行monkey测试,手机测试报告出现2次swt报错,初步分析是dump trace卡死无返回,引起swt

分析过程:

拿到SWT db,查看__exp_main.txt:

Trigger time:[2018-11-21 17:30:08.126598] pid:1012

Backtrace: 
Time: 2018-11-21 17:30:07
Process: system_server
Subject: Blocked in handler on ActivityManager (ActivityManager)

我们看ActivityManager发生了什么事情,你要搜索SWT_JBT_TRACES里的ActivityManager thread,从__exp_main.txt找到ActivityManager对应的tid 1026.

找SWT时间附近的几次调用栈,看是否死锁或响应慢,搜索关键字sysTid=1026,有找到3笔记录:

----- pid 1012 at 2018-11-21 17:29:40 -----
Cmd line: system_server
......
"ActivityManager" prio=5 tid=11 Native
 | group="main" sCount=1 dsCount=0 flags=1 obj=0x12e02050 self=0x7238f3d800
 | sysTid=1026 nice=-2 cgrp=default sched=0/0 handle=0x722844c4f0
 | state=S schedstat

你可能感兴趣的:(稳定性问题,大数据)