android icon indicating copy to clipboard operation
android copied to clipboard

Couldn't read row ... Make sure the Cursor is initialized at `getFolderContent` via `prepareRemoveSharesInFolder`

Open gigcastro opened this issue 9 months ago • 0 comments

⚠️ Before posting ⚠️

  • [X] This is a bug, not a question or an enhancement.
  • [X] I've searched for similar issues and didn't find a duplicate.
  • [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • [X] I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

App crashes when attempting to move a few selected photos in my OnePlus 9:

  1. Have a folder with auto-sync activated
  2. Select a few of the auto-synced photos (30 aprox).
  3. Attempt to move them to another folder. I particularly use a shared folder. It always crashes, happens everytime.

Expected behaviour

Allowing me to select a folder where to move the photos, select "move" and return back to the original folder.

Actual behaviour

Move operation is realized but the app crashes when tries to go back to the original folder. The app displays the stacktrace and error logs.

Android version

14

Device brand and model

OnePlus 9

Stock or custom OS?

Stock

Nextcloud android app version

30290090

Nextcloud server version

23

Using a reverse proxy?

No

Android logs

Cause of error

Exception in thread "Thread-31" java.lang.IllegalStateException: Couldn't read row 579, 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:539)
    at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:78)
    at com.nextcloud.client.database.dao.FileDao_Impl.getFolderContent(FileDao_Impl.java:2025)
    at com.owncloud.android.datamodel.FileDataStorageManager.getFolderContent(FileDataStorageManager.java:917)
    at com.owncloud.android.datamodel.FileDataStorageManager.getFolderContent(FileDataStorageManager.java:225)
    at com.owncloud.android.datamodel.FileDataStorageManager.prepareRemoveSharesInFolder(FileDataStorageManager.java:1580)
    at com.owncloud.android.datamodel.FileDataStorageManager.saveSharesInFolder(FileDataStorageManager.java:1525)
    at com.owncloud.android.operations.RefreshFolderOperation.refreshSharesForFolder(RefreshFolderOperation.java:814)
    at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:270)
    at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:387)
    at java.lang.Thread.run(Thread.java:1012)

App information

  • ID: com.nextcloud.client
  • Version: 30290090
  • Build flavor: gplay

Device information

  • Brand: OnePlus
  • Device: OnePlus9
  • Model: LE2115
  • Id: UKQ1.230924.001
  • Product: OnePlus9

Firmware

  • SDK: 34
  • Release: 14
  • Incremental: R.1695d68-52ce-52cd

Server error logs

No response

Additional information

No response

gigcastro avatar May 12 '24 02:05 gigcastro