nextcloud / nextcloud/android

SQLiteBlobTooBigException with a large README.md

Open
#9,693 16 comments 0 reactions 0 assignees View on GitHub
approved bug performance: SBTBE/SQL related :file_cabinet:
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

After logging in and giving the app storage permissions, it starts loading the files and crashes with the error below. It works on a different phone (galaxy a71)

************ CAUSE OF ERROR ************
```java
android.database.sqlite.SQLiteBlobTooBigException: Row too big to fit into CursorWindow requiredPos=0, totalRows=1
at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:1011)
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:153)
at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:140)
at android.content.ContentResolver.query(ContentResolver.java:1225)
at android.content.ContentResolver.query(ContentResolver.java:1131)
at android.content.ContentResolver.query(ContentResolver.java:1087)
at com.owncloud.android.datamodel.FileDataStorageManager.getFileCursorForValue(FileDataStorageManager.java:965)
at com.owncloud.android.datamodel.FileDataStorageManager.fileExists(FileDataStorageManager.java:948)
at com.owncloud.android.datamodel.FileDataStorageManager.fileExists(FileDataStorageManager.java:189)
at com.owncloud.android.datamodel.FileDataStorageManager.saveFile(FileDataStorageManager.java:260)
at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:252)
at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:363)
at java.lang.Thread.run(Thread.java:923)
```
************ APP INFORMATION ************
ID: com.nextcloud.client
Version: 30180190
Build flavor: gplay

************ DEVICE INFORMATION ************
Brand: OnePlus
Device: OP515BL1
Model: DN2103
Id: RP1A.200720.011
Product: DN2103EEA

************ FIRMWARE ************
SDK: 30
Release: 11
Incremental: 1640787928920

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.