View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010103 | MMA | General | public | 2012-11-30 02:34 | 2014-09-28 01:35 |
Reporter | marek | Assigned To | |||
Priority | none | Severity | major | Reproducibility | sometimes |
Status | closed | Resolution | fixed | ||
Product Version | 1.0.4 | ||||
Fixed in Version | 1.0.7 | ||||
Summary | 0010103: Application crashes when no db is available during readonly query | ||||
Description | MMMA database is not always created before first read-only query is called. So it sometimes crashes. Please see attached log. | ||||
Steps To Reproduce | 1. Uninstall MMA and delete DB 2. Run MMA | ||||
Additional Information | "java.lang.RuntimeException: An error occured while executing doInBackground() at android.support.v4.content.ModernAsyncTask$3.done(ModernAsyncTask.java:137) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352) at java.util.concurrent.FutureTask.setException(FutureTask.java:219) at java.util.concurrent.FutureTask.run(FutureTask.java:239) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:856) Caused by: android.database.sqlite.SQLiteException: Can't get writable database at read-only connection at com.ventismedia.android.mediamonkey.db.DatabaseReadHelper.getWritableDatabase(DatabaseReadHelper.java:82) at com.ventismedia.android.mediamonkey.db.ExternalSQLiteOpenHelper.getReadableDatabase(ExternalSQLiteOpenHelper.java:234) at com.ventismedia.android.mediamonkey.db.MediaMonkeyStoreProvider.unsafeQuery(MediaMonkeyStoreProvider.java:245) at com.ventismedia.android.mediamonkey.db.MediaMonkeyStoreProvider.queryReadOnly(MediaMonkeyStoreProvider.java:147) at com.ventismedia.android.mediamonkey.db.MediaMonkeyStoreProvider.query(MediaMonkeyStoreProvider.java:171) at android.content.ContentProvider.query(ContentProvider.java:652) at android.content.ContentProvider$Transport.query(ContentProvider.java:189) at android.content.ContentResolver.query(ContentResolver.java:372) at android.content.ContentResolver.query(ContentResolver.java:315) at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:49) at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:35) at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:240) at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:51) at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:40) at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:123) at java.util.concurrent.FutureTask.run(FutureTask.java:234) ... 3 more android.database.sqlite.SQLiteException: Can't get writable database at read-only connection at com.ventismedia.android.mediamonkey.db.DatabaseReadHelper.getWritableDatabase(DatabaseReadHelper.java:82) at com.ventismedia.android.mediamonkey.db.ExternalSQLiteOpenHelper.getReadableDatabase(ExternalSQLiteOpenHelper.java:234) at com.ventismedia.android.mediamonkey.db.MediaMonkeyStoreProvider.unsafeQuery(MediaMonkeyStoreProvider.java:245) at com.ventismedia.android.mediamonkey.db.MediaMonkeyStoreProvider.queryReadOnly(MediaMonkeyStoreProvider.java:147) at com.ventismedia.android.mediamonkey.db.MediaMonkeyStoreProvider.query(MediaMonkeyStoreProvider.java:171) at android.content.ContentProvider.query(ContentProvider.java:652) at android.content.ContentProvider$Transport.query(ContentProvider.java:189) at android.content.ContentResolver.query(ContentResolver.java:372) at android.content.ContentResolver.query(ContentResolver.java:315) at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:49) at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:35) at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:240) at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:51) at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:40) at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:123) at java.util.concurrent.FutureTask.run(FutureTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:856) " | ||||
Tags | No tags attached. | ||||
Fixed in build | 295 | ||||