当前位置:网站首页>Anr no response introduction
Anr no response introduction
2022-06-28 20:31:00 【Professional developer】
1.1 summary
If the application does not respond or end execution within a period of time ,Android The system will trigger a “ The application is not responding ”(ANR) Dialog box . Generally speaking , This will happen in the application UI Occurs when a thread cannot process an input event on time because it is performing some work . In particular , Triggered when one of the following conditions is detected ANR Dialog box :
■ The application did not respond to keyboard input or touch screen input for 5 More than seconds .
■ BroadcastReceiver Not in 10 Execution ends within seconds ( The background broadcast is 60 second ).
■ Service or ContentProvider The start operation of is not in 20 Execution ends within seconds ( The background service is 200 second ).
Sometimes ,ANR The dialog box is not displayed after the condition is triggered . This situation is usually caused by internal framework problems , For example, in an application ANR At the same time , There is a deadlock in the active manager or window manager . This situation will eventually lead to Android Watchdog timeout .
1.1.1 Logcat ANR news
When... Is triggered in the application ANR when , It will send a stop signal (SIGABRT) To end the unresponsive application . meanwhile ,logcat The corresponding messages will appear in the main buffer and system buffer of the .
In the main logcat in ,ANR A simple fatal termination signal for the application is displayed , As shown below :
Fatal signal 6 (SIGABRT) at 0x000002e5 (code=0), thread 29715 (com.android.settings)
More detailed ANR Messages can be found in the system logcat View in . It contains important information about unresponsive applications , This should include
Application name 、ANR reason 、CPU Load information and IO Waiting for information .
06-13 15:45:38.923 E/ActivityManager( 654):ANR in com.android.settings
(android/com.andro边栏推荐
- [go language questions] go from 0 to entry 5: comprehensive review of map, conditional sentences and circular sentences
- 28 rounds of interviews with 10 companies in two and a half years
- 2022焊工(初级)特种作业证考试题库及答案
- wc命令的使用
- SQL server2019 create a new SQL server authentication user name and log in
- [learning notes] cluster analysis
- 题解 The SetStack Computer(UVa12096)紫书P116STL的综合应用
- The principle and source code analysis of Lucene index construction
- ANR分析--问题1
- T-test (test whether the mean difference between the two populations is significant)
猜你喜欢

APISIX 助力中东社交软件,实现本地化部署
How to recover after Oracle delete accidentally deletes table data

应用实践 | 10 亿数据秒级关联,货拉拉基于 Apache Doris 的 OLAP 体系演进(附 PPT 下载)

方 差 分 析

CSDN salary increase technology selenium automated test stack summary

阿里云 MSE 基于 Apache APISIX 的全链路灰度方案实践

2022 welder (elementary) special operation certificate examination question bank and answers

学习太极创客 — MQTT 第二章(八)ESP8266 MQTT 用户密码认证

社招两年半10个公司28轮面试面经

UESTC (shenhengtao team) & JD AI (Mei Tao team) proposed a structured dual stream attention network for video Q & A, with performance SOTA! Better than the method based on dual video representation
随机推荐
ANR问题--相机相关的debug
CSDN salary increase technology selenium automated test stack summary
输入和输出字符型数据
Explanation of memory dump triggered by software watchdog and anr
基于 Apache APISIX 的自动化运维平台
员工薪资管理系统
28 rounds of interviews with 10 companies in two and a half years
With a market value of $120billion, how did intuit, an old tax giant, do it?
Relevant calculation of sphere, etc
LeetCode每日一题——324. 摆动排序 II
怎么理解云原生数据库的易用性?
数据资产为王,如何解析企业数字化转型与数据资产管理的关系?
Please allow the "imperfection" of the current domestic Tob
two thousand three hundred and forty-two
学习太极创客 — MQTT 第二章(七)ESP8266 MQTT 遗嘱应用
不同框架的绘制神经网络结构可视化
On the complexity of software development and the way to improve its efficiency
穩定性總結
odoo15 Module operations are not possible at this time, please try again later or contact your syste
Comparisonchain file name sort