Crashes and missing text when using tmux #8099

Closed
opened 2026-01-31 01:20:43 +00:00 by claunia · 6 comments
Owner

Originally created by @kasper93 on GitHub (May 13, 2020).

Environment

Windows build number: 10.0.18363.815 (fun fact, PS actually reports 10.0.18363.0)
Windows Terminal revision: 88ed94d2acea5f1274800378e9d7662de9015c28

Latest cygwin with latest openssh client,

So I did update my terminal and it broke my workflow with tmux.

Steps to reproduce

  1. Run tmux (I use it in remote session over ssh)
  2. Split panes, add some windows.
  3. Zoom pane, change window in tmux
  4. Resize Terminal window

Expected behavior

Everything redraws correctly and doesn't crash.

Actual behavior

  1. Things doesn't draw correctly. Generally it is broken, not much to explain. Some things are drawn, other doesn't.
  2. Terminal will crash resize its window with tmux open. Maybe not instantly, but text blinks during resize, some disappear and eventually will crash. More panes probably will make it crash faster.
Originally created by @kasper93 on GitHub (May 13, 2020). # Environment ```none Windows build number: 10.0.18363.815 (fun fact, PS actually reports 10.0.18363.0) Windows Terminal revision: 88ed94d2acea5f1274800378e9d7662de9015c28 Latest cygwin with latest openssh client, ``` So I did update my terminal and it broke my workflow with tmux. # Steps to reproduce 1. Run tmux (I use it in remote session over ssh) 1. Split panes, add some windows. 1. Zoom pane, change window in tmux 1. Resize Terminal window # Expected behavior Everything redraws correctly and doesn't crash. # Actual behavior 1. Things doesn't draw correctly. Generally it is broken, not much to explain. Some things are drawn, other doesn't. 1. Terminal will crash resize its window with tmux open. Maybe not instantly, but text blinks during resize, some disappear and eventually will crash. More panes probably will make it crash faster.
claunia added the Resolution-Duplicate label 2026-01-31 01:20:43 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (May 13, 2020):

Since it looks like you've built terminal at a specific commit, I have to assume you've got Visual Studio and can help grab a call stack or logs from the debug build. Would you mind?

@DHowett-MSFT commented on GitHub (May 13, 2020): Since it looks like you've built terminal at a specific commit, I have to assume you've got Visual Studio and can help grab a call stack or logs from the debug build. Would you mind?
Author
Owner

@kasper93 commented on GitHub (May 13, 2020):

Regression is since commit 7ae34336da both broken rendering and crashes stared with this commit.

In release build it fails here:
b4c33dd842/src/buffer/out/textBuffer.cpp (L277)

F:\dev\terminal\src\buffer\out\textBuffer.cpp(277)\TerminalControl.dll!00007FFC36C47E83: (caller: 00007FFC36C4C42B) FailFast(1) tid(3718) 8000FFFF Catastrophic failure
Unhandled exception at 0x00007FFC36C47E83 (TerminalControl.dll) in WindowsTerminal.exe: Fatal program exit requested.

In debug it is very slow to resize window, but it crashes still:

F:\dev\terminal\src\cascadia\TerminalConnection\ConptyConnection.cpp(347)\TerminalConnection.dll!00007FFC32193309: (caller: 00007FFC321F46F0) Exception(1) tid(4d20) 800700E8 The pipe is being closed.
    [winrt::Microsoft::Terminal::TerminalConnection::implementation::ConptyConnection::Resize(ConptyResizePseudoConsole(_hPC.get(), { Utils::ClampToShortMax(columns, 1), Utils::ClampToShortMax(rows, 1) }))]
Exception thrown at 0x00007FFCA3C1A799 in WindowsTerminal.exe: Microsoft C++ exception: wil::ResultException at memory location 0x00000042562FBC50.
Exception thrown at 0x00007FFCA3C1A799 in WindowsTerminal.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
TerminalConnection.dll!00007FFC322976DC: ReturnHr(1) tid(4d20) 800700E8 The pipe is being closed.
    Msg:[F:\dev\terminal\src\cascadia\TerminalConnection\ConptyConnection.cpp(347)\TerminalConnection.dll!00007FFC32193309: (caller: 00007FFC321F46F0) Exception(1) tid(4d20) 800700E8 The pipe is being closed.
    [winrt::Microsoft::Terminal::TerminalConnection::implementation::ConptyConnection::Resize(ConptyResizePseudoConsole(_hPC.get(), { Utils::ClampToShortMax(columns, 1), Utils::ClampToShortMax(rows, 1) }))]
] 
Exception thrown at 0x00007FFCA3C1A799 (KernelBase.dll) in WindowsTerminal.exe: WinRT originate error - 0x800700E8 : 'The pipe is being closed.'.
Exception thrown at 0x00007FFCA3C1A799 in WindowsTerminal.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x00000042562FD450.
Exception thrown at 0x00007FFCA3C1A799 in WindowsTerminal.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
TerminalControl.dll!00007FFC3268675C: ReturnHr(1) tid(4d20) 800700E8 The pipe is being closed.
    Msg:[winrt::hresult_error: The pipe is being closed.] 
Unhandled exception at 0x00007FFC98373530 (Windows.UI.Xaml.dll) in WindowsTerminal.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x000001D2F73B4BD0, 0x0000000000000002).

Please give me pointer if you want me to look at something specific.

@kasper93 commented on GitHub (May 13, 2020): Regression is since commit 7ae34336da0be8428738df5e13dfc4c5f1df6f75 both broken rendering and crashes stared with this commit. In release build it fails here: https://github.com/microsoft/terminal/blob/b4c33dd84260e3a4883ca179be97a94420fedab2/src/buffer/out/textBuffer.cpp#L277 ``` F:\dev\terminal\src\buffer\out\textBuffer.cpp(277)\TerminalControl.dll!00007FFC36C47E83: (caller: 00007FFC36C4C42B) FailFast(1) tid(3718) 8000FFFF Catastrophic failure Unhandled exception at 0x00007FFC36C47E83 (TerminalControl.dll) in WindowsTerminal.exe: Fatal program exit requested. ``` In debug it is very slow to resize window, but it crashes still: ``` F:\dev\terminal\src\cascadia\TerminalConnection\ConptyConnection.cpp(347)\TerminalConnection.dll!00007FFC32193309: (caller: 00007FFC321F46F0) Exception(1) tid(4d20) 800700E8 The pipe is being closed. [winrt::Microsoft::Terminal::TerminalConnection::implementation::ConptyConnection::Resize(ConptyResizePseudoConsole(_hPC.get(), { Utils::ClampToShortMax(columns, 1), Utils::ClampToShortMax(rows, 1) }))] Exception thrown at 0x00007FFCA3C1A799 in WindowsTerminal.exe: Microsoft C++ exception: wil::ResultException at memory location 0x00000042562FBC50. Exception thrown at 0x00007FFCA3C1A799 in WindowsTerminal.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000. TerminalConnection.dll!00007FFC322976DC: ReturnHr(1) tid(4d20) 800700E8 The pipe is being closed. Msg:[F:\dev\terminal\src\cascadia\TerminalConnection\ConptyConnection.cpp(347)\TerminalConnection.dll!00007FFC32193309: (caller: 00007FFC321F46F0) Exception(1) tid(4d20) 800700E8 The pipe is being closed. [winrt::Microsoft::Terminal::TerminalConnection::implementation::ConptyConnection::Resize(ConptyResizePseudoConsole(_hPC.get(), { Utils::ClampToShortMax(columns, 1), Utils::ClampToShortMax(rows, 1) }))] ] Exception thrown at 0x00007FFCA3C1A799 (KernelBase.dll) in WindowsTerminal.exe: WinRT originate error - 0x800700E8 : 'The pipe is being closed.'. Exception thrown at 0x00007FFCA3C1A799 in WindowsTerminal.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x00000042562FD450. Exception thrown at 0x00007FFCA3C1A799 in WindowsTerminal.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000. TerminalControl.dll!00007FFC3268675C: ReturnHr(1) tid(4d20) 800700E8 The pipe is being closed. Msg:[winrt::hresult_error: The pipe is being closed.] Unhandled exception at 0x00007FFC98373530 (Windows.UI.Xaml.dll) in WindowsTerminal.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x000001D2F73B4BD0, 0x0000000000000002). ``` Please give me pointer if you want me to look at something specific.
Author
Owner

@DHowett-MSFT commented on GitHub (May 14, 2020):

Interesting. This has the same callstack as #4907.

Are you displaying wide glyphs in tmux?

@DHowett-MSFT commented on GitHub (May 14, 2020): Interesting. This has the same callstack as #4907. Are you displaying wide glyphs in tmux?
Author
Owner

@kasper93 commented on GitHub (May 14, 2020):

Are you displaying wide glyphs in tmux?

Which one are those? I use zsh with powerlevel10k theme. And indeed with bash without fancy things it works fine. Also I have status indicator on the right side. And this seem to mess with rendering.

@kasper93 commented on GitHub (May 14, 2020): > Are you displaying wide glyphs in tmux? Which one are those? I use zsh with powerlevel10k theme. And indeed with bash without fancy things it works fine. Also I have status indicator on the right side. And this seem to mess with rendering.
Author
Owner

@DHowett-MSFT commented on GitHub (May 15, 2020):

That's really interesting! Thanks for the info.

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

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)

@DHowett-MSFT commented on GitHub (May 15, 2020): That's really interesting! Thanks for the info. Would you share some of the glyphs that are in your powerlevel10k theme? 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)
Author
Owner

@ghost commented on GitHub (May 15, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (May 15, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8099