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

Enable FailFastOnErrors for debug builds #3244

Merged
merged 3 commits into from
Jun 19, 2024
Merged

Conversation

krschau
Copy link
Collaborator

@krschau krschau commented Jun 17, 2024

Summary of the pull request

We want to enable FailFastOnErrors for better diagnostics (#3019). There is currently a XAML bug causing a crash on shutdown when it is on. To work around this bug, turn off FailFastOnErrors before we hit the error. We may miss out on some diagnostics during shutdown, but we're not very concerned with those. Turning it off during MainWindow.Closed() at the advice of the WinUI team.

Validation steps performed

Validated locally with a debug build.

PR checklist

@jaholme
Copy link
Contributor

jaholme commented Jun 17, 2024

Have we resolved the failfast on close that we were seeing before?

@krschau
Copy link
Collaborator Author

krschau commented Jun 17, 2024

Have we resolved the failfast on close that we were seeing before?

I talked to the WinUI team and opened a bug on them for the crash (bug number is in the code). Their advice in the meantime was to turn off failfast before we hit the crash and they agreed that MainWindow.Closed was a good time to do it. (Alternatively, we could TerminateProcess but I'm worried about stomping over someone's shutdown logic.) We don't hit the shutdown crash with this mitigation.

@krschau krschau merged commit 26e01a7 into main Jun 19, 2024
4 checks passed
@krschau krschau mentioned this pull request Jun 20, 2024
4 tasks
@krschau krschau deleted the user/krschau/failfast branch July 25, 2024 15:42
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.

FailFastOnErrors causes crashes on startup and shutdown
4 participants