Skip to content
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

SIGSEGV when a NullReferenceException is thrown in Release mode #3861

Open
tranb3r opened this issue Dec 20, 2024 · 1 comment
Open

SIGSEGV when a NullReferenceException is thrown in Release mode #3861

tranb3r opened this issue Dec 20, 2024 · 1 comment
Labels
Bug Something isn't working Framework: MAUI

Comments

@tranb3r
Copy link

tranb3r commented Dec 20, 2024

Package

Sentry.Maui

.NET Flavor

.NET

.NET Version

9.0.0

OS

Android

SDK Version

35

Self-Hosted Sentry Version

No response

Steps to Reproduce

Repro app : https://github.com/tranb3r/Issues/tree/main/MauiAppSegfault

  1. Open repro app in Visual Studio and set your Dsn for Sentry before running the app. Check Sentry.Maui version in csproj.
  2. Run the app in Release mode on Android.
  3. Tap on Run button. A NullReferenceException happens.
  4. With Sentry.Maui 4.x, the exception is catched silently. Close the app, launch it again. An error report with SIGSEGV is sent to Sentry immediately.
  5. With Sentry.Maui 5.0.0, even if the exception is catched, the app crashes. Launch the app again. An error report with SIGSEGV is sent to Sentry.

Expected Result

No crash. No SIGSEGV report by Sentry.

Actual Result

With 4.x : no crash but SIGSEGV report by Sentry.
With 5.0 : app crashes and SIGSEGV report is sent by Sentry.
Without Sentry.Maui : no crash (exception is catched).

Related issues/PRs

dotnet/android#9055
#3461
#3694

@bruno-garcia
Copy link
Member

Thank you so much for the repro, steps and the ticket.
For now hope you can stick to the latest 4.x release. We'll dig into this asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Framework: MAUI
Projects
Status: No status
Status: No status
Development

No branches or pull requests

2 participants