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

Crash after closing a tooltip's Popup directly (#5932) #6080

Closed
wants to merge 2 commits into from
Closed

Crash after closing a tooltip's Popup directly (#5932) #6080

wants to merge 2 commits into from

Conversation

singhashish-wpf
Copy link
Member

Fixes #5730

Description

Closing a tooltip's Popup directly (as opposed to closing the ToolTip and letting WPF close the Popup in response) causes WPF to clear some private state on the ToolTip while leaving its IsOpen=true. When the ToolTip is eventually closed, WPF uses that state and crashes because it's null.

Fixed by preserving the private state until the ToolTip itself is closed, and adding logic to ensure that the state is cleared even if the Popup was already closed before the ToolTip closed.

Customer Impact

Fixes a regression.

Regression

Yes.

Testing

Risk

Low. The fix itself is safe. The customer reports did not include repros, so there's a small risk that there are crashing scenarios that this fix doesn't address.

@singhashish-wpf singhashish-wpf requested a review from a team as a code owner February 7, 2022 14:07
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Feb 7, 2022
@ghost ghost requested review from fabiant3, ryalanms and SamBent February 7, 2022 14:07
@ghost ghost locked as resolved and limited conversation to collaborators Apr 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant