lottie-ios
lottie-ios copied to clipboard
Raises an exception on iOS app running M1 mac. (Running with Designed for iPhone)
Check these before submitting:
- [x] The issue doesn't involve an Unsupported Feature
- [x] This issue isn't related to another open issue
This issue is a:
- [] Non-Crashing Bug (Visual or otherwise)
- [x] Crashing Bug
- [] Feature Request
- [] Regression (Something that once worked, but doesn't work anymore)
Which Version of Lottie are you using?
Lottie 3.0
What Platform are you on?
- [] MacOS
- [x] iOS (But running on M1 mac)
What Language are you in?
- [x] Swift
- [] Objective-C
Expected Behavior
Actual Behavior
Code Example
Animation JSON
https://gist.github.com/muukii/350fd80a53958179b2efa576126c12b0#file-aninmation-json
Thanks to a great library that enables incredible smooth animations on the App, we can create animations what we want. So, I faced an issue while running the iOS app on M1 mac that built with arm64. and this runs as designed for iPhone. I don't know why, but CoreAnimation framework raises an exception about manipulating CATransform3D.
I'll attach more information if you needed. Thanks.
I guess we are first on this page. Can't find anything about it.
For now, I just need to run app, so I removed skewed()
part of makeTransform
method in VectorsExtensions.swift:214
return CATransform3DMakeTranslation(position.x, position.y, 0)
.rotated(rotation)
// .skewed(skew: -skew, skewAxis: skewAxis)
.scaled(scale * 0.01)
.translated(anchor * -1)
Animation work. But we use just loader animation
- Are you running Lottie with Xcode in Rosetta mode?
- Are you using Cocoapods or Swift Package Manager to pull
lottie-ios
?
We are also facing the same issue. The Xcode is running natively on MacBook Pro M1 (not on Rosetta), and we are using the SPM integration with the latest version 3.2.1.
We just started experiencing this exact same issue. We're using Carthage to build Lottie, but the crash persists if I update it to use SPM. Like @rsaadi the crash occurs when running on an M1 Mac with Xcode not in Rosetta mode.
The interesting thing is we haven't updated Lottie or the animation recently (except to test whether SPM would fix the problem). The commit on our side that causes the crash to occur added an unrelated dependency via SPM.
Same, here using M1 Mac. Workaround for me was to set Xcode to run in Rosetta mode.
Same issue here on a macOS app. Code was building and running fine just a few weeks ago. Using SPM in Xcode on M1 (not Rosetta). We have not updated the animation. It was working fine in June...which is kind of weird as nothing seems to have changed in the repo since that date. The crash log : #0 0x000000018d9aa0e0 in objc_retain () #1 0x000000010423fc88 in ___lldb_unnamed_symbol3021$$libMTLCapture.dylib () #2 0x0000000101c8f1a0 in static CATransform3D.makeSkew(skew:skewAxis:) at /Users/matthieu/Library/Developer/Xcode/DerivedData/AvalancheApp-bptrdxgccwlhdibmvszjccdwbdlx/SourcePackages/checkouts/lottie-ios/lottie-swift/src/Private/Utility/Primitives/VectorsExtensions.swift:204 #3 0x0000000101c8edb8 in CATransform3D.skewed(skew:skewAxis:) at /Users/matthieu/Library/Developer/Xcode/DerivedData/AvalancheApp-bptrdxgccwlhdibmvszjccdwbdlx/SourcePackages/checkouts/lottie-ios/lottie-swift/src/Private/Utility/Primitives/VectorsExtensions.swift:182
I've been seeing this issue as well, started seeing it with Xcode 12.5.1 IIRC.
For some reason this seems related to the use of SpriteKit/Metal (at least this is the case for a project I'm working on), and if I remove any SpriteKit/Metal code the issue disappears.
Curious if anyone else is using either of these frameworks in their projects?
Still having the issue, the workaround doesn't work for me. Any updates?
Hello. I am running Lottie in a macOS app using the latest official branch (reference to the old Mac-only branch was removed). Compiles fine but raises the same error in makeSkew(…)
Matthieu
On 24. Jan 2022, at 11:14, Fabio Pelizzola @.***> wrote:
Still having the issue, the workaround doesn't work for me. Any updates?
— Reply to this email directly, view it on GitHub https://github.com/airbnb/lottie-ios/issues/1304#issuecomment-1019932788, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIB6RTYIM7WZLNS3KMWJWQLUXURCHANCNFSM4VJX3JIA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.
Is anyone still able to reproduce this issue? The linked animation plays correctly for me using Lottie 4.0 on my M1 Mac.
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.