react-native-webp-format icon indicating copy to clipboard operation
react-native-webp-format copied to clipboard

iOS Crash - "The OS most likely terminated your app because it overused RAM"

Open dylmye opened this issue 3 years ago • 2 comments

Hi! Thanks for making this package.

We're trying to use this package to run multiple animated Webp files at once. On iOS, without this package we only saw the first frame of the Webp and using this package we see the animated image, which is great. However after 10 seconds or so, it crashes the iPhone. We get this log in our error capture:

OutofMemory: The OS most likely terminated your app because it overused RAM

This only started after we added this package and when we are looking at the animated images. The images are about 5MB each (I can send them to you privately if it helps reproduce the issue.)

dylmye avatar Aug 18 '22 10:08 dylmye

Have you found a solution? We have the issue that this package is required to have WebPs work with iOS 12. However, it seems to cause memory issues on newer iOS versions ...

smn-snkl avatar Jan 17 '23 18:01 smn-snkl

Have you found a solution?

Unfortunately not, the solution we came up with in the end was using Platform.OS to show a webp to Android and an mp4 to iOS. Sorry I don't have better news for you :(

dylmye avatar Jan 18 '23 00:01 dylmye