当前位置:网站首页>SWT/ANR问题--AMS/WMS
SWT/ANR问题--AMS/WMS
2022-07-01 01:30:00 【专业开发者】
背景:一些APP频繁异常的操作容易引发的SWT 问题,发生SWT后两次trace可能不是完全一致,这类问题容易表现在ActivityManagerService 和 WindowManagerService 中。
分析过程
( 以WMS relayoutWindow 为例)
1.确认问题时间点(SYS_ANDROID_EVENT_LOG):
08-27 03:55:14.895 1481 1563 I watchdog: Blocked in handler on foreground thread (android.fg)
2.查找对应时间段内两次dump trace(SWT_JBT_TRACES)
1st dump:
"android.fg" Blocked -> "JobScheduler" Blocked -> "Binder:1481_1C" Blocked -> "Binder:1481_F" Blocked -> "Binder:1481_1B" Runnable
2nd dump:
"android.fg" Blocked -> "JobScheduler" Blocked -> "Binder:1481_1C" Blocked -> "Binder:1481_1D" Blocked -> "Binder:1481_D" Runnable
trace特点:
两次trace很相似,但是最后block的线程并不相同,而且是处于 Runnable状态,说明没有block住,只是某些操作耗时太久,导致核心服务hang。<
边栏推荐
- The argument type 'function' can't be assigned to the parameter type 'void function()‘
- (translation) use eyebrow shaped text to improve Title click through rate
- P6773 [NOI2020] 命运(dp、线段树合并)
- laravel+redis 生成订单号-当天从1开始自增
- 思特奇加入openGauss开源社区,共同推动数据库产业生态发展
- 物业怎么发短信通知给业主?
- LabVIEW计算相机图像传感器分辨率以及镜头焦距
- [Office PDF] PDF merging and splitting will free us from the functional limitations of paid software, OK
- Qt5 mvc: revealing the secrets of data visualization
- 工作八年的程序员,却拿着毕业三年的工资,再不开窍就真晚了...
猜你喜欢

计算特殊奖金

AS400 API 从零到一的整个历程

Understanding and application of Qt5 layout in creation

go导入自建包

Sun Yuchen told Swiss media Bilan that the bear market will not last long

Int and bit group turn to each other

After working for 6 years, let's take stock of the golden rule of the workplace where workers mix up

Necessary tools for testing - postman practical tutorial

With one-stop insight into industry hot spots, the new function "traffic market" of feigua data station B is launched!

Creating ASCII art with C #
随机推荐
[queue] 933 Number of Recent Calls
哪有什么未来可期,不过是打工人临死前最后的幻想罢了
The argument type 'function' can't be assigned to the parameter type 'void function()‘
Selenium经典面试题-多窗口切换解决方案
数据探索电商平台用户行为流失分析
股票开户有哪些优惠活动?另外,手机开户安全么?
522. 最长的特殊序列 II
After working for 6 years, let's take stock of the golden rule of the workplace where workers mix up
AS400 大厂面试
VirtualBox 安装增强功能
Some items of OCR
SQL语句关联表 如何添加关联表的条件 [需要null值或不需要null值]
The whole process of AS400 API from zero to one
org.redisson.client.RedisResponseTimeoutException: Redis server response timeout (3000 ms)错误解决
2022年最新csdn涨薪技术栈-app自动化测试概述
【毕业季·进击的技术er】--毕业到工作小结
【Content-Type请求头的内容】
工作八年的程序员,却拿着毕业三年的工资,再不开窍就真晚了...
Sun Yuchen told Swiss media Bilan that the bear market will not last long
zabbix如何配置告警短信?(预警短信通知设置流程)