-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Main Thread rendering engine doesn't currently support repeaters. To play an animation with repeaters, you can use the Core Animation rendering engine instead #1739
Comments
I have the same issue |
I fixed this issue. |
@FreestyleRR which Animation are you using? Still, it is not working for me. For the mentioned above json. |
Json animation and I have the same issue |
Support for repeaters is currently only implemented for the new Core Animation rendering engine, which you currently have to enable manually as mentioned above (in Lottie 4.0 it will be enabled by default). It should be possible to implement repeater support for the Main Thread rendering engine though -- PRs are welcome if anyone wants to give it a shot. |
@FreestyleRR above is the code snippet, but still the same crash. |
I've got the same issue. Lottie/ItemsExtension.swift:83: Fatal error: The Main Thread rendering engine doesn't currently support repeaters. just trying to render on a viewController...all it's doing is presenting the animation view. |
I am also experiencing this crash while instantiating the animationView like this: @kanji-dubizzle Did you resolve the issue on your end? |
We could change this to be a warning that prints to console ( Is anyone interested in making a pull request for this change? It should be a one-liner 😄 |
Yes, #1754 only prevents the "unsupported" warning message from crashing the app in debug builds. @kanji-dubizzle, have you tried playing your animation with the Core Animation rendering engine? That implementation supports repeaters. |
is crashing .coreAnimation, is there anything I am doing wrong? |
It looks like your animation uses features that aren't supported yet by the Core Animation rendering engine. What version of Lottie are you using? Could you share a copy of your animation? |
3.4.2. |
Could you test your animation on the latest version, |
I'm also having the same problem with an animation file. What makes an animation not work with Core Animation? |
i have same problem ,any one find solution |
We ended up replacing our animation with one that looks exactly the same but with a different implementation from the designer and got really good results. |
I was having the same issue while using Lottie 3.4.3. Updating to 4.2.0 solved the issue. |
Hi, I am getting this error.
Which Version of Lottie are you using?
Lottie 3.4.3
Animation JSON
https://lottiefiles.com/59461-heart-beat-pop-up
The text was updated successfully, but these errors were encountered: