Crash on input after text resize #1462

Closed
opened 2026-01-30 22:27:57 +00:00 by claunia · 5 comments
Owner

Originally created by @d-bingham on GitHub (Jun 1, 2019).

Terminal crashes on input after a text resize.

Environment

Windows build number: [Version 10.0.18362.145]
Windows Terminal version (if applicable): 71e19cd82528d66a0a7867cbed85990cfc1685f1

Steps to reproduce

  1. Start up WSL bash in Terminal (this bug does not appear to happen in powershell or cmd)
  2. Fill the console to get the cursor at the bottom of the window

image

  1. Increase font size vi Control+MouseWheelUp

image

(note: while increasing font size, sometimes the bottom line is off the end of the terminal, which seems like it's the likely culprit...)

  1. Hit enter

image

Expected behavior

It doesn't crash.

Actual behavior

It crashes.

Originally created by @d-bingham on GitHub (Jun 1, 2019). <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> Terminal crashes on input after a text resize. # Environment ```none Windows build number: [Version 10.0.18362.145] Windows Terminal version (if applicable): 71e19cd82528d66a0a7867cbed85990cfc1685f1 ``` # Steps to reproduce 1) Start up WSL bash in Terminal (this bug does not appear to happen in powershell or cmd) 2) Fill the console to get the cursor at the bottom of the window ![image](https://user-images.githubusercontent.com/26487560/58743272-f7407900-83f3-11e9-988e-44fc0282d4d8.png) 3) Increase font size vi Control+MouseWheelUp ![image](https://user-images.githubusercontent.com/26487560/58743279-1b9c5580-83f4-11e9-90dc-bc6f34e3a236.png) (note: while increasing font size, sometimes the bottom line is off the end of the terminal, which seems like it's the likely culprit...) 4) Hit enter ![image](https://user-images.githubusercontent.com/26487560/58743288-3e2e6e80-83f4-11e9-89b3-024b2d6262d0.png) # Expected behavior It doesn't crash. # Actual behavior It crashes. <!-- What's actually happening? -->
Author
Owner

@zadjii-msft commented on GitHub (Jun 3, 2019):

Good find here. Seems easily repro-able, so debugging and fixing shouldn't be that hard...

@zadjii-msft commented on GitHub (Jun 3, 2019): Good find here. Seems easily repro-able, so debugging and fixing shouldn't be _that_ hard...
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 3, 2019):

Mind pressing "retry" and grabbing the stack from VS? Thanks!

@DHowett-MSFT commented on GitHub (Jun 3, 2019): Mind pressing "retry" and grabbing the stack from VS? Thanks!
Author
Owner

@d-bingham commented on GitHub (Jun 3, 2019):

Stack trace of the exception thrown:

image

@d-bingham commented on GitHub (Jun 3, 2019): Stack trace of the exception thrown: ![image](https://user-images.githubusercontent.com/26487560/58838915-ac0dac80-8625-11e9-8abe-be20095b235d.png)
Author
Owner

@d-bingham commented on GitHub (Jun 3, 2019):

image


image

@d-bingham commented on GitHub (Jun 3, 2019): ![image](https://user-images.githubusercontent.com/26487560/58838956-c5165d80-8625-11e9-9445-d2d24fdf2e16.png) **** ![image](https://user-images.githubusercontent.com/26487560/58838986-e1b29580-8625-11e9-85de-0fac34976a68.png)
Author
Owner

@zadjii-msft commented on GitHub (Aug 14, 2019):

I'm almost 100% certain #2149 did end up fixing this. Hooray!

@zadjii-msft commented on GitHub (Aug 14, 2019): I'm almost 100% certain #2149 did end up fixing this. Hooray!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1462