当前位置:网站首页>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。<
边栏推荐
- (translation) use eyebrow shaped text to improve Title click through rate
- 7-2 punch in reward DP for puzzle a
- Working for eight years as a programmer, but with a salary of three years after graduation, it's too late to be enlightened again
- How to select securities companies? In addition, is it safe to open a mobile account?
- Ks009 implementation of pet management system based on SSH
- QML控件类型:ToolTip
- Some items of OCR
- Upstream and downstream in software development
- 45 year old programmer tells you: why do programmers want to change jobs? It's too true
- Necessary tools for testing - postman practical tutorial
猜你喜欢

What other hot spots are hidden under 1500W playback? Station B 2 future trends you can't miss

7-2 punch in reward DP for puzzle a

亲测有效,快速创建JMeter桌面快捷方式
![[fundamentals of wireless communication-15]: illustrated mobile communication technology and application development-3-overview of digital communication 2G GSM, CDMA, 3G wdcma/cdma200/td-scdma, 4G LTE](/img/22/1efa444220131359b06005f597c9db.png)
[fundamentals of wireless communication-15]: illustrated mobile communication technology and application development-3-overview of digital communication 2G GSM, CDMA, 3G wdcma/cdma200/td-scdma, 4G LTE

QML控件类型:ToolTip

gin_ gorm

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

Leetcode 面试题 17.10. 主要元素

Machine learning 10 belief Bayesian classifier
2022年最新csdn涨薪技术栈-app自动化测试概述
随机推荐
Mysql database foundation: process control
522. 最长的特殊序列 II
聚焦绿色低碳,数据中心散热进入“智能冷却”新时代
AS400 大廠面試
Laravel event & subscription
Template: globally balanced binary tree
[fundamentals of wireless communication-15]: illustrated mobile communication technology and application development-3-overview of digital communication 2G GSM, CDMA, 3G wdcma/cdma200/td-scdma, 4G LTE
计算特殊奖金
MYSQL 数据库查看磁盘占用情况
软件测试的可持续发展,必须要学会敲代码?
Laravel event & Monitoring
C#生成putty格式的ppk文件(支持passphrase)
修复表中的名字(首字符大写,其他小写)
Use of laravel carbon time processing class
SQL语句关联表 如何添加关联表的条件 [需要null值或不需要null值]
AS400 大厂面试
AS400 large factory interview
【Content-Type请求头的内容】
MySQL insert \ pre update + judgment condition
[JS adds attributes to elements: setAttribute; classlist.remove; classlist.add;]