View Issue Details

IDProjectCategoryView StatusLast Update
0010518MMASynchronizationpublic2013-03-19 01:26
Reporterjiri Assigned To 
PriorityurgentSeverityminorReproducibilityrandom
Status closedResolutionfixed 
Summary0010518: Handle MediaStore cursor errors
DescriptionIt seems that MediaStore cursors simply stop working for not obvious reason sometimes. Per IM discussions, there's probably only one way to fix it and it's be catching IllegalStateException on various places where these cursors are used and failing gracefully in such a case. Per specific cases, we might try to repeat the failed action, or simply continue.
TagsNo tags attached.
Fixed in build107

Activities

jiri

2013-02-13 11:21

administrator   ~0034876

Another type of exception that probably should be handled:

android.database.sqlite.SQLiteDatabaseCorruptException: database disk image is malformed
        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:174)
        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:136)
        at android.content.ContentProviderProxy.query(ContentProviderNative.java:358)
        at android.content.ContentResolver.query(ContentResolver.java:311)
        at com.ventismedia.android.mediamonkeybeta.db.dao.ms.AlbumMsDao.getAlbumArt(AlbumMsDao.java:35)
        at com.ventismedia.android.mediamonkeybeta.sync.ms.MediaSync.syncAlbumArtwork(MediaSync.java:161)
        at com.ventismedia.android.mediamonkeybeta.sync.ms.MediaSync.remoteOnly(MediaSync.java:287)
        at com.ventismedia.android.mediamonkeybeta.sync.ms.MediaSync.sync(MediaSync.java:124)
        at com.ventismedia.android.mediamonkeybeta.sync.ms.MediaStoreSyncService.doSync(MediaStoreSyncService.java:149)
        at com.ventismedia.android.mediamonkeybeta.sync.ms.MediaStoreSyncService$SyncThread.run(MediaStoreSyncService.java:121)

marek

2013-03-01 18:00

developer   ~0035214

Fixed in build 107

peke

2013-03-19 01:26

developer   ~0035415

Verified 114