Skip to content

Add support for catching native crashes in WinUI3 #3244

@tipa

Description

@tipa

Package

Sentry

.NET Flavor

.NET

.NET Version

8.0.2

OS

Windows

SDK Version

4.2.1

Self-Hosted Sentry Version

No response

Steps to Reproduce

  1. Create WinUI3 / WinAppSDK app
  2. Sentry.SentrySdk.CauseCrash(Sentry.CrashType.Native)

Expected Result

Crash is being reported to sentry.io

Actual Result

No crash is being reported (but app crashes with System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt).
Happens both in debug as well as in Release mode

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Todo

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions