Closed freak4pc closed 9 months ago
Maybe this is the cause? https://github.com/airbnb/lottie-ios/pull/2208
Can you please send a full animation json file to me at cal@calstephens.tech? Thanks
@calda Done
Maybe this is the cause? #2208
Seems unrelated to this unfortunately
The same in our project. If we are trying to pass data animation to the Lottie, it throws an error.
LottieAnimation.from(data: lottieAnimationData)
Lottie.InitializableError.invalidInput
Same thing here, same version
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.
Seems this is reproducible, @calda mind removing that label?
Forgot to remove the label when you sent me the animation json, thanks
@freak4pc, I tested this locally and this issue was indeed fixed by https://github.com/airbnb/lottie-ios/pull/2208. This animation loads and plays correctly on master
, but fails to load if I revert https://github.com/airbnb/lottie-ios/pull/2208.
That's great, thank you ! 😊 😄
Hello! We're having the same issue when updating from 3.2.1
to 4.4.2
. The code we're running is the following
private let splashAnimationView: LottieAnimationView = LottieAnimationView()
...
splashAnimationView.animation = LottieAnimation.named("Splash", bundle: componentsBundle)
This was working correctly and after the update came with:
Error when decoding animation "Splash": invalidInput(file: "/Users/user/path/to/the/project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/lottie-ios/Sources/Private/Model/Objects/Marker.swift", line: 16
Is this expected to fail with this error? Is there any other code we can try? Thank you so much 🫂
✅ [Update] Our problem was located in the Splash
file. A "dr" field had a String value instead of Float. We had to manually change the file and it is now working.
We noticed a specific animation file which worked under Lottie 4.2.0 doesn't work anymore in 4.3.3.
It throws an
invalidInput
error here, when trying to get the vertices of a bezier path, it seems. I tried to track down the exact cause but was a bit unsuccessful:Being called from here:
I'm happy to share the animation JSON in a DM / private link to a maintainer of that's possible :)
This is the specific section it was trying to decode:
Which Version of Lottie are you using?
Lottie 4.3.3
Expected Behavior
Animation plays without issues
Actual Behavior
Getting
Error when decoding animation "email-verification": invalidInput
Animation JSON
I'm happy sending it to you in a DM if that's applicable but can't share it in a GH Issue