Closed mirceaciu closed 2 years ago
Could this be similar to the cached image issue described here https://github.com/facebook/react-native/issues/12220 ?
I will close this as I assume the issue was on my side.
The way I wrote my code the Video component would never be released, so when the video source was changed a new component would be created but the old one kept open. This was a memory leak, possible case of 'to many files'
I started using this with react-native-video. My video component receives the source as a prop, after a video is done playing the source is refreshed a playback starts again (loop play).
The files do get cached as the app is able to work offline an no more requests are made to the server. But after some time the app will crash with such an error
This will not happen if I just stream each video. With streaming I can run the app for days without issues but with caching after a few hours ( or minutes, random time) the app will crash.