airbnb / lottie-ios

An iOS library to natively render After Effects vector animations
http://airbnb.io/lottie/
Apache License 2.0
25.7k stars 3.74k forks source link

CGPointExtension causes crash #2356

Closed Rspoon3 closed 5 months ago

Rspoon3 commented 6 months ago

CGPoint.init(value:) is crashing in CGPointExtension.swift. This stems from creating a LottieAnimation from a file path. This work is being kicked off from a AsyncStream on a background thread. This is happening on multiple iOS devices and iOS 15, 16, and 17 over the last 90 days.

The Firebase stack trace points to Line 20

Screenshot 2024-04-01 at 11 18 13 AM

Which Version of Lottie are you using?

Lottie 4.2.0 and 4.4.1

Expected Behavior

Creating a LottieAnimation should not cause a crash.

Actual Behavior

Creating a LottieAnimation occasionally causes a crash.

calda commented 6 months ago

For us to investigate, share a sample project that demonstrates this crash.

github-actions[bot] commented 5 months ago

This issue is stale because it is marked "can't reproduce" and has had no activity in the past week. Please comment with additional information, or this issue will be closed due to inactivity in one week.

Rspoon3 commented 5 months ago

@calda I have created a demo project that uses the same manner our application, but I cannot reproduce the crash with it. However I’m not to surprises by this as no-one within my company can replicate the original crash in the first place. Should I reopen this issue with demo project or will it be marked as closed/not reproducible?

calda commented 5 months ago

If the sample project doesn't reproduce the crash then no need to share or re-open this issue. Thanks for taking a closer look though!