FineUploader / fine-uploader

Multiple file upload plugin with image previews, drag and drop, progress bars. S3 and Azure support, image scaling, form support, chunking, resume, pause, and tons of other features.
https://fineuploader.com
MIT License
8.18k stars 1.87k forks source link

Firefox - Large single file - does not free memory #2048

Closed inzanez closed 6 years ago

inzanez commented 6 years ago

Type of issue

Uploader type

Note: Support requests cannot be accepted due to lack of time.

Bug Report #### Fine Uploader version Latest version #### Browsers where the bug is reproducible Firefox 61.0 64-bit #### Operating systems where the bug is reproducible Linux/Windows #### Exact steps required to reproduce the issue 1. Select 1 file, 10-20GB size 2. Upload 3. Wait till all memory is used up, including swap space I'm not doing anything fancy, just chunked uploading of a very large file with a chunk size of 4MByte, using a to select the file. Using Chrome or Chromium, this works well, the browser seems to free memory during upload and memory usage never goes up too high. Using Firefox however, the browser seems to literally eat all the memory, continue with the swap space and render the system unusable. The upload will stall of course.
rnicholus commented 6 years ago

please show your code - currently, i'm not sure what i can do to help here

inzanez commented 6 years ago

Sure, I'll compose something minimal and will get back to you.

inzanez commented 6 years ago

I will need to do some more tests. It seems that enabling concurrent chunking somehow got rid of the problem, maybe you know why that would be. I will do some more tests with different systems though...

inzanez commented 6 years ago

Well, I can confirm that the error is gone using concurrent chunking,...