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