-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android.database.sqlite.SQLiteCantOpenDatabaseException[Bug]: #1787
Comments
Hi @areehafarooq thank you for reaching out! This sounds similar to an issue we had a while back where we pushed a fix on SDK 4.7.2. However, it looks like you are currently on 4.8.6. Is this only happening with Transsion devices running Android 12 or have you noticed it happening with any other devices? Thank you for the additional information! |
Hi. This has only been reported for Transsion Android 12 devices till now. |
@areehafarooq are you still seeing this issue with the latest SDK? Do you get any other SQL related crashes from non-OneSignal code? |
if I may add on this one, we currently are having same issue with Transsion devices (99% on Android 12) with pretty similar stack trace: |
Closing this issue as we have had no further reports of this and this issue seems to be device specific. Please upgrade the OneSignal SDK if you or anyone is still having this issue. If this is still an issue, please open a new report with updated information. |
What happened?
Fatal Exception: android.database.sqlite.SQLiteCantOpenDatabaseException: Cannot open database '/data/user/0/com.mynayatel/databases/OneSignal.db': File /data/user/0/com.mynayatel/databases/OneSignal.db doesn't exist
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:254)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:205)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:505)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:198)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:928)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:908)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:772)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:761)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:373)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at com.onesignal.OneSignalDbHelper.getSQLiteDatabase(OneSignalDbHelper.java:3)
at com.onesignal.OneSignalDbHelper.getSQLiteDatabaseWithRetries(OneSignalDbHelper.java:5)
at com.onesignal.OneSignalDbHelper.a(OneSignalDbHelper.java:4)
at com.onesignal.OSNotificationDataController$1.run(OSNotificationDataController.java:35)
at java.lang.Thread.run(Thread.java:1012)
Caused by android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14 SQLITE_CANTOPEN): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(SQLiteConnection.java)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:224)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:205)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:505)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:198)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:928)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:908)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:772)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:761)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:373)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at com.onesignal.OneSignalDbHelper.getSQLiteDatabase(OneSignalDbHelper.java:3)
at com.onesignal.OneSignalDbHelper.getSQLiteDatabaseWithRetries(OneSignalDbHelper.java:5)
at com.onesignal.OneSignalDbHelper.a(OneSignalDbHelper.java:4)
at com.onesignal.OSNotificationDataController$1.run(OSNotificationDataController.java:35)
at java.lang.Thread.run(Thread.java:1012)
Crash reported on Firebase.
Steps to reproduce?
What did you expect to happen?
I expected the app to not crash.
OneSignal Android SDK version
4.8.6
Android version
12
Specific Android models
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: