Closed sindresorhus closed 1 year ago
Are you able to capture stderr? That would be helpful, since it lacks the error message.
The error is from a random user, not me. The Crashlytics report does not include stderr.
Is there anything we can do to ensure the error message is included in the future?
Yeah, I could capture panics and return them from the API as errors + strings.
Isn't that unsafe? Panic is by definition for unrecoverable errors, so if it's actually recoverable, shouldn't the API panicking use Result
or something instead? I have no idea how Rust works though.
It's safe. Panic is equivalent to ObjC exception. It's thrown before something unsafe happens.
Closing as I haven't seen any more crashes like this.
https://console.firebase.google.com/project/gifski/crashlytics/app/ios:com.sindresorhus.Gifski/issues/c2da0bdd2b7fae3c734166dbf7d61d60?time=last-seven-days&sessionEventKey=a6fc7bdec398422caf43bda02b3a0a44_1631347088885649806
Gifski 2.20.0 on macOS 12.1.0
// @kornelski