How to debug this crash (Android)

You must Login before you can answer or comment on any questions.

Hi, My application is getting about 10-20 crash reports a week (in the Android Dev console). I haven't reproduced the issue but here is the stack trace:

java.lang.NullPointerException
at android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:142)
at android.app.AlertDialog$Builder.<init>(AlertDialog.java:359)
at ti.modules.titanium.ui.widget.TiUIDialog.createBuilder(TiUIDialog.java:278)
at ti.modules.titanium.ui.widget.TiUIDialog.<init>(TiUIDialog.java:56)
at ti.modules.titanium.ui.AlertDialogProxy.createView(AlertDialogProxy.java:54)
at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:410)
at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:396)
at ti.modules.titanium.ui.AlertDialogProxy$1.run(AlertDialogProxy.java:71)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4514)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
at dalvik.system.NativeStart.main(Native Method)
The app was compiled with a late CI build of 2.1.x. I dont know the devices it is happening on (Google doesn't tell me) but based on user messages it appears to happen soon after launching the app. Any ideas?

— asked 11 months ago by Frank A
6 Comments
  • For whatever it's worth - I can't recreate this issue, but I can recreate on my phone the app requiring a a restart when called from the notification screen. I see this in the log:

    07-14 19:52:19.389: E/TiLaunchActivity(6292): (main) [42,477] Android issue 2373 detected (missing intent CATEGORY_LAUNCHER or FLAG_ACTIVITY_RESET_TASK_IF_NEEDED), restarting app. com.apsquared.tvfoodmaps.TvfoodmapsActivity@40ec4e58

    — commented 11 months ago by Frank A

  • Frank, I'm with you, some device (at minimum Android Version) would be a bit more helpful than what we get from Play as well.

    — commented 11 months ago by Stephen Feather

  • I'm not familiar with native Android dev, but the stack traces with Titanium are pretty useless as well. Can't see where in the app it's happening.

    — commented 11 months ago by Frank A

  • Show 3 more comments

Your Answer

Think you can help? Login to answer this question!