Skip to content

Crash in Windows Terminal TerminalControl!TextBuffer::Reflow #4907

Closed

Description

@Treit

While running a stress test on Windows Terminal version 0.10.721.0, I was able to cause a crash in TerminalControl!TextBuffer::Reflow.

I was running https://github.com/Treit/TerminalStress, the application I wrote some time back to reproduce a different bug (that was since fixed.)

I was running something like 5 instances in parallel in different panes on the same tab, then rapidly pressing Alt+Enter to switch from full screen to normal and back.

WindowsTerminal11.txt

I have attached some additional output from the debugger that might be helpful.

Activity

  1. ghost added
    Needs-Triage
    on Mar 13, 2020
  2. ghost added
    Needs-Tag-Fix
    on Mar 13, 2020
  3. added
    Issue-Bug
    Severity-Crash
    Product-Terminal
    on Mar 13, 2020
  4. DHowett-MSFT commented on Mar 18, 2020

    @DHowett-MSFT
    Contributor

    Finger-in-the-air guess is P3: if this only reproduces when you're murdering your terminal by resizing it multiple times a second while printing megabytes of output, I'm going to say it won't strike too many people too often.

    It's still worth fixing.

  5. removed
    Needs-Triage
    on Mar 18, 2020
  6. DHowett-MSFT commented on May 4, 2020

    @DHowett-MSFT
    Contributor

    I can't repro this on v0.11.1212, even resizing like mad with five open panes printing our 6MB test file simultaneously.

    I'm gonna call this one no-repro. Mike Treit (@Treit) please let me know if you can still repro!

  7. added
    Resolution-No-Repro
    on May 4, 2020
  8. Treit commented on May 4, 2020

    @Treit
    Author

    I can't repro this on v0.11.1212, even resizing like mad with five open panes printing our 6MB test file simultaneously.

    I'm gonna call this one no-repro. Mike Treit (@Treit) please let me know if you can still repro!

    Dustin L. Howett (MSFT) (@DHowett-MSFT) Yes I can still reproduce it on 0.11.1212.0

  9. Treit commented on May 4, 2020

    @Treit
    Author
  10. DHowett-MSFT commented on May 5, 2020

    @DHowett-MSFT
    Contributor

    Perfect. Thank you.

  11. 3 remaining items

  12. kasper93 commented on May 16, 2020

    @kasper93
    Contributor

    Would you share some of the glyphs that are in your powerlevel10k theme?

    In fact it is powerleve9k, default setup nothing fancy.

    I'll mark this as a /dup of #4907 in the meantime -- same call stack, same symptoms, same repro (go wild on resizing with garb in the buffer)

    Dustin L. Howett (MSFT) (@DHowett-MSFT) Since the other issue has been closed I replying here.

    For me the problems started with 7ae3433 probably because ✔ has been made wide.

    To summarize my problems:

    1. tmux drawing is broken. I needed to select pane to redraw vertical separator. Tick mark draw over separator. Also when resizing it glitches visually. https://streamable.com/xwrs5z
    2. WT crashes https://streamable.com/xwrs5z It is very easy to reproduce in tmux, I did reproduce it also without, but it is harder. (watch after 27s, before I tried not to crash it, also I cut video before window closed, but it crashed in the end, you can see it is not responding anymore)
    3. Changing this tick mark to wide (or smth else) made it mess up really bad when resizing. After 7ae3433: https://streamable.com/2wanng and before 7ae3433: https://streamable.com/rd2a8v

    I initially though that crashes and other issues are related, but while they are introduced by the same commit for me, it looks like they are separate problems. We might reopen my issue for drawing problems and discuss crash in this one.

  13. DHowett commented on May 21, 2020

    @DHowett
    Member

    So Kacper Michajłow (@kasper93), we fixed the width of ✔ at least! This bug'll remain to track the resizing issue 😄

  14. added
    Area-Output
    on Aug 26, 2020
  15. ghost removed
    Needs-Tag-Fix
    on Aug 26, 2020
  16. DHowett commented on Apr 7, 2021

    @DHowett
    Member

    Fixing as part of MSFT-17364373, which is a conhost crash that hits moderately often (~500 hits in the past 14 days!)

  17. ghost added
    Needs-Tag-Fix
    on Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-OutputIssue-BugNeeds-Tag-FixPriority-3Product-TerminalSeverity-Crash

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions