CommunityToolkit / CommunityToolkit/Lottie-Windows

Exception when loading specific json file

Open
#561 0 comments 0 reactions 0 assignees View on GitHub
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)

![image](https://github.com/user-attachments/assets/cd66a4bd-8a44-449c-b89c-fb77b4b4b117)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.