Windows Terminal Preview consistently crashes when closing panes in certain layouts #21801

Open
opened 2026-01-31 07:55:18 +00:00 by claunia · 0 comments
Owner

Originally created by @itszn on GitHub (Jun 2, 2024).

Windows Terminal version

1.21.1272.0

Windows build number

Microsoft Windows [Version 10.0.22631.3672]

Other Software

> wsl --version
WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3672

> wsl --list
Windows Subsystem for Linux Distributions:
Ubuntu-20.04 (Default)

OpenSSH_8.2p1 Ubuntu-4, OpenSSL 1.1.1f 31 Mar 2020 running inside WSL connecting to my host

Steps to reproduce

Crash report:
https://aka.ms/AAqonu3

Reproduce

Open a new fresh terminal session. Then split once vertically. Then split the new pane vertically again. Now the middle pane will crash when closed and crash the whole terminal.

https://github.com/microsoft/terminal/assets/1857794/a7500464-875b-4584-a55c-cdf4d9cfa597

My Experience With The Bug

Very often, when using the terminal, I end up with several terminal panes which are in this state, such that when they are closed they crash the entire terminal.

This seems to only happen when they are in certain positions, ie have a pane on either side, and if I close the ones around it, it often fixes itself.

In this video I am showing how exiting specific panes will crash the terminal, while exiting the other panes does not crash it.

I also show how closing enough of the other panes fixes the issue, and also moving the pane to a new tab fixes the issue (for that single pane).

https://github.com/microsoft/terminal/assets/1857794/de269f33-e399-4ae3-a6f3-943fb8ebafe6

Also bc the state of the panes is saved on close, when I reopen the terminal, it reloads the last save (which was last time it closed cleanly). This ends up opening a new pane in the same positions as the old ones, and once again the same pane position ends up in this crashing state every single time.

Expected Behavior

I expect that the whole terminal doesn't crash when I close a single pane.

Actual Behavior

The whole terminal crashes when I close these specific panes.

Originally created by @itszn on GitHub (Jun 2, 2024). ### Windows Terminal version 1.21.1272.0 ### Windows build number Microsoft Windows [Version 10.0.22631.3672] ### Other Software ``` > wsl --version WSL version: 2.1.5.0 Kernel version: 5.15.146.1-2 WSLg version: 1.0.60 MSRDC version: 1.2.5105 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22631.3672 > wsl --list Windows Subsystem for Linux Distributions: Ubuntu-20.04 (Default) ``` `OpenSSH_8.2p1 Ubuntu-4, OpenSSL 1.1.1f 31 Mar 2020` running inside WSL connecting to my host ### Steps to reproduce Crash report: https://aka.ms/AAqonu3 # Reproduce Open a new fresh terminal session. Then split once vertically. Then split the new pane vertically again. Now the middle pane will crash when closed and crash the whole terminal. https://github.com/microsoft/terminal/assets/1857794/a7500464-875b-4584-a55c-cdf4d9cfa597 # My Experience With The Bug Very often, when using the terminal, I end up with several terminal panes which are in this state, such that when they are closed they crash the entire terminal. This seems to only happen when they are in certain positions, ie have a pane on either side, and if I close the ones around it, it often fixes itself. In this video I am showing how exiting specific panes will crash the terminal, while exiting the other panes does not crash it. I also show how closing enough of the other panes fixes the issue, and also moving the pane to a new tab fixes the issue (for that single pane). https://github.com/microsoft/terminal/assets/1857794/de269f33-e399-4ae3-a6f3-943fb8ebafe6 Also bc the state of the panes is saved on close, when I reopen the terminal, it reloads the last save (which was last time it closed cleanly). This ends up opening a new pane in the same positions as the old ones, and once again the same pane position ends up in this crashing state every single time. ### Expected Behavior I expect that the whole terminal doesn't crash when I close a single pane. ### Actual Behavior The whole terminal crashes when I close these specific panes.
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 07:55:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21801