-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Bug]: iOS App hangs very frequently when using Compottie #15
Comments
Any animation example / xcode profiling info? What is causing the ANR? Memory? Cpu? |
The code is 99% shared so it can be a Compose issue |
Yes, i have multiple animations from same json running in the same screen This is only happening in release build, I never encountered this when running app on debug builds or in simulator Few animations which i am using: |
Try to disable composition cache with |
It's hard to tell anything concrete without a reproducer. |
Making a reproducer is difficult, as it just happens even with a simple lazy column App is not open source. The composable i shared above, is how i use it everywhere. I'll try with disabling composition cache and update here |
@alexzhirkevich It still crashes |
I managed to get some Crash logs, maybe that might help |
@alexzhirkevich Any update on this? Facing the same issue |
Do you have a reproducer? |
Its completely random. I am using it as in the Read me |
Any relevant stacktrace? Profiling info? Memory dump? |
It's the same crash logs as @Vaibhav2002 |
This logs only says that the app was terminated due to exceeding the backround work quota. |
Compose 1.6.11 |
Any special usages? Maybe this happen when you use lotties with images or with dynamic properties? |
Yes dynamic properties are used for light and dark switch |
Can you try it without dynamic properties and then without images? It will help to find the root cause |
May be improved in |
@alexzhirkevich What was the cause? |
There just was some refactoring in terms of synchronisation and simultaneous composition running. I can't be sure it is fixed completely since there is no reproducer. You can try it in non-prod env |
@Vaibhav2002 @LaatonWalaBhoot Is the issue fixed for you on iOS with latest versions? |
@sahilbajaj Seems like the issues have subsided for now. But unfortunately this observation is purely anecdotal |
Thanks @LaatonWalaBhoot |
@alexzhirkevich Crash Details:
Address Calculation:
Symbolicated Output:
|
@vickyleu Thanks for detailed crash log. |
We're currently using only one Lottie animation, and the crash is triggered very rarely. I clicked for an entire afternoon and it only happened once. Out of approximately 400 phased-release users, about 7 to 10, only ios, compottie rc-02 |
@alexzhirkevich I have sent the email attachment |
What happened?
iOS App hangs very frequently when scrolling lists, swiping pager, selecting bottom nav items if there are lottie animations in the UI
Like in every 2-3min while just scrolling a vertical lazy list or switching pager, iOS App completely hangs and user has to close the app and re-open it
Reason why I feel its due to Compottie
I replaced every lottie animation in app with a blank
Box
composable and even after hours of scrolling, swiping pages, doing all kind of interactions, app did not hang at allTested this for 2 days, and there has not been a single hang
While as soon as i uncomment the Compottie code, the frequent app hangs starts again
This is degrading User Experience a lot.
This is only happening on iOS, Android works pretty good with no such hangs
Composable code
Unsupported features
What Compottie version do you experience the bug on?
2.0.0-beta02
What platforms are you seeing the problem on?
iOS
Does Compottie log anythyng to the stdout / your logger set with
Compottie.logger
?The text was updated successfully, but these errors were encountered: