nextcloud / nextcloud/android

Gallery couldn't read row 592, col 20

Open
#17,162 12 comments 0 reactions 1 assignee Claimed by @alperozturk96 View on GitHub
bug feature: media tab performance: ISE/IAE :confused:
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

> Same here
> Crashes when Media Tab should Open . Not Sometimes, everytime. Same with App Version before.
>
> ### Cause of error
> ```java
> Exception in thread "DefaultDispatcher-worker-1" java.lang.IllegalStateException: Couldn't read row 592, col 20 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
> at android.database.CursorWindow.nativeGetLong(Native Method)
> at android.database.CursorWindow.getLong(CursorWindow.java:573)
> at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:78)
> at androidx.sqlite.driver.SupportSQLiteStatement$RowSQLiteStatement.getLong(SupportSQLiteStatement.android.kt:363)
> at com.nextcloud.client.database.dao.FileDao_Impl.getGalleryItemsSuspended$lambda$0(FileDao_Impl.kt:4365)
> at com.nextcloud.client.database.dao.FileDao_Impl$$ExternalSyntheticLambda19.invoke(D8$$SyntheticClass:0)
> at androidx.room.util.DBUtil__DBUtil_androidKt$performSuspending$lambda$1$$inlined$internalPerform$1.invokeSuspend(DBUtil.kt:173)
> at androidx.room.util.DBUtil__DBUtil_androidKt$performSuspending$lambda$1$$inlined$internalPerform$1.invoke(Unknown Source:8)
> at androidx.room.util.DBUtil__DBUtil_androidKt$performSuspending$lambda$1$$inlined$internalPerform$1.invoke(Unknown Source:4)
> at androidx.room.coroutines.PassthroughConnectionPool$useConnection$2.invokeSuspend(PassthroughConnectionPool.kt:59)
> at androidx.room.coroutines.PassthroughConnectionPool$useConnection$2.invoke(Unknown Source:8)
> at androidx.room.coroutines.PassthroughConnectionPool$useConnection$2.invoke(Unknown Source:4)
> at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:42)
> at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:164)
> at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:1)
> at androidx.room.coroutines.PassthroughConnectionPool.useConnection(PassthroughConnectionPool.kt:59)
> at androidx.room.RoomConnectionManager.useConnection(RoomConnectionManager.android.kt:138)
> at androidx.room.RoomDatabase.useConnection(RoomDatabase.android.kt:619)
> at androidx.room.util.DBUtil__DBUtil_androidKt$performSuspending$$inlined$compatCoroutineExecute$DBUtil__DBUtil_androidKt$1.invokeSuspend(DBUtil.android.kt:261)
> at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
> at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652)
> at java.lang.Thread.run(Thread.java:1564)
>
> ```
>
> ### App information
> * ID: `com.nextcloud.client`
> * Version: `340000090`
> * Build flavor: `gplay`
>
> ### Device information
> * Brand: `Xiaomi`
> * Device: `dada`
> * Model: `24129PN74G`
> * Id: `BP2A.250605.031.A3`
> * Product: `dada_eea`
>
> ### Firmware
> * SDK: `36`
> * Release: `16`
> * Incremental: `OS3.0.301.0.WOCEUXM`

_Originally posted by @Gdo23678 in [#17160](https://github.com/nextcloud/android/issues/17160#issuecomment-4660938728)_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.