-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LottieLogger.assertFailure
should not crash in Release build.
#1663
Comments
Is your release build using -Onone? If not, but you're still experiencing a crash in release builds, could you share a sample project that reproduces the issue? You can always customize the behavior of |
Ah I just noticed that you had attached a sample project. Thanks! This does seem unexpected -- I don't understand why it crashes when you call assertionFailure: @escaping AssertionFailure = Swift.assertionFailure, if I change the assertionFailure: @escaping AssertionFailure = { message, file, line in
Swift.assertionFailure(message(), file: file, line: line)
}, then the crash goes away. This seems pretty bizarre. |
Haha wow ok, this is weird for sure. |
I filed a compiler bug for this, since it seems unexpected: swiftlang/swift#60249 |
Thank you so much! |
This is fixed in today's 3.4.1 release by the way 👍🏻 |
Which Version of Lottie are you using?
Lottie 3.3.0
Expected Behavior
LottieLogger.shared().assertFailure
should not trigger in Release build. Assertion should be filtered.Actual Behavior
It crashes when
assertFailure
happened. Did not work as expected.Demo
latest.zip
The text was updated successfully, but these errors were encountered: