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

Crash while moving photos: Couldn't read row 579, col 20 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. #13001

Open
4 tasks done
gigcastro opened this issue May 12, 2024 · 0 comments
Labels
bug performance: ISE/IAE 😕 Illegal State Exception / Illegal Argument Exception Version/3029

Comments

@gigcastro
Copy link

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • 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 gigcastro added the bug label May 12, 2024
@joshtrichards joshtrichards added Version/3029 performance: ISE/IAE 😕 Illegal State Exception / Illegal Argument Exception labels May 16, 2024
@joshtrichards joshtrichards changed the title Crash while moving photos Crash while moving photos: Couldn't read row 579, col 20 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug performance: ISE/IAE 😕 Illegal State Exception / Illegal Argument Exception Version/3029
Projects
None yet
Development

No branches or pull requests

2 participants