itinance / react-native-fs

Native filesystem access for react-native
MIT License
4.97k stars 986 forks source link

Got "Could not invoke RNFSManager.hash" error while hashing large video file. #364

Open zhenghow93 opened 7 years ago

zhenghow93 commented 7 years ago

screenshot_2017-10-19-14-52-41

Encountered this issue while I'm trying to hash large video file. Hashing works fine when the video is just 1 or 2 MB. Not sure what is the minimum file size that will trigger this issue, but for me, I got this error while I was attempting to hash a 56.23MB video file (video duration: 4 minutes 23 seconds).

Platform: Android Android Version: 4.4.2 react-native version: 0.46.4 react-native-fs version: 2.5.1 Device: Samsung Galaxy Note 2 (GT-N7100)

zhenghow93 commented 7 years ago

Upgraded to react-native-fs 2.8.1, issue still persists.

zhenghow93 commented 7 years ago

2017-11-10 at 19-12-17

After some debugging on Android Studio, "OutOfMemoryError" seems to be the culprit behind all these. My old device has fairly low capacity of ram, as most of it are occupied by I-don't-know-what processes. Any advice workaround? @itinance Thank you very much in advance.