itinance / itinance/react-native-fs

Real device app crash on uploading files due to memory leaks

Open
#746 4 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

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

2.
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.