Open Rohan487 opened 1 month ago
Interesting! Does this happen immediately, early or later in the download process?
Not immediately but after some time. I guess its becuase there is no retry machenism for chunks?
It actually looks like a serialization problem, but likely one that only occurs in unusual circumstances (because that code hasn't changed for a while now). I need to look at it in more detail.
Based on the logs it looks like you are using an older version of the plugin. Can you upgrade to the latest and check if the problem persists? Thanks
Sorry, didn't mean to close it
hey in latest version download parallel download is working fine , however I am seeing some unexpected behaviour with the progress callback of parallel download.
As you can see un screenshot it sometimes just pass the details of every chunk instead of a group as explained in doc.
Which platform(s) does this happen on?
I tested on android 13
Strange - it suggests the child tasks are not marked as belonging to a parent task and I don't understand how that can be. Does this happen when the app has suspended (i.e. been in the background a long time)? It is possible that that somehow 'disconnects' the child tasks from the parent
Yes, it's working fine when it's in foreground means when I am on download screen .
When I minimize it ( going to home ) and after sometime if I open it, it shows the all chunks.
Ok that's helpful. Let me think about this.
More questions as I try to debug this: 1) When this happens, does the progress bar of the "main" task (the one with the proper name you gave it) progress as usual, or does it stop? 2) Does the main task eventually complete, even as these child task notifications show up, or does it not complete? 3) For the child tasks (with the com.bbflight etc name): do these notifications appear a) when the app is in the background, or b) when you bring the app into the foreground? 4) For the child task, does the progress bar show progress as usual? Does it complete (and remove the notification)?
Thanks for your help.
I use the task tracking database File Filedownloader().database.allRecords()
to display the list of tasks.
Hang on - I thought the screenshot you shared showed Android notifications showing up for the child tasks. Is that screenshot your own progress widget (using Filedownloader().database.allRecords()
)? If so, you should exclude tasks that have their group
field set to FileDownloader.chunkGroup
as that is a reserved group name used by the child tasks of the parallel download. You should never show those. If you normally don't assign a group, then you can get just the default tasks using Filedownloader().database.allRecords(group: FileDownloader.defaultGroup)
.
Can you confirm this is the issue, and nothing to do with notifications?
Describe the bug While testing ParallelDownloadTask ,all 10 parts download suddenly cancelled and got some errors in debug console
Logs If possible, include logs that capture the issue:
Same log was repeated 10 times cause chunks was 10
Code If possible, paste in the code snippet where you interact with the package:
Additional context Add any other context about the problem here.