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

On open "Crashes & ANRs" i get a crash SQLiteBlobTooBigException #313

Open
NikCapko opened this issue Apr 15, 2024 · 1 comment
Open

On open "Crashes & ANRs" i get a crash SQLiteBlobTooBigException #313

NikCapko opened this issue Apr 15, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@NikCapko
Copy link
Contributor

android.database.sqlite.SQLiteBlobTooBigException: Row too big to fit into CursorWindow requiredPos=1, totalRows=2
at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:1001)
at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:838)
at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:163)
at android.database.sqlite.SQLiteCursor.onMove(SQLiteCursor.java:131)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:248)
at android.database.AbstractCursor.moveToNext(AbstractCursor.java:286)
at com.pluto.plugins.exceptions.internal.persistence.ExceptionDao_Impl$8.call(ExceptionDao_Impl.java:214)
at com.pluto.plugins.exceptions.internal.persistence.ExceptionDao_Impl$8.call(ExceptionDao_Impl.java:204)
at androidx.room.CoroutinesRoom$Companion$execute$4$job$1.invokeSuspend(CoroutinesRoom.kt:87)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@b402047, Dispatchers.IO]

@NikCapko NikCapko added the bug Something isn't working label Apr 15, 2024
@NikCapko
Copy link
Contributor Author

Maybe set limit in 100 StackTraceElement on save crash info can fix it.

In DataModel.kt

internal fun Array<StackTraceElement>.asStringArray(): ArrayList<String> {
    val array = arrayListOf<String>()
    forEachIndexed { index, element ->
        if (index <= 100) {
            if (element.isNativeMethod) {
                array.add("${element.className}.${element.methodName}(Native Method)")
            } else {
                array.add("${element.className}.${element.methodName}(${element.fileName}:${element.lineNumber})")
            }
        }
    }
    return array
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants