"Attempt to re-open an already-closed object: SQLiteDatabase" error on a Play Store pre-launch tests
See original GitHub issueCurrent behavior
In a process of releasing a bundle to the Play Store, I received an errors on a pre-launch tests. It shows up as : «attempt to re-open an already-closed object: SQLiteDatabase /data/user/0/com.app/databases/RKStorage»
Expected behavior
App should not get any errors.
Repro steps
I’ve got two separate angles at which we can look at this problem.
- Automated Sentry error response:
My Sentry error system caught an exception, which may happen then an app has been closed after being put into a background (by pressing Home, I guess)
At first glance, the app is already to be closed, so why even bother? I don’t know what the user actually saw, which makes me worry a bit. It doesn’t happen before.
- Pre-launch tests from the Play Store
Also, there are pre-launch tests, which are mandatory before uploading an app to the Play Store. And they are showing the same errors.
Related issue - https://github.com/firebase/quickstart-unity/issues/861.
Looks like a problem with pre-release test code on a Google side. But worth looking at any way, cause async-library
being caught in an error log.
Thanks!
Environment
- Platforms tested:
- [8.1.0] Android Nokia 1
- iOS
- macOS
- Windows
- AsyncStorage version: 1.12.1
- Environment: react-native: =0.63.3 => 0.63.3
- Logs/Errors that may be relevant:
An error occurred while executing doInBackground()
android.os.AsyncTask$3 in done at line 353
java.util.concurrent.FutureTask in finishCompletion at line 383
java.util.concurrent.FutureTask in setException at line 252
java.util.concurrent.FutureTask in run at line 271
com.reactnativecommunity.asyncstorage.AsyncStorageModule$SerialExecutor$1 in run at line 63
java.util.concurrent.ThreadPoolExecutor in runWorker at line 1162
java.util.concurrent.ThreadPoolExecutor$Worker in run at line 636
java.lang.Thread in run at line 764
IllegalStateException
attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/com.app/databases/RKStorage
android.database.sqlite.SQLiteClosable in acquireReference at line 55
android.database.sqlite.SQLiteDatabase in compileStatement at line 1068
com.reactnativecommunity.asyncstorage.AsyncStorageModule$2 in doInBackgroundGuarded at line 228
com.reactnativecommunity.asyncstorage.AsyncStorageModule$2 in doInBackgroundGuarded at line 219
com.facebook.react.bridge.GuardedAsyncTask in doInBackground at line 36
com.facebook.react.bridge.GuardedAsyncTask in doInBackground at line 20
android.os.AsyncTask$2 in call at line 333
java.util.concurrent.FutureTask in run at line 266
com.reactnativecommunity.asyncstorage.AsyncStorageModule$SerialExecutor$1 in run at line 63
java.util.concurrent.ThreadPoolExecutor in runWorker at line 1162
java.util.concurrent.ThreadPoolExecutor$Worker in run at line 636
java.lang.Thread in run at line 764
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:7 (2 by maintainers)
Top GitHub Comments
Thanks @limaAniceto.
Could you be so kindly to show me, which version you’ve got prior to bumping? I’m looking for a stable version. Got some other error reports, which may be linked to this.
Same here, we got this crash too, alas the tracebacks are not that helpful:
Got these from Crashlytics, I don’t know how to reproduce the issue.