Repository navigation
Closed
Labels
Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-1A description (P1)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.Severity-CrashCrashes are real bad news.
Milestone
Description
Environment
Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable): master (672010a1)
Any other software?
Steps to reproduce
- Open the terminal
- Put your mouse cursor on the + button to open a new tab
- Quickly click with the left mouse button and then click with the middle mouse button to open a tab and close it. If you do it right, you should get this error message (which might be a bug in and of itself?):

- Don't click OK yet!
- Focus the terminal window, behind that error message.
- Repeat 3. Nothing will happen because the application is frozen while you click OK in the dialog.
- Click OK in the dialog.
- Now, the dialog closes and another dialog with the same error message opens. If it didn't open, you need to start again from 2. You'll need to train to click with the right timing.
- Click OK in the new dialog.
- Terminal crashes!
Expected behavior
No crash.
Actual behavior
Crash on this line:
| _terminal->LockConsole(); |
this is still alive with weakThis, _terminal is null. Also, it seems that there are other places where we do check this but don't check members that could be null now because Close was called. It's scary!Metadata
Metadata
Labels
Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-1A description (P1)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.Severity-CrashCrashes are real bad news.
Activity
DHowett-MSFT commentedon Feb 21, 2020
Triaged this one into v1.0 - it's stability and reliability, sp p1
DHowett-MSFT commentedon Feb 21, 2020
The "c0000142" error is actually because powershell was started and its parent console object died before it had a chance. That one we just can't help here 😄
zadjii-msft commentedon Mar 6, 2020
Okay I tried to to this naively and bluescreened my laptop. I'm not touching this, but Dustin L. Howett (MSFT) (@DHowett-MSFT) has an idea of how to go about this, so I'm going to let him have it
Rework TermControl's initialization
Rework TermControl's initialization (#5051)