You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whats my Problem:
The app crash while uploading serval files with some mbs. The total size of all files is 2,8gb. The app crashes due to a memory issue. Tested on a real iPad with 2 gb of memory. The files are pdfs.
What I have tested:
1.
I tried to upload file after file and the memory of the device stacked after each file, the size of the file itself. So it crashed on the 30 file because my iPad hadn't that much memory space left.
I also tried to reinitialize RNFS and nullified the existing one. But the memory does not shrink to its original size. In that case my app always will crash after doing some uploads.
I'm currently struggling with the same issue. Using the RNFS.read() method in a loop doesn't release the memory for some reason. There's a linear growth in memory usage with each read/uploaded file chunk.
Whats my Problem:
The app crash while uploading serval files with some mbs. The total size of all files is 2,8gb. The app crashes due to a memory issue. Tested on a real iPad with 2 gb of memory. The files are pdfs.
What I have tested:
1.
I tried to upload file after file and the memory of the device stacked after each file, the size of the file itself. So it crashed on the 30 file because my iPad hadn't that much memory space left.
Image of the simulator memory stack
https://ibb.co/4gjM3Jq
I also tried to upload all Files at once. The App crashed instantly because the memory of my device was instant full.
Image of the simulator memory stack
https://ibb.co/wCPV0mL
I also tried to reinitialize RNFS and nullified the existing one. But the memory does not shrink to its original size. In that case my app always will crash after doing some uploads.
Enviroment:
react: 16.6.3
react-native: 0.57.8
react-native-fs: 2.13.3
The text was updated successfully, but these errors were encountered: