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

Fix a crash during settings update #17751

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Aug 20, 2024

  • Adds a check whether the thread dispatcher is already null.
    (See code comments.)
  • Moves the _settings to only happen on the UI thread.
    Anything else wouldn't be thread safe.

Closes #17620

Validation Steps Performed

Not reproducible. 🚫

@microsoft-github-policy-service microsoft-github-policy-service bot added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Windowing Window frame, quake mode, tearout Priority-1 A description (P1) Product-Terminal The new Windows Terminal. Severity-Crash Crashes are real bad news. labels Aug 20, 2024
@lhecker lhecker merged commit e0dae59 into main Aug 20, 2024
20 checks passed
@lhecker lhecker deleted the dev/lhecker/17620-settings-update-crash branch August 20, 2024 18:21
DHowett pushed a commit that referenced this pull request Aug 21, 2024
* Adds a check whether the thread dispatcher is already null.
  (See code comments.)
* Moves the `_settings` to only happen on the UI thread.
  Anything else wouldn't be thread safe.

Closes #17620

## Validation Steps Performed
Not reproducible. 🚫

(cherry picked from commit e0dae59)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgSGBis
Service-Version: 1.21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Windowing Window frame, quake mode, tearout Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-1 A description (P1) Product-Terminal The new Windows Terminal. Severity-Crash Crashes are real bad news.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PowerShell crash caused by WindowsTerminal.exe exception
3 participants