nextgis / android_gisapp

:dart: GIS application for Android
http://nextgis.com/nextgis-mobile
GNU General Public License v3.0
134 stars 107 forks source link

Unable resume activity #493

Closed BishopGIS closed 8 years ago

BishopGIS commented 8 years ago
java.lang.RuntimeException: Unable to resume activity {com.nextgis.mobile/com.nextgis.mobile.activity.MainActivity}: android.database.sqlite.SQLiteException: no such table: layer_20160902160444284 (code 1)
    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2788)
    at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2817)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5021)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: android.database.sqlite.SQLiteException: no such table: layer_20160902160444284 (code 1)
    at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
    at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:845)
    at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
    at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:144)
    at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
    at com.nextgis.mobile.fragment.AttributesFragment.setAttributes(AttributesFragment.java:229)
    at com.nextgis.mobile.fragment.AttributesFragment.onResume(AttributesFragment.java:154)
    at android.support.v4.app.Fragment.performResume(Fragment.java:2120)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1147)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1286)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1268)
    at android.support.v4.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:2153)
    at android.support.v4.app.FragmentController.dispatchResume(FragmentController.java:223)
    at android.support.v4.app.FragmentActivity.onResumeFragments(FragmentActivity.java:522)
    at android.support.v4.app.FragmentActivity.onPostResume(FragmentActivity.java:511)
    at android.support.v7.app.AppCompatActivity.onPostResume(AppCompatActivity.java:178)
    at android.app.Activity.performResume(Activity.java:5411)
    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2778)
    ... 10 more

Maybe layer was deleted but accessed asynchronously from another thread (rendering?).