TeamAmaze / TeamAmaze/AmazeFileManager
`IllegalArgumentException` on `PrepareCopyTask#onPostExecute`
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
- Package: com.amaze.filemanager
- Version: 3.7.2
- User Action: UI Error
- Request: Application crash
- OS: Linux Android 11 - 30
- Device: begonia
- Model: Redmi Note 8 Pro
- Product: begonia
Crash log
java.lang.IllegalArgumentException: View=DecorView@4dd0490[MainActivity]
not attached to window manager
at
android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:572)
at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:476)
at
android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:141)
at android.app.Dialog.dismissDialog(Dialog.java:389)
at android.app.Dialog.dismiss(Dialog.java:371)
at
com.amaze.filemanager.asynchronous.asynctasks.movecopy.PrepareCopyTask.onPostExecute(PrepareCopyTask.java:197)
at
com.amaze.filemanager.asynchronous.asynctasks.movecopy.PrepareCopyTask.onPostExecute(PrepareCopyTask.java:68)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.access$900(AsyncTask.java:199)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:8057)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:620)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1011)
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 in com.amaze.filemanager.asynchronous.asynctasks.movecopy.PrepareCopyTask, especially onPostExecute at line 197, and trace the dialog lifecycle around the reported crash. Reproduce the copy or move completion while the MainActivity window is detached, then verify that onPostExecute no longer throws the IllegalArgumentException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100