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

RuntimeException on start #827

Open
JuanEsporrin opened this issue Jun 7, 2021 · 0 comments
Open

RuntimeException on start #827

JuanEsporrin opened this issue Jun 7, 2021 · 0 comments

Comments

@JuanEsporrin
Copy link

Sugar is crashing in just one Android 11 device:

Fatal Exception: java.lang.RuntimeException
Unable to start activity ComponentInfo{com.package.company/com.package.company.MainActivity}: android.database.sqlite.SQLiteException: not an error (code 0 SQLITE_OK[0])
android.app.ActivityThread.performLaunchActivity
android.database.sqlite.SQLiteConnection.nativeRegisterLocalizedCollators (SQLiteConnection.java)
android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration (SQLiteConnection.java:647)
android.database.sqlite.SQLiteConnection.open (SQLiteConnection.java:387)
android.database.sqlite.SQLiteConnection.open (SQLiteConnection.java:226)
android.database.sqlite.SQLiteConnectionPool.openConnectionLocked (SQLiteConnectionPool.java:737)
android.database.sqlite.SQLiteConnectionPool.open (SQLiteConnectionPool.java:284)
android.database.sqlite.SQLiteConnectionPool.open (SQLiteConnectionPool.java:251)
android.database.sqlite.SQLiteDatabase.openInner (SQLiteDatabase.java:1392)
android.database.sqlite.SQLiteDatabase.open (SQLiteDatabase.java:1337)
android.database.sqlite.SQLiteDatabase.openDatabase (SQLiteDatabase.java:980)
android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked (SQLiteOpenHelper.java:444)
android.database.sqlite.SQLiteOpenHelper.getWritableDatabase (SQLiteOpenHelper.java:387)
com.orm.SugarDb.getDB (SugarDb.java:38)
com.orm.SugarRecord.getSugarDataBase (SugarRecord.java:35)
com.orm.SugarRecord.find (SugarRecord.java:201)
com.orm.SugarRecord.findById (SugarRecord.java:135)

It is the first time I am seeing this issue with this library and I haven't been able to find anyone with the same crash. Even with a clean install, the issue persists.

Any idea of what might be going on?

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