fluttercommunity / fluttercommunity/flutter_downloader
Garbage Collector issue, when i enqueue above 100 downloads and cancel it and then again enqueue,
- Dominant language
- Kotlin
- Stars
- 940
- Forks
- 561
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 1
Description
**Describe the bug**
So the bug is that garbage collection stop the download, don't start until garbage collector clean by itself during app is running or when i kill the app open it again
**To Reproduce**
1-first create a list of 100 url (can be small file of mp3) and enquue it in download manager,
2-after that cancel the enqueue download or running download using flutterdownload.remove, flutterdownload.cancel etc.
3-then again enqueue the download and again cancel it.
4-repeat the process 3 to 4 time, On 5th attempt , you will notice your download is taking longer time to start or it may halt for very long time
5- you will notice in flutter log that there is some kind of background garbage cleaning is going. when the garbage collection work done then after that your download start
6- Another way to start the download is to kill your app and start again, you download will start
**Expected behavior**
Download of Enqueue and Cancel should be smoothly done, should not be halt by any Garbage Collection
**Screenshots**
**Desktop (please complete the following information):**
- OS: Androind
-Flutter Version: 2.8.0
**Device information:**
- Device: Any Android
- OS: Any IoS version
- plugin version 1.7.3
**Additional context**
No
P.S: CANNOT UPDATE THE FLUTTER VERSION TO 3 for specific reasons, So i need to fix this deadlock in FLUTTER 2
Thank you, Awaiting for reply
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.