lottie-ios
lottie-ios copied to clipboard
Lottie animation freezes whole app on 4.4.0/4.4.1 (works fine on 4.3.1)
After migrating from Lottie 4.3.1
to 4.4.1
(and 4.4.0
), we experience Lottie animations freezing whole app.
Which Version of Lottie are you using?
Lottie 4.4.1
(same behavior confirmed on 4.4.0
)
Expected Behavior
(video from 4.3.1
)
Actual Behavior
Screen with Lottie animation is freezing when opening.
(video from 4.4.1
, same behavior is on 4.4.0
)
Animation JSON
lottie_login_first_screen.json
Message in the console displayed after loading animation in 4.4.0
and 4.4.1
`transform.scale.x` animation for "Login-purple 4.Outer ring front 3.Transform" includes an After Effects expression (https://helpx.adobe.com/after-effects/using/expression-language.html), which is not supported by lottie-ios (expressions are only supported by lottie-web). This animation may not play correctly.
This message does not appear in 4.3.1
, it has a different one:
Encountered Core Animation compatibility issue while setting up animation:
[Login-purple 4] The Core Animation rendering engine partially supports time remapping keyframes, but this is somewhat experimental and has some known issues. Since it doesn't work in all cases, we have to fall back to using the main thread engine when using `RenderingEngineOption.automatic`.
This animation may have additional compatibility issues, but animation setup was cancelled early to avoid wasted work.
Automatically falling back to Main Thread rendering engine. This fallback comes with some additional performance
overhead, which can be reduced by manually specifying that this animation should always use the Main Thread engine.
Same issue as you. The block stack of main thread is, https://github.com/airbnb/lottie-ios/issues/2343
@calda Would you maybe have any hints into what we could look into to resolve it? Is there anything we can try to work on inside Lottie library, or can it be more an issue with the animation itself (judging by the debug log)?
You can try to use version 3.5.0 extensive animations work just fine on this version
This was fixed by https://github.com/airbnb/lottie-ios/pull/2381.
Thank you @calda for closing it 🙏