-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In 3.4.1 version when uploading data , progress is jumping #198
Comments
Hi Victor, some questions that would help me investigate: Is there any pattern to where this is more likely to happen (large files, multiple files, etc)? And are you seeing this for a default URLSession configuration or one that's in the background? Which platform and OS version are you seeing this on? |
I tested both single and multiple file uploads, and the issue occurred with smaller video files ranging from 68 MB to 200 MB. However, I haven’t tested with larger files yet. We are using sessionConfiguration: .background(withIdentifier) and have tested this only on iOS. I couldn’t reproduce this issue in version 3.3.0. |
Hi @mvictor27 Investigating this had to take a backseat for a bit due to some other things popping up on my calendar. I will take a look at this in the New Year. Thanks for providing extra input! |
Hi @donnywals, I tested v3.4.2 and had the same problem (iPad and iPhone on iOS 18.2).
|
Thanks for looking at this @sylvain-villet! Very useful information to have since I haven't been able to sit down and investigate this just yet. |
@donnywals any news on that? It makes the new versions unusable which means that we still have plenty of crashes in production due to the other issue I fixed. |
Hi Sylvain, I started investigating yesterday. Not quite sure on why it's happening exactly and I'm reluctant to agressively clamp values which would hide the problem but wouldn't actually fix anything. Hopefully today I'll figure this one out and get a fix in. Apologies for the delay on the investigation on this one; with the christmas holidays and some other stuff that came up last week I haven't really been able to find time earlier... |
Hi @sylvain-villet This bug seems to have been around for a long, long time for chunked uploads. I've got a fix up on the My plan is to tag and release this fix on Monday. There is a slight change in behavior...
As a small sidenote, even though we fully support chunked uploads, our recommendation is to upload files in their entirety since TUS would allow you to resume failed uploads from where they've left off without chunking. |
Thanks, that's great news. We're using the v3.3.0 currently and I think it behaves as you're describing here. |
In the latest version, we’ve noticed that when attempting to upload data, bytesUploaded can occasionally exceed totalBytes. Additionally, it sometimes reports a lower value for bytesUploaded before suddenly jumping to a higher one. I'm seeing this happening on progressFor(id...
The text was updated successfully, but these errors were encountered: