ANR Analysis _anr

Source: Internet
Author: User

Analysis steps

1. __exp_main.txt see that process appears ANR, find the process ID


2. Sys_android_event_log search "Am_anr", if multiple, the process ID obtained through step 1 to distinguish which one is needed, and then can find the corresponding point in time


3. Swt_jbt_traces search appears ANR process ID, if there are multiple stacks, then step 2 to obtain the point of time to confirm which one is needed


Binder Type Analysis Steps

1. __exp_main.txt see that process appears ANR, find the process ID


2. Sys_android_event_log search "Am_anr", if multiple, the process ID obtained through step 1 to distinguish which one is needed, and then can find the corresponding point in time


3. Swt_jbt_traces search appears ANR process ID, if there are multiple stacks, then step 2 to obtain the point of time to confirm which one is needed


4. The word "locked" cannot be found on the stack of Step 3, where the lock may occur at the bn end of the binder.

The process id is searched inside the Sys_binder_info, and the bn end of the communication with the BP end can be found.


5. In the swt_jbt_traces search step 4 Gets the TID, can find the "locked" keyword, find the lock point


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.