-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Memory leaks with backgroundUpload
causing crashes
#288
Comments
I've also tried 'cancelling' an upload after its done, hoping it would collect the garbage. But unfortunately it does nothing. |
@numandev1 hey man, hope you're doing well! Are you able to reproduce this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current behavior
Uploading 69 video files ranging from 12 MB to 170 MB (using an asyncqueue with concurrency limit of 5) will cause to increase the memory usage on iOS Simulator easily to 4 GB without releasing memory after a successful upload. Unmounting the uploading logic in JS will also not release memory.
I have received various crash reports from Firebase Crashlytics about iPhones experiencing crashes due to this.
Expected behavior
After an upload is done the memory should be released from that task.
Platform
React Native Version
0.73.2
React Native Compressor Version
1.8.24
Reproducible Steps And Demo
Video demo
https://mega.nz/file/J4kDTJbT#Tf_zWMLtmg98Ax921nRlCkxh2YnouabflKnk0G-PgUE
The text was updated successfully, but these errors were encountered: