java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /storage/emulated/0/Android/data/mobi.maptrek/files/databases/waypoints.sqlitedb
at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:58)
at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1387)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1263)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1431)
at mobi.maptrek.data.source.WaypointDbDataSource.getCursor(WaypointDbDataSource.java:154)
at mobi.maptrek.data.source.WaypointDbDataSource.getWaypointsCount(WaypointDbDataSource.java:136)
at mobi.maptrek.fragments.DataList.setDataSource(DataList.java:256)
at mobi.maptrek.MainActivity.onPlacesClicked(MainActivity.java:1720)
at mobi.maptrek.MainActivity.lambda$onCreate$7$MainActivity(MainActivity.java:698)
at mobi.maptrek.-$$Lambda$MainActivity$b319FfWuEkKsx6nSYF7YlqmL_8A.onClick(Unknown Source:2)
at android.view.View.performClick(View.java:7448)
at android.view.View.performClickInternal(View.java:7425)
at android.view.View.access$3600(View.java:810)
at android.view.View$PerformClick.run(View.java:28305)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7664)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Hi, here is my exception:
Device : sargo Brand : google Model : Pixel 3a Product : sargo Locale : it_IT Build : RQ3A.210805.001.A1 Version : 11 Apk Version : 80 2021.04
18.08.2021 05:25:02 Version : 80 2021.04 Thread : Thread[main,5,main] Exception :
java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /storage/emulated/0/Android/data/mobi.maptrek/files/databases/waypoints.sqlitedb at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:58) at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1387) at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1263) at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1431) at mobi.maptrek.data.source.WaypointDbDataSource.getCursor(WaypointDbDataSource.java:154) at mobi.maptrek.data.source.WaypointDbDataSource.getWaypointsCount(WaypointDbDataSource.java:136) at mobi.maptrek.fragments.DataList.setDataSource(DataList.java:256) at mobi.maptrek.MainActivity.onPlacesClicked(MainActivity.java:1720) at mobi.maptrek.MainActivity.lambda$onCreate$7$MainActivity(MainActivity.java:698) at mobi.maptrek.-$$Lambda$MainActivity$b319FfWuEkKsx6nSYF7YlqmL_8A.onClick(Unknown Source:2) at android.view.View.performClick(View.java:7448) at android.view.View.performClickInternal(View.java:7425) at android.view.View.access$3600(View.java:810) at android.view.View$PerformClick.run(View.java:28305) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7664) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Hope it can be useful