airbnb / lottie-android

Render After Effects animations natively on Android and iOS, Web, and React Native
http://airbnb.io/lottie/
Apache License 2.0
34.92k stars 5.4k forks source link

asyncupdate have a crash #2511

Open FeanCheng opened 2 months ago

FeanCheng commented 2 months ago

java.lang.IllegalStateException: The specified message queue synchronization barrier token has not been posted or has already been removed.

CleanShot 2024-06-14 at 16 14 52

FeanCheng commented 2 months ago

I quickly switched between multiple Lotties, and this problem was triggered. Lottie version : last version

gpeal commented 2 months ago

This stack trace doesn't flow through any Lottie code so it may be either unrelated to Lottie or something out of Lottie's control on your phone or version of Android.

Is this reliably reproducible? If so, can you create a project that reproduces this?

FeanCheng commented 2 months ago

Okay, perhaps I need some time to try to reproduce it as much as possible.

Fylan0 commented 1 month ago

Okay, perhaps I need some time to try to reproduce it as much as possible.

Hello, I encountered the same exception after using two Lottie animations in my project. However, I tried to reproduce it but couldn’t, so I’m not sure what caused it. Did you manage to locate the issue?

v6.4.1

Fylan0 commented 3 weeks ago

I used the code from the sample。 app:lottie_asyncUpdates="enabled"

It can cause an ANR or the exception.

Xnip2024-07-29_16-32-43

gpeal commented 3 weeks ago

@Fylan0 Can you be more specific with your repro steps?

gpeal commented 3 weeks ago

@Fylan0 ANRs and exceptions are also two different things. Which one are you encountering? Can you include a bugreport/stacktrace for either?