Replies: 1 comment
-
I finally found answer in this comment // When we have an unhandled managed exception, we send that to Sentry twice - once managed and once native.
// The managed exception is what a .NET developer would expect, and it is sent by the Sentry.NET SDK
// But we also get a native SIGABRT since it crashed the application, which is sent by the Sentry Cocoa SDK.
// This is partially due to our setting ObjCRuntime.MarshalManagedExceptionMode.UnwindNativeCode above.
// Thankfully, we can see Xamarin's unhandled exception handler on the stack trace, so we can filter them out.
// Here is the function that calls abort(), which we will use as a filter:
// https://github.com/xamarin/xamarin-macios/blob/c55fbdfef95028ba03d0f7a35aebca03bd76f852/runtime/runtime.m#L1114-L1122 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that the same app version may use different sdks for error reporting.
![image](https://private-user-images.githubusercontent.com/64748654/401541343-4f51ab1e-dfd4-4bef-9cb0-8c5dcc96d2e6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTIwNTUsIm5iZiI6MTczOTI1MTc1NSwicGF0aCI6Ii82NDc0ODY1NC80MDE1NDEzNDMtNGY1MWFiMWUtZGZkNC00YmVmLTljYjAtOGM1ZGNjOTZkMmU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA1MjkxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBiMTRiYmI0YjM1ZDBhZjk3MTgwZWM1ZWNmNTU2MDgyYTkxNTNmZmM4MjEzMThhMjQ1ZTFkZjU2MDUxNmQzZjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Tu0NTa3vCp2OYZAV9N0PnKOik2zi8sqZ34BPkAmB3EQ)
![image](https://private-user-images.githubusercontent.com/64748654/401541406-7a49f507-2a91-4ac6-9b70-7bc9d12615cf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTIwNTUsIm5iZiI6MTczOTI1MTc1NSwicGF0aCI6Ii82NDc0ODY1NC80MDE1NDE0MDYtN2E0OWY1MDctMmE5MS00YWM2LTliNzAtN2JjOWQxMjYxNWNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA1MjkxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0NTRiNmEwMDlmYWM4NjAyNzE1ZWY2M2QxNjc0MzBjZmJmYWFlMjU0OTVkYzY1OWZjMDJmMWY1YWNhZWVmMTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.o3E7HGe--2fj6a7FjWeOg5QFqBOjGbORxrjVqhOEo-8)
I have read the source code, but I don't understand anyway why sdk is different. According to SentrySdk.cs, Cocoa SDK should always be used on iOS
Code from SentrySdk.cs:
Beta Was this translation helpful? Give feedback.
All reactions