fluttercommunity / fluttercommunity/flutter_downloader
Download is Not Working
- Dominant language
- Kotlin
- Stars
- 940
- Forks
- 561
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 1
Description
I'm getting this error
D/EGL_emulation( 2988): app_time_stats: avg=788.55ms min=4.57ms max=20855.36ms count=27
I/flutter ( 2988): Saved Directory: /storage/emulated/0/Android/data/com.example.pixifusion/files/downloads
I/flutter ( 2988): Download Task ID: f30f65e2-ab58-4e67-bd40-570efefad7e0
W/System.err( 2988): java.lang.NullPointerException
W/System.err( 2988): at vn.hunghd.flutterdownloader.DownloadWorker.downloadFile(DownloadWorker.kt:393)
W/System.err( 2988): at vn.hunghd.flutterdownloader.DownloadWorker.doWork(DownloadWorker.kt:206)
W/System.err( 2988): at androidx.work.Worker$1.run(Worker.java:86)
W/System.err( 2988): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
W/System.err( 2988): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
W/System.err( 2988): at java.lang.Thread.run(Thread.java:1012)
I/WM-WorkerWrapper( 2988): Worker result FAILURE for Work [ id=f30f65e2-ab58-4e67-bd40-570efefad7e0, tags={ flutter_download_task, vn.hunghd.flutterdownloader.DownloadWorker } ]
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Android download failure from the provided log, then inspect DownloadWorker.kt at downloadFile line 393 and the code that creates the download task. Compare the failing task's inputs with the worker's expectations; done means identifying the cause of the NullPointerException and confirming a download completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, flutter, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100