App getting terminated in iPhone Devices due to memory issue. #1993
Replies: 5 comments
-
Please share a copy of your animation json if you're able to |
Beta Was this translation helpful? Give feedback.
-
Here is Animation file:- https://drive.google.com/file/d/1p81zap5WqVB35IeFCzoGyc7Ak5zoC7Fp/view?usp=sharing |
Beta Was this translation helpful? Give feedback.
-
@calda I have also faced the same issue for a few JSON in my mobile app. and I have also tried with give JSON by @chaudharyvikram then also getting the same issue. @calda Can please help to solve this issue? I want to know what the main issue Is it in an animation file or is it related to Mobile App or library? |
Beta Was this translation helpful? Give feedback.
-
I took a look at the animation you shared @chaudharyvikram. The problem here is that the animation json itself is 20MB (very, very large) and contains over 650 images. When those images are decoded, they take up a very large amount of memory. Since this doesn't seem to be a bug in Lottie itself, I'm going to convert this from an issue to a discussion. |
Beta Was this translation helpful? Give feedback.
-
So there is only one solution that need to reduce images or need to use external images? |
Beta Was this translation helpful? Give feedback.
-
Which Version of Lottie are you using?
Lottie 4.1.3
Expected Behavior
Animation should work smoothly
Actual Behavior
App getting crashed due to memory issue. In Simulator it works fine. even other animations are working fine but some of them are not working.
Animation JSON
Due to privacy reason I can't able to attach json file. Will try to attach after permission.
Beta Was this translation helpful? Give feedback.
All reactions