
Mobile Crash Analysis & Root Cause Diagnosis
Decode mobile crashes instantly—find root causes in stack traces and logs
What You Can Do
You can transform cryptic crash reports and ANRs into actionable root cause analyses. Provide native stack traces, logcat output, ANR traces, and profiler metrics—the skill systematically parses memory corruption, thread deadlocks, race conditions, native crashes, and performance bottlenecks. You'll get diagnostic summaries with reproduction steps and targeted fix strategies.
Features
Decode symbols and locate memory corruption, segfaults, and null pointer dereferences
Identify blocked main threads, resource contention, and infinite loops from ANR traces
Extract relevant logs, cross-reference timestamps, and reconstruct the crash sequence
Analyze memory profiles, CPU traces, and allocation patterns for performance crashes
Diagnose deadlocks, race conditions, and lock contention across multiple threads
Synthesize step-by-step reproduction instructions from diagnostic artifacts
Suggest specific code fixes, architecture changes, or resource optimization strategies
Classify crashes by root cause (memory, threading, third-party libs, resource exhaustion)
Example Output
Native Segmentation Fault
Root Cause: Buffer overflow in custom memory allocator when processing images >8MB Reproduction: Open app → Navigate to Gallery → Load photo >8MB Fix Strategy: Implement bounds checking in buffer allocation, add size validation before malloc, use AddressSanitizer in dev builds
ANR: Deadlock on Main Thread
Deadlock: Main thread blocked in synchronized database lock; worker thread holds reverse lock Reproduction: Launch app → Trigger sync → Open database-heavy screen Root Cause: Lock ordering inconsistency between main and worker threads Fix: Acquire locks in consistent order; migrate DB access to Coroutines
Memory Leak: ImageCache
Pattern: Heap grows 50MB/hour; GC unable to reclaim Responsible: ImageCache holding bitmap references indefinitely Evidence: Profiler shows 200+ orphaned Bitmap objects Fix: Implement LRU cache with size limits; clear on app pause
What's Included
- SKILL.md: Complete crash analysis workflow with decision trees and diagnostic templates
- Crash Classification Matrix: Organized by type (native, ANR, memory, performance)
- Stack Trace Parser Template: Step-by-step frame analysis and symbol resolution
- ANR Diagnosis Checklist: Main thread lock detection and thread state inspection
- Logcat Filtering Guide: Log extraction patterns and timestamp correlation
- Profiler Report Template: Memory/CPU metric interpretation
- Reproduction Step Template: Structured format for crash sequence reconstruction
- Remediation Strategy Templates: Fix suggestions for common crash types
Who It's For
- Android/iOS engineers diagnosing production crashes and performance regressions
- QA engineers investigating crash reports from field testing and beta releases
- Platform engineers troubleshooting system-level ANRs and resource exhaustion
- On-call engineers responding to crash spikes during production incidents
- Performance engineers analyzing memory leaks and GC-related hangs
Best For
- Triaging production crashes with unclear or complex root causes
- Diagnosing native code crashes (C/C++ segfaults, memory corruption)
- Analyzing ANRs and main-thread hangs in production environments
- Correlating crash patterns with recent code changes or deployments
- Generating reliable reproduction steps for elusive or intermittent crashes







