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

Crash report wpandroid: SQLiteException in TracksDatabaseHelper.getReadableDb #24

Open
maxme opened this issue Aug 4, 2016 · 1 comment
Assignees
Milestone

Comments

@maxme
Copy link
Contributor

maxme commented Aug 4, 2016

Fatal Exception: android.database.sqlite.SQLiteException: Failed to change locale for db '/data/user/0/org.wordpress.android/databases/tracks.db' to 'en_AU'.
       at android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration(SQLiteConnection.java:393)
       at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:216)
       at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:191)
       at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
       at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
       at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
       at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:806)
       at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:791)
       at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694)
       at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:581)
       at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:275)
       at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:223)
       at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)
       at com.automattic.android.tracks.datasets.TracksDatabaseHelper.getDatabase(TracksDatabaseHelper.java:35)
       at com.automattic.android.tracks.datasets.TracksDatabaseHelper.getReadableDb(TracksDatabaseHelper.java:49)
       at com.automattic.android.tracks.datasets.EventTable.getEventsCount(EventTable.java:56)
       at com.automattic.android.tracks.TracksClient$2.run(TracksClient.java:137)
       at java.lang.Thread.run(Thread.java:818)
Caused by android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 14)
       at android.database.sqlite.SQLiteConnection.nativeExecute(SQLiteConnection.java)
       at android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:555)
       at android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration(SQLiteConnection.java:369)
       at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:216)
       at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:191)
       at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
       at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
       at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
       at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:806)
       at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:791)
       at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694)
       at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:581)
       at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:275)
       at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:223)
       at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)
       at com.automattic.android.tracks.datasets.TracksDatabaseHelper.getDatabase(TracksDatabaseHelper.java:35)
       at com.automattic.android.tracks.datasets.TracksDatabaseHelper.getReadableDb(TracksDatabaseHelper.java:49)
       at com.automattic.android.tracks.datasets.EventTable.getEventsCount(EventTable.java:56)
       at com.automattic.android.tracks.TracksClient$2.run(TracksClient.java:137)
       at java.lang.Thread.run(Thread.java:818)
@maxme maxme added this to the 1.1 milestone Aug 4, 2016
@maxme maxme self-assigned this Aug 4, 2016
@maxme maxme modified the milestones: 1.1, 1.0.7 Aug 4, 2016
@maxme
Copy link
Contributor Author

maxme commented Aug 4, 2016

Not sure we can fix this without forking SQLiteOpenHelper.

@maxme maxme modified the milestones: 1.0.7, 1.1.1 Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant