The types and causes of Android crash

Source: Internet
Author: User

Android Platform program crashes everyone should have encountered, force close and ANR should be encountered by everyone more.

Here is a brief description of the various types of crashes of the Android platform and a list of reasons.

1.ANR (Visible ANR):

Occurrence scenario: The application occurs ANR.

Crash symptom: The system popup asks the user to select "Force Close" or "Wait".

"Force Close" will kill the application process that occurs with ANR. Wait waits for the system timing to resume the application process.

Cause: (1) The application main thread is stuck, and the response to other requests times out. (2) deadlock. (3) The system is unresponsive. (4) CPU load is too heavy.


2.Force Close:

Occurrence scenario: App process crashes.

Crash symptom: The system pop-up window prompts the user for a process crash.

Cause: null pointing to an exception or an exception that was not caught.


3.Tombstones:

Occurrence scenario: Native layer Crashes

Crash symptoms: If a crash native layer is associated with the UI (such as browser), we can find this crash on the UI.

If the native layer that crashes is in the background and does not have direct contact with the UI, it is not visible to the user, and if the debug version may have a log print out of the underlying site at that time.

Occurrence reason: various, need concrete situation concrete analysis.


4. System service Crash (Systems Server Crash):

Scenario: System service is an Android core process and this service process crashes.

Crash symptoms: Phone restarts to Android boot screen

Cause: (1) The system service watchdog found an exception. (2) The system service has an uncaught exception. (3) OOM. (4) System service native occurs tombstone.


5.Kernel panics:

Scenario: A fatal error occurred in the Linux kernel

Crash symptoms: Phone starts full restart from bootloader

Cause: (1) A memory crash occurred in the Linux kernel memory space. (2) The kernel watchdog found an exception. (3) Null pointer operation kernel.

The types and causes of Android crash

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.