-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Missing part of crash message #3905
Comments
Thanks for reporting this. I can reproduce the issue by adding the following code to our iOS-Swift sample app and running a release build on an iOS simulator. var dict = [Something() : "value", Something() : "value"]
for _ in 0..<100 {
dict[Something()] = "value \(1)"
}
class Something :Hashable {
private var x: Int = 0
static func == (lhs: Something, rhs: Something) -> Bool {
return true
}
func hash(into hasher: inout Hasher) {
hasher.combine(Int.random(in: 0..<100))
}
} |
Another example (also Hashable violation):
Interestingly, this one doesn't show the https://sindresorhus.sentry.io/share/issue/0e4faa9089734b2bbe498a1e876fb30e/ |
Platform
macOS
Environment
Production
Installed
Swift Package Manager
Version
8.24.0
Did it work on previous versions?
No response
Steps to Reproduce
Some code crashes in production for violating the Swift Hashable requirement.
Crash report: https://sindresorhus.sentry.io/share/issue/ab8eb435cc71469082a07cdbece72d70/
Expected Result
I expected to see the full error message.
Actual Result
Sentry only shows part of it, making it impossible to track down the issue.
Sentry shows:
While it should have shown:
Kinda looks like some sanitizing going wrong.
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: