当前位置:网站首页>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边栏推荐
- 【毕业季·进击的技术er】努力只能及格,拼命才能优秀!
- Jenkins pipeline's handling of job parameters
- [learning notes] Introduction to principal component analysis
- 【学习笔记】聚类分析
- ANR问题--相机相关的debug
- LeetCode每日一题——522. 最长特殊序列 II
- With a market value of $120billion, how did intuit, an old tax giant, do it?
- Can layoffs really save China's Internet?
- How to do a good job in customer's successful bottom design | tob Master Course
- two thousand three hundred and forty-two
猜你喜欢

openGauss内核分析之查询重写

28 rounds of interviews with 10 companies in two and a half years

Win 10 create a gin framework project

SQL server2019 create a new SQL server authentication user name and log in

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

Rsync remote synchronization

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

Visualization of neural network structure in different frames

Data standardization processing

Bluecmsv1.6 code audit
随机推荐
Day88. qiniu cloud: upload house source pictures and user avatars
Please allow the "imperfection" of the current domestic Tob
字符和整数
522. longest special sequence II (greedy & double pointer)
Tcwind mode setting
Lecture 30 linear algebra Lecture 4 linear equations
Use of WC command
Flatten of cnn-lstm
阿里云 MSE 基于 Apache APISIX 的全链路灰度方案实践
券商公司开户哪个最靠谱最安全呢
学习太极创客 — MQTT 第二章(八)ESP8266 MQTT 用户密码认证
T-test (test whether the mean difference between the two populations is significant)
Stability summary
开通挖财账号安全吗?是靠谱的吗?
LeetCode每日一题——522. 最长特殊序列 II
Ref attribute, props configuration, mixin mixing, plug-in, scoped style
Various types of long
【Try to Hack】Cobalt Strike(一)
head、tail查看文件
Automatic operation and maintenance platform based on Apache APIs