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
fix: crash on macOS non-programmatic close #41264
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
codebytere
added
semver/patch
backwards-compatible bug fixes
target/28-x-y
PR should also be added to the "28-x-y" branch.
target/29-x-y
PR should also be added to the "29-x-y" branch.
labels
Feb 7, 2024
codebytere
requested review from
zcbenz,
deepak1556,
VerteDinde and
MarshallOfSound
February 7, 2024 16:48
VerteDinde
approved these changes
Feb 7, 2024
ckerr
approved these changes
Feb 7, 2024
deepak1556
approved these changes
Feb 7, 2024
zcbenz
approved these changes
Feb 8, 2024
Unrelated WOA failures due to occlusion tests. |
Release Notes Persisted
|
This was referenced Feb 9, 2024
I have automatically backported this PR to "28-x-y", please check out #41298 |
trop
bot
added
in-flight/28-x-y
and removed
target/28-x-y
PR should also be added to the "28-x-y" branch.
labels
Feb 9, 2024
I have automatically backported this PR to "29-x-y", please check out #41299 |
trop
bot
added
in-flight/29-x-y
merged/28-x-y
PR was merged to the "28-x-y" branch.
merged/29-x-y
PR was merged to the "29-x-y" branch.
and removed
target/29-x-y
PR should also be added to the "29-x-y" branch.
in-flight/28-x-y
in-flight/29-x-y
labels
Feb 9, 2024
5 tasks
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
merged/28-x-y
PR was merged to the "28-x-y" branch.
merged/29-x-y
PR was merged to the "29-x-y" branch.
semver/patch
backwards-compatible bug fixes
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
Closes #40798
Refs microsoft/vscode#204563
Fixes a crash that started occurring sporadically with some types of macOS window close after
PartitionAlloc
was enabled upstream. It seems to be the case now thatperformClose:
can causewindow_
to be null, thus causing the call toIsVisible
to crash trying to access a deallocated instance. There's probably more effective long-term fix here but we can fix this by moving the conditional determining whether we should callNotifyWindowCloseButtonClicked()
for a closed sheet aboveperformClosure
to avoid this problem altogether.Using the
Cmd+Tab -> Cmd+Q
repro provided in #40798 I tracked this back to v28.0.0-alpha.3...v28.0.0-alpha.4 - specifically reverting #33981 fixes the issue as well so we should investigate that further as a follow up.h/t @MarshallOfSound for speculating this fix in response to what might be the same issue in Discord.
cc @deepak1556 @bpasero
Checklist
npm test
passesRelease Notes
Notes: Fixed a crash that started occurring sporadically with some types of macOS window close