View Issue Details

IDProjectCategoryView StatusLast Update
0010103MMAGeneralpublic2014-09-28 01:35
Reportermarek Assigned To 
PrioritynoneSeveritymajorReproducibilitysometimes
Status closedResolutionfixed 
Product Version1.0.4 
Fixed in Version1.0.7 
Summary0010103: Application crashes when no db is available during readonly query
DescriptionMMMA database is not always created before first read-only query is called. So it sometimes crashes. Please see attached log.
Steps To Reproduce1. 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)
"
TagsNo tags attached.
Fixed in build295

Activities

peke

2012-11-30 03:20

developer   ~0033524

Another way to replicate is to Install MMA -> Start -> Close -> Delete Whole Files folder and start MMA Again

martin

2014-09-04 12:52

developer   ~0040464

Fixed completely in build 1.0.7.0295

peke

2014-09-28 01:35

developer   ~0040624

Verified 303