nextcloud / android

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

Crash of client after upgrade from NC18 to NC22 #9076

Closed wbxqm closed 2 years ago

wbxqm commented 3 years ago

Steps to reproduce

  1. no idea, sorry. The app keeps crashing ever since I upgraded to NC22
  2. upon starting the app, it run for ca. 3 seconds, then freezes
  3. sometimes the trace window pops up, offering to create a bug report.

Expected behaviour

Actual behaviour

Can you reproduce this problem on https://try.nextcloud.com?

Environment data

Android version: lineageos ginkgo based on android 10 Device model: redmi note 8) Stock or customized system: customized, I think Nextcloud app version: dev 20210928 Nextcloud server version: 22

**** CAUSE OF ERROR ****

java.lang.IllegalStateException: Couldn't read row 1085, col 0 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.owncloud.android.providers.FileContentProvider.deleteDirectory(FileContentProvider.java:179) at com.owncloud.android.providers.FileContentProvider.delete(FileContentProvider.java:134) at com.owncloud.android.providers.FileContentProvider.delete(FileContentProvider.java:114) at android.content.ContentProviderOperation.applyInternal(ContentProviderOperation.java:332) at android.content.ContentProviderOperation.apply(ContentProviderOperation.java:309) at com.owncloud.android.providers.FileContentProvider.applyBatch(FileContentProvider.java:675) at android.content.ContentProvider.applyBatch(ContentProvider.java:2117) at android.content.ContentProvider$Transport.applyBatch(ContentProvider.java:371) at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:532) at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:520) at android.content.ContentResolver.applyBatch(ContentResolver.java:1875) at com.owncloud.android.datamodel.FileDataStorageManager.saveFolder(FileDataStorageManager.java:438) at com.owncloud.android.operations.RefreshFolderOperation.synchronizeData(RefreshFolderOperation.java:529) at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:408) at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:238) at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:363) at java.lang.Thread.run(Thread.java:919)

**** APP INFORMATION **** ID: com.nextcloud.android.beta Version: 20210928 Build flavor: versionDev

**** DEVICE INFORMATION **** Brand: Xiaomi Device: ginkgo Model: Redmi Note 8 Id: QQ3A.200805.001 Product: ginkgo

**** FIRMWARE **** SDK: 29 Release: 10 Incremental: eng.me1.20200810.094723

Reverse proxy:

Logs

Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate

AlvaroBrey commented 2 years ago

Duplicate of #6103