How can I interpret this Android Stack Trace? How can I interpret this Android Stack Trace? sqlite sqlite

How can I interpret this Android Stack Trace?


ADB Logcat

I'd suggest using the adb logcat to get the logs and looking for clues that way. It can still be a bit tricky, but there's at least usable information in them.

Clean the ADB logs

Note: if you can reliably reproduce the crash, it's a great idea to clear the old ADB logs first, so you don't have to wade through a bunch of additional info. Then simply reproduce the crash & grab the logs immediately.

Command: adb logcat -c

(Source: https://stackoverflow.com/a/3315407/3757150)

Steps to get the adb logs:

  1. Open the command prompt
  2. Navigate to the platform-tools folder.
    • (Default on PC: C:\android-sdk-windows\platform-tools)
  3. Run adb connect
  4. PC command: adb logcat -vtime -d > "%USERPROFILE%\Desktop\android_logcat.txt"

https://kb.xamarin.com/customer/portal/articles/1675684#adb-logcat

What to look for:

Often, for crashes; you'll see a stacktrace and a message that looks similar to:

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

This message itself is unfortunately fairly generic; but it at least tells you where in the logs the crash happened. Once you've used that to look in the ballpark, you can see the stacktrace that lead up to it.

It can also be helpful to look for the activity / intent that was last started before the crash happened: http://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/android_debug_log/#Interesting_Messages