CommunityToolkit / CommunityToolkit/Lottie-Windows
Exception when loading specific json file
- Dominant language
- C#
- Stars
- 717
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
I run the LottieViewer in debug mode and load the json file attached, an exception is thrown.
[Animation - 1724221235765.json](https://github.com/user-attachments/files/16703584/Animation.-.1724221235765.json)

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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.