Skip to content
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

Lottie missing elements in Animation #2314

Open
LaatonWalaBhoot opened this issue Feb 10, 2024 · 3 comments
Open

Lottie missing elements in Animation #2314

LaatonWalaBhoot opened this issue Feb 10, 2024 · 3 comments
Labels
bug Core Animation rendering engine Regressions introduced by the Core Animation rendering engine

Comments

@LaatonWalaBhoot
Copy link

The JSON has elements missing while playing the animation. It works fine with Android Lottie.

Which Version of Lottie are you using?

Lottie 4.4.0

Expected Behavior

https://app.lottiefiles.com/share/b7da876e-c665-449b-a84b-a623f7016282

Actual Behavior

RPReplay_Final1707524084.MOV

Animation JSON

start_night.json

@calda calda added bug Core Animation rendering engine Regressions introduced by the Core Animation rendering engine labels Feb 14, 2024
@calda
Copy link
Member

calda commented Feb 14, 2024

This is some sort of bug with how the Core Animation rendering engine is laying out precomp layers and their children.

Here's a simplified version of the animation that has the same issue: issue_2414_simplified.json

@LaatonWalaBhoot
Copy link
Author

@calda Any idea if this will be worked on. My motion designer is livid that it can't be used.
Seems like an issue when base64 elements are present?

@calda
Copy link
Member

calda commented Feb 15, 2024

As an immediate workaround you can configure your LottieView / LottieAnimationView to use the Main Thread rendering engine, which doesn't have this problem and supports your animation as expected.

I think the issue with the animation is related to how the layer pre-compositions are very large (like 100000 px wide). If the precomp layers were a more reasonable size I think this issue wouldn't happen, but I'm not certain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Core Animation rendering engine Regressions introduced by the Core Animation rendering engine
Projects
None yet
Development

No branches or pull requests

2 participants