nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.15k stars 1.75k forks source link

Crash when moving multiple pictures in `getFolderContent` #13306

Closed OnkelTomsHuette closed 2 days ago

OnkelTomsHuette commented 1 month ago

⚠️ Before posting ⚠️

Steps to reproduce

  1. select pictures to move
  2. choose menu -> move
  3. select destination folder
  4. choose "move"

Expected behaviour

Selected pictures are moved to the desired folder

Actual behaviour

Some pictures are moved, then the app crashes.

Android version

13

Device brand and model

ONEPLUS A6013

Stock or custom OS?

Custom (explain in "additional information")

Nextcloud android app version

30290190

Nextcloud server version

29.0.0

Using a reverse proxy?

No

Android logs

Cause of error

Exception in thread "Thread-30" java.lang.IllegalStateException: Couldn't read row 578, 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:819)
    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

Device information

Firmware

Server error logs

No response

Additional information

No response

OnkelTomsHuette commented 1 month ago

LineageOS 20.0 with microG

OnkelTomsHuette commented 4 weeks ago

Hi, i use lineageos for microG (20-20240205-microG-fajita). I installed it directly from https://lineage.microg.org/

I did not change or compile anything by myself. As far as I know, the difference is, that there is no proprietary Google code included. Google apps (vor parts oft them) that use proprietary code are reverse engineered and rewriten as open source variants.

Does this hell you?

Greetings Markus

09.08.2024 12:25:03 Nirvana @.***>:

Hello! Ive been trying to get this bug to replicate but I cant seem to. Are we able to communicate about what is custom or different about your android version?

— Reply to this email directly, view it on GitHub[https://github.com/nextcloud/android/issues/13306#issuecomment-2277636386], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ALQ52LXLA3WHTVWN4ENGQ6DZQSKFPAVCNFSM6AAAAABLGXNWW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZXGYZTMMZYGY]. You are receiving this because you authored the thread. [Verfolgungsbild][https://github.com/notifications/beacon/ALQ52LSAAS2X3BA7DRW5QJTZQSKFPA5CNFSM6AAAAABLGXNWW2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUHYH4SE.gif]

Explainin commented 4 weeks ago

Hi, i use lineageos for microG (20-20240205-microG-fajita). I installed it directly from

https://lineage.microg.org/

I did not change or compile anything by myself. As far as I know, the difference is, that there is no proprietary Google code included. Google apps (vor parts oft them) that use proprietary code are reverse engineered and rewriten as open source variants.

Does this hell you?

Greetings

Markus

09.08.2024 12:25:03 Nirvana @.***>:

Hello! Ive been trying to get this bug to replicate but I cant seem to. Are we able to communicate about what is custom or different about your android version?

Reply to this email directly, view it on GitHub[https://github.com/nextcloud/android/issues/13306#issuecomment-2277636386], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ALQ52LXLA3WHTVWN4ENGQ6DZQSKFPAVCNFSM6AAAAABLGXNWW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZXGYZTMMZYGY].

You are receiving this because you authored the thread.

[Verfolgungsbild][https://github.com/notifications/beacon/ALQ52LSAAS2X3BA7DRW5QJTZQSKFPA5CNFSM6AAAAABLGXNWW2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUHYH4SE.gif]

Yes that does thank you :). Apologies I've been trying to replicate it with different versions. But ill need to try that one specifically to see if i can root it.

joshtrichards commented 2 days ago

Duplicate of #13001