-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Memory keeps rising #129
Comments
Hi @vaibhawc , it's been a while since last time 😏 I think the problem is caused by native module. I'll look into it, hope I can figure out this asap. Besides, does it happens on both Android and IOS ? |
@vaibhawc , I've done some tests on IOS devices which are basically upload files simutaneously. Perhaps it's related to a change in Due to some providers does not support the encoding #94 we disabled Here's the result when use this is how I use it RNFetchBlob.fetch('POST', `${TEST_SERVER_URL}/upload`, {
'Transfer-Encoding' : 'Chunked'
}, RNFetchBlob.wrap(file))
.uploadProgress((current, total) => {})
.then(() => {
....
}) And here's the diagram from XCode instrument leaks inspector, looks fine 👍 However, if I disable |
Hi @wkh237, this is some informative piece I just skipped before. I am doing some more testing and let you know. (need to be sure there isn't some other piece of code causing problem) |
@vaibhawc , could you try to replace the .uploadProgress(()=>{}) If you update GUI in the upload progress handler and it triggers at high frequency , it's also possible becomes a quite performance overhead |
Hey @wkh237, I am very sorry I am late to reply as I had forgotten about the thread. I faced another question and realized this issue is still open. Also, the problem here was with my code only. But thanks, you took out time to diligently test it out and explain things I would have skipped otherwise. |
improvement way to get root SDK versions
Hi @wkh237, it feels good to see this library being used and liked. Thanks.
I have been facing an issue lately, where the memory keeps rising in steps even when I am finished using the library. On another instance it does not happen while I am not using
uploadProgress
.I am basically trying to make a messaging app where user can upload files (mostly never even 1 MB) and while it is uploading he can see a progress bar like it is there in whatsapp.
Do you think there might be something in the library that can cause such a problem?
I tried 0.9.3,0.9.4, and now going to try the later versions of 0.9.4-beta.4 , beta.7, & 0.9.5 etc.
Do you suggest some things to keep in mind while uploading and observing progress?
The text was updated successfully, but these errors were encountered: