wcandillon / react-native-expo-image-cache

React Native Image Cache and Progressive Loading based on Expo
MIT License
668 stars 125 forks source link

Android crash: Error: socket failed: EMFILE (Too many open files) #98

Open MickeyMcc opened 5 years ago

MickeyMcc commented 5 years ago

In Android production getting the following error resulting in ANR/Crash

Error: unable to open database file (code 2062) ################################################################# Error Code : 2062 (SQLITE_CANTOPEN_EMFILE) Caused By : Application has opened too many files. Maximum of available file descriptors in one process is 1024 in default. (unable to open database file (code 2062)) #################################################################

I think it is unlikely that I actually have 1024 images open at the same time (probably closer to 300). Is there a way to force close files or end the process and start another?

App runs fine in development and for a few minutes in production, but after sufficient browsing, freezes and then if you quit and try and reopen it will not reopen. Works great on iOS.