Product Benefits Pricing Guides Docs About Contact us Try it out
Performance

PostHog Android NDK Crash Tracking

PostHog Android NDK crash tracking captures native crashes with symbolicated frames. Track native crash rate, affected libraries and release impact.

· 3 min read

Many Android apps ship native code without realising how much. Image processing, video, encryption, game engines and third-party SDKs often run through the NDK. When that code crashes, the Java layer sees nothing, and error tracking built only for JVM exceptions stays silent.

PostHog’s September 2026 changelog added Android NDK crash capture with native frame symbolication. That means native crashes can now appear in the same place as your other errors, with readable function names instead of raw memory addresses.

Without native crash data, a stable-looking crash-free rate can hide a steady stream of failures from one library on one family of devices.

Data Points to Track

  • native_crash_count: native crashes per release and per ABI
  • signal_name: the crash signal, such as SIGSEGV or SIGABRT
  • top_native_frame: the symbolicated function or library at the top of the stack
  • library_name: which .so file was loaded when the crash occurred
  • abi and device_model: arm64-v8a versus armeabi-v7a, and the hardware involved
  • android_version and app_version: to separate OS-specific faults from your own releases
  • symbolication_status: whether frames resolved or stayed as raw addresses
  • session_id and screen_name: the user context before the crash

Setup Steps

  1. Upgrade the PostHog Android SDK to a release that includes NDK crash capture.
  2. Upload native debug symbols for every release build so frames can be symbolicated.
  3. Verify with a test crash in a debug build and confirm readable frames appear.
  4. Add library_name and abi as properties so crashes group by their real source.
  5. Create a dashboard showing native crash count by library, ABI and device model.
  6. Track symbolication_status and alert when unresolved frames rise, since that usually means missing symbols.

Actionable Insights

If one library accounts for most native crashes, check whether it is your code or a third-party SDK. For the latter, raise it with the vendor using the signal and frame evidence.

Crashes limited to one ABI or a handful of devices point to hardware or driver issues. You may be able to disable a feature on those devices instead of shipping a full fix.

A high share of unresolved frames tells you your release pipeline is dropping symbols. Fix that first, because every other analysis depends on it.

Finally, compare retention for users affected by native crashes. These failures tend to be abrupt and early, which makes them a strong predictor of uninstalls.

Common Pitfalls

The most common mistake is shipping a release without uploading its debug symbols. The crash arrives, but the frames stay unreadable, and nobody can act on it. Make symbol upload a required step in your release pipeline. Also remember that obfuscation tools can rename native entry points, so keep mapping files with each build and test a deliberate crash before every major release.

Review the dashboard weekly with both engineers and product managers present, so crash trends feed straight into release planning.