Skip to content

RuntimeException on start #827

@JuanEsporrin

Description

@JuanEsporrin

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions