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

Exception when loading specific json file #561

Open
WilliamYCLin opened this issue Aug 22, 2024 · 0 comments
Open

Exception when loading specific json file #561

WilliamYCLin opened this issue Aug 22, 2024 · 0 comments

Comments

@WilliamYCLin
Copy link

WilliamYCLin commented Aug 22, 2024

I run the LottieViewer in debug mode and load the json file attached, an exception is thrown.
Animation - 1724221235765.json

image

The exception is thrown at source/LottieData/Optimization//MergeHelper.cs, line 616 and line 617.
If I change these two lines to the follwing:

args.InFrame = Math.Clamp(args.InFrame, range.Start, range.End - 1e-8);
args.OutFrame = Math.Clamp(args.OutFrame, range.Start + 1e-8, range.End);

There'd be no exception, the lottie json can be played. May you please check this? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant