Skip to content

C# Maui.Android Release Mode SIGSEGV #3837

Closed

Description

@gwise-vision

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

When deploying in release mode in C# Maui.Android, Sentry crashes every time. The Android app does not crash, but only the Sentry log is as follows:

Image

Activity

  1. getsantry commented on Sep 29, 2024

    @getsantry

    Assigning to @getsentry/support for routing ⏲️

  2. getsantry commented on Sep 30, 2024

    @getsantry

    Routing to @getsentry/product-owners-issues for triage ⏲️

  3. mrduncan commented on Sep 30, 2024

    @mrduncan
    Member

    @ReneGreen27 am I misunderstanding, this seems like an SDK issue?

  4. transferred this issue fromgetsentry/sentryon Dec 10, 2024
  5. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Dec 10, 2024
  6. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Dec 10, 2024
  7. 27 remaining items

  8. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Feb 3, 2025
  9. jamescrosswell commented on Feb 3, 2025

    @jamescrosswell
    Collaborator

    Thanks @gwise-vision - it's possibly related to the concurrent garbage collection (seems to be an issue with MAUI itself, rather than Sentry):

    However, you might also get this if you're using version 5.0.0 of the Sentry SDK. This was the main reason for the 5.0.1 point release. As of today though, you're probably best upgrading to 5.1.0. Are you currently using version 5.0.0 by any chance?

  10. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Feb 3, 2025
  11. gwise-vision commented on Feb 3, 2025

    @gwise-vision
    Author

    Thanks @gwise-vision - it's possibly related to the concurrent garbage collection (seems to be an issue with MAUI itself, rather than Sentry):

    However, you might also get this if you're using version 5.0.0 of the Sentry SDK. This was the main reason for the 5.0.1 point release. As of today though, you're probably best upgrading to 5.1.0. Are you currently using version 5.0.0 by any chance?

    Current Version : Sentry.Maui --version 5.0.1

  12. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Feb 3, 2025
  13. jamescrosswell commented on Feb 3, 2025

    @jamescrosswell
    Collaborator

    OK, I'm finally seeing SIGSEGV exceptions. The secret was:

    • Don't run the app from JetBrains rider (run it from the simulator directly)
    • Throw an exception that crashes the app (not one that is caught by a try..catch block).

    I should be able to suppress these now:

  14. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Feb 3, 2025
  15. moved this from In Progress to Done in GDXon Feb 10, 2025
  16. ghost added
    BugSomething isn't working
    on Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions