Closed ariazz98 closed 4 months ago
Can you attach your animation?
I'm sorry but I cant provide the animation as it is company property.
I've analyzed the error log, and it appears that the crash was caused by improperly formatted animation resources.
Okay, I'll close this out then.
Lottie is supported and developed on nights and weekends. Issues from Lottie sponsors will be prioritized.
If you don't use this template, your issue will be closed. Delete this text once completed.
Checklist
Describe the bug A clear and concise description of what the bug is.
What version of Lottie did you test this on? 6.3.0 What version of Android did you test this on? 8.1.1 - 12 Steps To Reproduce Steps to reproduce the behavior:
My application previously relied on Lottie version 2.7.0, where numerous animations necessitated compatibility mode output in order to prevent crashes. Upon updating to version 6.3.0 recently, I've encountered instances where some of the animations exported in compatibility mode are now causing crashes. The following is the exception stack trace.
Maybe the problem is due to an error in the JSON resources being outputted in compatibility mode, and I am considering whether it would be more appropriate to change the statement from insertionPoint == colors.length - 1 to insertionPoint >= colors.length - 1 within the GradientColor#getColorForPosition method? ps:I cannot provide the specific JSON due to company restrictions, but I can only describe that the crash was caused by a certain gradient effect. Screenshots