Skip to content
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] android.database.sqlite.SQLiteException: Failed to change locale for db '/data/user/0/com.beyond/databases/com.heapanalytics.FrozenEvent.db' to 'en_US' #434

Open
mlisikbf opened this issue Oct 29, 2024 · 0 comments

Comments

@mlisikbf
Copy link

mlisikbf commented Oct 29, 2024

We are seeing this happen on a specific set of devices:

  • Motorola z3
  • Motorola e6
  • Amazon Fire HD 10 (KFTRWI)
  • Motorola g(6) (XT1925DL)

All running Android 9.

App using:

  • "@heap/react-native-heap": "0.22.8"
  • "react-native": "0.73.8"

Android config:
buildToolsVersion = "34.0.0"
minSdkVersion = 24
compileSdkVersion = 34
targetSdkVersion = 34
kotlinVersion = '1.8.0'
ndkVersion = "25.1.8937393"

stacktrace:

android.database.sqlite.SQLiteException: Failed to change locale for db '/data/user/0/com.beyond/databases/com.heapanalytics.FrozenEvent.db' to 'en_US'.
	at android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration(SQLiteConnection.java:406)
	at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:220)
	at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:195)
	at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:503)
	at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:204)
	at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:196)
	at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:880)
	at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:865)
	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:739)
	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:729)
	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:355)
	at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:298)
	at com.heapanalytics.android.internal.EventDB.readBatch(EventDB.java:95)
	at com.heapanalytics.android.internal.HandlerNetDispatch$1.run(HandlerNetDispatch.java:39)
	at android.os.Handler.handleCallback(Handler.java:873)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:193)
	at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: android.database.sqlite.SQLiteDatabaseCorruptException: database disk image is malformed (code 11 SQLITE_CORRUPT)
	at android.database.sqlite.SQLiteConnection.nativeExecuteForString(Native Method)
	at android.database.sqlite.SQLiteConnection.executeForString(SQLiteConnection.java:655)
	at android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration(SQLiteConnection.java:387)
	... 17 more

support ticket #40846

@mlisikbf mlisikbf changed the title [Android] crash with android.database.sqlite.SQLiteException: Failed to change locale for db '/data/user/0/com.beyond/databases/com.heapanalytics.FrozenEvent.db' to 'en_US' [Android] android.database.sqlite.SQLiteException: Failed to change locale for db '/data/user/0/com.beyond/databases/com.heapanalytics.FrozenEvent.db' to 'en_US' Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant