TeamAmaze / TeamAmaze/AmazeFileManager
`ConcurrentModificationException` on `Drawer#refreshDrawer`
Open
Nobody has claimed this yet.
From-Email
Issue-Bug
- Dominant language
- Kotlin
- Stars
- 6.4k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
Issue explanation (write below this line)
Exception
- App Name: Amaze File Manager
- Package: com.amaze.filemanager
- Version: 3.7.0
- User Action: UI Error
- Request: Application crash
- OS: Linux Android 8.0.0 - 26
- Device: elsa
- Model: LG-US996
- Product: elsa_nao_us
Crash log
java.lang.RuntimeException: Unable to resume activity
{com.amaze.filemanager/com.amaze.filemanager.ui.activities.MainActivity}:
java.util.ConcurrentModificationException
at
android.app.ActivityThread.performResumeActivity(ActivityThread.java:3715)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3755)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1662)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6710)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
Caused by: java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.next(ArrayList.java:860)
at
com.amaze.filemanager.ui.views.drawer.Drawer.refreshDrawer(Drawer.java:341)
at
com.amaze.filemanager.ui.activities.MainActivity.updateUsbInformation(MainActivity.java:1328)
at
com.amaze.filemanager.ui.activities.MainActivity.onResume(MainActivity.java:1295)
at
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1355)
at android.app.Activity.performResume(Activity.java:7084)
at
android.app.ActivityThread.performResumeActivity(ActivityThread.java:3690)
... 8 more
—Joel C. Salomon
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at Drawer.refreshDrawer in Drawer.java around line 341, then trace the resume path through MainActivity.updateUsbInformation and MainActivity.onResume. Reproduce the crash while resuming the Android app and verify that the drawer refresh completes without a ConcurrentModificationException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100