Skip to content

Exception when loading specific json file #561

Open
@WilliamYCLin

Description

@WilliamYCLin

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions