Skip to content

[BUG] Loading .lottie file results in null SkiaSharp.Skottie.Animation #3421

@vchelaru

Description

@vchelaru

Description

When loading a .lottie file, the resulting Animation is null. No exception is thrown, so it fails silently.

Lottie file:

https://app.lottiefiles.com/animation/5b206184-3c40-4a29-a6c4-0f62df06e4a8?channel=web&from=download&panel=download&source=public-animation

Image

Code

The best way to share code for larger projects is a link to a GitHub repository: https://github.com/user/repo/tree/bug-123

But, you can also share a short block of code here:

var animation = SkiaSharp.Skottie.Animation.Create(sourceFileAbsolute);

Expected Behavior

A valid (not null) Animation instance should be returned.

Actual Behavior

A null animation instance is returned instead.

Version of SkiaSharp

3.116.0 (Current)

Last Known Good Version of SkiaSharp

Other (Please indicate in the description)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Windows

Platform / Operating System Version

Windows 11

Devices

Windows 11 Desktop

Relevant Screenshots

Image

Relevant Log Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/SkiaSharpIssues that relate to the C# binding of SkiaSharp.os/Windows-ClassicIssues running on Microsoft Windows using Win32 APIs (Windows.Forms or WPF)tenet/reliabilityIssues relating to crashes or unexpected behaviorstype/bug

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions