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

Error when deleting photos from a synced folder #14400

Open
4 tasks done
jakub50 opened this issue Jan 14, 2025 · 3 comments
Open
4 tasks done

Error when deleting photos from a synced folder #14400

jakub50 opened this issue Jan 14, 2025 · 3 comments
Assignees
Labels

Comments

@jakub50
Copy link

jakub50 commented Jan 14, 2025

⚠️ 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

Cause of error

Exception in thread "main" java.lang.IllegalStateException: Couldn't read row 620, 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:542)
    at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:77)
    at com.nextcloud.client.database.dao.FileDao_Impl.getFolderContent(FileDao_Impl.java:2097)
    at com.owncloud.android.datamodel.FileDataStorageManager.getFolderContent(FileDataStorageManager.java:942)
    at com.owncloud.android.datamodel.FileDataStorageManager.getFolderContent(FileDataStorageManager.java:229)
    at com.owncloud.android.ui.adapter.OCFileListAdapter.swapDirectory(OCFileListAdapter.java:733)
    at com.owncloud.android.ui.fragment.OCFileListFragment.listDirectory(OCFileListFragment.java:1415)
    at com.owncloud.android.ui.fragment.OCFileListFragment.listDirectory(OCFileListFragment.java:1364)
    at com.owncloud.android.ui.fragment.OCFileListFragment.listDirectory(OCFileListFragment.java:1353)
    at com.owncloud.android.ui.activity.FileDisplayActivity.updateListOfFilesFragment(FileDisplayActivity.java:728)
    at com.owncloud.android.ui.activity.FileDisplayActivity.onRemoveFileOperationFinish(FileDisplayActivity.java:1762)
    at com.owncloud.android.ui.activity.FileDisplayActivity.onRemoteOperationFinish(FileDisplayActivity.java:1704)
    at com.owncloud.android.services.OperationsService.lambda$dispatchResultToOperationListeners$0(OperationsService.java:786)
    at com.owncloud.android.services.OperationsService$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:250)
    at android.app.ActivityThread.main(ActivityThread.java:7848)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)

App information

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

Device information

  • Brand: motorola
  • Device: odessa
  • Model: moto g(9) plus
  • Id: RPAS31.Q2-59-17-4-5-5
  • Product: odessa_retaile

Firmware

  • SDK: 30
  • Release: 11
  • Incremental: af8e3

Expected behaviour

Deleting files without failure

Actual behaviour

Failure

Android version

11

Device brand and model

Motorola moto g(9) plus

Stock or custom OS?

Stock

Nextcloud android app version

30300790

Nextcloud server version

30.0.4

Using a reverse proxy?

Yes

Android logs

I don't have beta or dev versions nor do I have rooted phone

Server error logs

Additional information

No response

@jakub50
Copy link
Author

jakub50 commented Jan 14, 2025

I think it happens when I try to delete multiple files, it might have been around 50 or so. I tried to do it in batches of up to 10 and it worked.

@tobiasKaminsky
Copy link
Member

Have you been at the same folder all the time? Or changed view to another folder?

@jakub50
Copy link
Author

jakub50 commented Jan 14, 2025

Just selected files and clicked delete. Didn't change folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants