Skip to content

feat(native): capture WinUI crashes via WER - #2346

Open
jpnurmi wants to merge 5 commits into
v1from
jpnurmi/feat/native-winui
Open

jpnurmi wants to merge 5 commits into
v1from
jpnurmi/feat/native-winui

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

WinUI fails fast from its dispatcher and XAML event handlers, which bypasses the unhandled exception filter while keeping the original exception code (e.g. 0xC0000005), or raises a stowed exception (0xC000027B):

Before, the WER module only claimed a fixed set of fast-fail codes. These were originally inherited from crashpad, which has no other way to tell which crashes its in-process handler already captured. The native backend shares crash state with the WER module, so claim any fatal exception that the in-process handler has not.

Includes a WinUI fixture and WER integration tests for crashes and exceptions in dispatcher callbacks and XAML event handlers.

See also:

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against ae953fe

@jpnurmi
jpnurmi changed the base branch from v1 to jpnurmi/ci/wer November 26, 2026 15:07
@jpnurmi
jpnurmi force-pushed the jpnurmi/feat/native-winui branch from 3a27b59 to c5ff17f Compare November 26, 2026 15:09
@jpnurmi
jpnurmi added this pull request to stack #2351 November 26, 2026 15:09
Base automatically changed from jpnurmi/ci/wer to v1 November 27, 2026 10:01
@jpnurmi
jpnurmi force-pushed the jpnurmi/feat/native-winui branch from b55433b to 0ba1bdc Compare November 27, 2026 10:01
WinUI fails fast from its dispatcher and XAML event handlers, which
bypasses the unhandled exception filter while keeping the original
exception code (e.g. 0xC0000005), or raises a stowed exception
(0xC000027B).

The WER module only claimed a fixed set of fast-fail codes, inherited
from crashpad, which has no other way to tell which crashes its
in-process handler already captured. The native backend shares crash
state with the WER module, so claim any fatal exception that the
in-process handler has not.

Add a C++/WinRT WinUI fixture and WER integration tests for crashes and
exceptions in dispatcher callbacks and XAML event handlers.
The VS 2022 NuGet task fails with "Sequence contains no elements" when
a C++ project defines no NuGet target moniker. VS 2026 tolerates it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants