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
I'm trying to read a chunk of size 50 MB from a ~130 MB file, I'm using RNFS.read, according to docs this reads a specific length starting from an offset, but this 50MB chunk tries to allocate memory equal to the whole file size and this fails due to ram size.
Tried with 15 MB, and it worked like a charm.
Tried with 30 MB, but it tried to allocate 80 MB of RAM which failed.
Am I missing something here? why it does try to allocate more memory than it need?
The text was updated successfully, but these errors were encountered:
I'm trying to read a chunk of size 50 MB from a ~130 MB file, I'm using RNFS.read, according to docs this reads a specific length starting from an offset, but this 50MB chunk tries to allocate memory equal to the whole file size and this fails due to ram size.
Tried with 15 MB, and it worked like a charm.
Tried with 30 MB, but it tried to allocate 80 MB of RAM which failed.
Am I missing something here? why it does try to allocate more memory than it need?
The text was updated successfully, but these errors were encountered: