[AC-2273] SQLite crash when not even using DB
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-09-21T13:47:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | Crash |
Reporter | Frank Apap |
Assignee | Anirudh Nagesh |
Created | 2012-08-27T06:24:26.000+0000 |
Updated | 2016-03-08T07:41:16.000+0000 |
Description
In my Android developer console crash reports I can see many of my users experience crashes with the following exception:
java.lang.RuntimeException: Unable to create application com.apsquared.tvfoodmaps.TvfoodmapsApplication: android.database.sqlite.SQLiteException: unable to open database file
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3275)
at android.app.ActivityThread.access$2200(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:969)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.database.sqlite.SQLiteException: unable to open database file
at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
at android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:1849)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:820)
at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:197)
at org.appcelerator.titanium.util.TiDatabaseHelper.getPlatformParam(TiDatabaseHelper.java:70)
at org.appcelerator.titanium.util.TiPlatformHelper.initialize(TiPlatformHelper.java:67)
at org.appcelerator.titanium.TiApplication.postAppInfo(TiApplication.java:369)
at com.apsquared.tvfoodmaps.TvfoodmapsApplication.onCreate(TvfoodmapsApplication.java:34)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3272)
... 10 more
The irony is my app does NOT use the DB what at all. This seems to be a pure AppC related issue.
This seems related to TIMOB-8622 - the big difference is that in my case I'm not even using the SQLLite DB directly.
Hi Frank, It would be helpful if you can provide us a reproducible test case. Regards, Anirudh
Unfortunately I can't reproduce. Although the issue is happening relatively frequently on my user's systems. As you can see in the trace above this occurs before my application code even runs.