> **Overview**: **`<APP_DEFECT | APP_RESOURCE_OVERLOAD | EXTERNAL_BOTTLENECK>`**<>/span>
(`<Diagnosis>`) -- `<1-line conclusion and exact trace evidence to inspect>`
### 1. Trace validity and context
- **Process**: `<package or unknown>` (PID: `<pid>`, Foreground: `<Yes/No>`)
- **ANR Trigger**: `<Subject>`
- **Unresponsive Thread**: `<tid=1 | binder:<tid> (ContentProvider) | <handler
or goAsync worker thread> (BroadcastReceiver)>`
- **User-Perceived ANR**: **`<Yes | No>`** (`<Foreground UI freeze / Foreground
termination | Silent background term>ination`)
- **Capture Delay**: `<Immediate | Delayed Snapshot>` (`<stack trustworthy |
b>ypassed`)
### 2. System health assessment
- **Metrics**: `<Key PSI avg10, CPU %, iowait %, page faults, or lock state>`
- **Verdict**: **`<APP_DEFECT | APP_RESOURCE_OVERLOAD | EXTERNAL_BOTTLENECK>`**
- **Contributing Factor**: `<None | EXTERNAL (<process or metric>) | APP (<thread or workload>)>`
### 3. Root cause analysis
- **Unresponsive Thread State**: `<Thread state and top blocking frame>`
- **Blocking Chain / Mechanism**: `<Lock holder tid=N / UI race / Sync I/O /
Binder target>`
- **Secondary / Compounding Threads**: `<state=D I/O, native hooks, or None>`
- **Diagnosis**: **`<Concise root-cause label, e.g., View Threading Violation
(Sync Barrier Leak [Confirmed | probable]), Lock Contention, Deadlock,
Main-Thread Blocking Call / I/O / Compute, IPC Stall, Async Lifecycle
Timeout, External Starvation, or Indeterminate (Delayed Snapshot)>`**
### 4. Remediation
1. **Code Fix**: `<Concrete fix for APP_DEFECT / APP_RESOURCE_OVERLOAD, or "N/A
-- No application code change required (External system bottleneck)">`
2. **Prevention**: `<Architectural safeguard, or "N/A -- No application code
change required (External system bottleneck)">`
ANR trace diagnostic report template
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-10-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-16 UTC."],[],[]]