- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 225
Closed
Labels
.NETPull requests that update .net codePull requests that update .net codeBugSomething isn't workingSomething isn't working
Description
Package
Sentry
.NET Flavor
.NET
.NET Version
9.0.304
OS
iOS
OS Version
No response
Development Environment
Rider 2024 (MacOS)
SDK Version
main (3f12094)
Self-Hosted Sentry Version
25.8.0
Workload Versions
Using workload version 9.0.304, which was specified in the global.json file at /Users/jpnurmi/Projects/sentry/sentry-dotnet/global.json.
Installed Workload Id      Manifest Version       Installation Source
---------------------------------------------------------------------
android                    35.0.92/9.0.100        SDK 9.0.300
ios                        18.5.9215/9.0.100      SDK 9.0.300
maccatalyst                18.5.9215/9.0.100      SDK 9.0.300
macos                      15.5.9215/9.0.100      SDK 9.0.300
maui-android               9.0.82/9.0.100         SDK 9.0.300
maui-ios                   9.0.82/9.0.100         SDK 9.0.300
maui-maccatalyst           9.0.82/9.0.100         SDK 9.0.300
maui-tizen                 9.0.82/9.0.100         SDK 9.0.300
wasm-tools-net8            9.0.8/9.0.100          SDK 9.0.300
UseSentry or SentrySdk.Init call
diff --git a/samples/Sentry.Samples.Maui/MauiProgram.cs b/samples/Sentry.Samples.Maui/MauiProgram.cs
index 1a8a6a30..69aab6b7 100644
--- a/samples/Sentry.Samples.Maui/MauiProgram.cs
+++ b/samples/Sentry.Samples.Maui/MauiProgram.cs
@@ -67,6 +67,9 @@ public static MauiApp CreateMauiApp()
                     // Return true to capture or false to prevent the capture
                     return true;
                 });
+
+                options.Native.SuppressSignalAborts = true;
+                options.Native.SuppressExcBadAccess = true;
             })
             .ConfigureFonts(fonts =>Steps to Reproduce
SIGABRT
- Enable options.Native.SuppressSignalAborts
- Run Sentry.Samples.Maui
- Press Throw Unhandled .NET Exception (Crash)
- Run Sentry.Samples.Mauiagain
- Observe Sentry
EXC_BAD_ACCESS
- Enable options.Native.SuppressExcBadAccess
- Add a button to trigger NullReferenceException
- Run Sentry.Samples.Maui
- Press the button to trigger a null reference exception
- Run Sentry.Samples.Mauiagain
- Observe Sentry
Expected Result
Only System.ApplicationException should have been submitted - no SIGABRT nor EXC_BAD_ACCESS.
Actual Result

Metadata
Metadata
Assignees
Labels
.NETPull requests that update .net codePull requests that update .net codeBugSomething isn't workingSomething isn't working
Projects
Status
Done