-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Exception in thread "AsyncTask" on FileSortOrderByName #11049
Comments
@UteHaus |
This bug cam when I selected a folder in the favorites or go back to the favorites. (With this exception the App closed.) The error came sporadically. Nexctloud App version: 3.23.1 |
I get the same behavior. It seems to load the favorites just fine and the suddenly crashes. This is the log the app shows me: Cause of errorException in thread "AsyncTask #11" java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:415)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
at java.util.concurrent.FutureTask.run(FutureTask.java:269)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Caused by: Exception in thread "AsyncTask #11" java.util.ConcurrentModificationException
at java.util.ArrayList.sort(ArrayList.java:1472)
at java.util.Collections.sort(Collections.java:206)
at kotlin.collections.CollectionsKt__MutableCollectionsJVMKt.sortWith(MutableCollectionsJVM.kt:42)
at com.owncloud.android.utils.FileSortOrderByName.sortServerFiles(FileSortOrderByName.kt:58)
at com.owncloud.android.utils.FileSortOrderByName.sortCloudFiles(FileSortOrderByName.kt:43)
at com.owncloud.android.ui.adapter.OCFileListAdapter.setData(OCFileListAdapter.java:700)
at com.owncloud.android.ui.fragment.OCFileListSearchAsyncTask.doInBackground(OCFileListSearchAsyncTask.kt:70)
at com.owncloud.android.ui.fragment.OCFileListSearchAsyncTask.doInBackground(OCFileListSearchAsyncTask.kt:33)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012) App information
Device information
Firmware
|
This appears to match most of the traces in #7782, but reliable reproduction steps are hard to come by. Let's consolidate this matter there. |
Steps to reproduce
Swap down on the folder view, to update the list.
Or switch from settings to list view.
Expected behaviour
The app not break.
Actual behaviour
The app crashes when updating the list of files.
Android version
30220390
Device brand and model
pixle 4
Stock or custom OS?
Custom (explain in "additional information")
Nextcloud android app version
3.22.3
Nextcloud server version
25.0.1
Using a reverse proxy?
No
Android logs
Cause of error
App information
com.nextcloud.client
30220390
gplay
Device information
google
sunfish
Pixel 4a
SQ3A.220705.004
sunfish
Firmware
32
12
8fda5a3502
Server error logs
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: