cgeo/c-geo-opensource — Issue #806: Android 1.5 crash issue
Author: mucek4
Created: 2011-11-16 20:00:28+00:00
State: open
Labels: bug, high

On Android 1.5 c:geo crashes on run with:

Uncaught handler: thread main exiting due to uncaught exception
java.lang.ExceptionInInitializerError
at cgeo.geocaching.cgBase.restoreCookieStore(cgBase.java:2825)
at cgeo.geocaching.activity.AbstractActivity.onCreate(AbstractActivity.java:81)
at cgeo.geocaching.cgeo.onCreate(cgeo.java:152)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1127)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
at android.app.ActivityThread.access$1800(ActivityThread.java:112)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3948)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at org.apache.commons.lang3.StringUtils.(StringUtils.java:708)
... 16 more

It only help to uninstall and reinstall the app and in couple of minutes it crashes again. This is supposed to be log of "initial crash"

android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed
at android.database.sqlite.SQLiteStatement.native_execute(Native Method)
at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:66)
at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1313)
at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1173)
at cgeo.geocaching.cgData.saveCache(cgData.java:1307)
at cgeo.geocaching.cgeoapplication.storeWithMerge(cgeoapplication.java:640)
at cgeo.geocaching.cgeoapplication.addSearch(cgeoapplication.java:597)
at cgeo.geocaching.cgBase.searchByViewport$3830727a(cgBase.java:2231)
at cgeo.geocaching.maps.CGeoMap$DownloadThread.run(CGeoMap.java:1248)