WSL terminal crashes when using tmux #3665

Closed
opened 2026-01-30 23:26:49 +00:00 by claunia · 18 comments
Owner

Originally created by @Luiscri on GitHub (Aug 29, 2019).

Originally assigned to: @DHowett-MSFT on GitHub.

If I open a tmux session and then use the shortcut "Ctrl+b + %" to add a new vertical window it displays properly. However if I maximize the terminal and then minimize it again to its original size the terminal will freeze for a second and then close without appearing any error message.

This behaviour only happens with vertical windows, and not with horizontal ones.

I don't know if it's a problem of the WSL terminal or tmux itself. I'm new to developping in Windows, so where can I find the log or any information to let you know what is happening with the terminal?

EDIT: I just find out that it happens with tmux and only when you minimize back to its size a terminal which contains many lines or rows. For example if I go to /usr/bin/ and type "ls -l" all the content will show in screen; if I maximize the window then minimize it back to its default size it will crash and close without showing any error. If I do the same operation out of tmux, it displays without any error.

Originally created by @Luiscri on GitHub (Aug 29, 2019). Originally assigned to: @DHowett-MSFT on GitHub. If I open a tmux session and then use the shortcut "Ctrl+b + %" to add a new vertical window it displays properly. However if I maximize the terminal and then minimize it again to its original size the terminal will freeze for a second and then close without appearing any error message. This behaviour only happens with vertical windows, and not with horizontal ones. I don't know if it's a problem of the WSL terminal or tmux itself. I'm new to developping in Windows, so where can I find the log or any information to let you know what is happening with the terminal? EDIT: I just find out that it happens with tmux and only when you minimize back to its size a terminal which contains many lines or rows. For example if I go to /usr/bin/ and type "ls -l" all the content will show in screen; if I maximize the window then minimize it back to its default size it will crash and close without showing any error. If I do the same operation out of tmux, it displays without any error.
Author
Owner

@jasonxoc commented on GitHub (Aug 31, 2019):

tmux works fine for me... the font spacing is driving me nuts though. There's a space between my nerdfont glyphs that's driving me a little crazy...
tmux

But this is a MASSIVE improvement over what was there.
nerdfonts-tmux
Is what it should be.

@jasonxoc commented on GitHub (Aug 31, 2019): tmux works fine for me... the font spacing is driving me nuts though. There's a space between my nerdfont glyphs that's driving me a little crazy... ![tmux](https://user-images.githubusercontent.com/595326/64061916-839a3d80-cb95-11e9-83e8-50924f505a46.png) But this is a MASSIVE improvement over what was there. ![nerdfonts-tmux](https://user-images.githubusercontent.com/595326/64061940-b93f2680-cb95-11e9-9793-a49d3c6169be.png) Is what it should be.
Author
Owner

@jasonxoc commented on GitHub (Aug 31, 2019):

Allthough, the terminal is REALLY slow, like typing on a 9600 baud modem connection while attached to the tmux session. I'm going to compile tmux 3.0 and see if it's still slow and debug it. I'll open a bug on another thread if I figure anything out. I'm curious is luis has that same experience too...

@jasonxoc commented on GitHub (Aug 31, 2019): Allthough, the terminal is REALLY slow, like typing on a 9600 baud modem connection while attached to the tmux session. I'm going to compile tmux 3.0 and see if it's still slow and debug it. I'll open a bug on another thread if I figure anything out. I'm curious is luis has that same experience too...
Author
Owner

@jasonxoc commented on GitHub (Aug 31, 2019):

For reference I was unable to duplicate this crash this with both a horizontal tmux split and a vertical tmux split. TMUX 2.1 - Terminal Version: 0.4.2382.0 which I got from the MS store. Probably should have started with this but it's insane to me to be able to work in windows comfortably, got carried away. btw the screenshot is from one of my repos, I didn't have my laptop handy. I wasn't trying to point out the icons just illustrating the contrast in font rendering.

@jasonxoc commented on GitHub (Aug 31, 2019): For reference I was unable to duplicate this crash this with both a horizontal tmux split and a vertical tmux split. TMUX 2.1 - Terminal Version: 0.4.2382.0 which I got from the MS store. Probably should have started with this but it's insane to me to be able to work in windows comfortably, got carried away. btw the screenshot is from one of my repos, I didn't have my laptop handy. I wasn't trying to point out the icons just illustrating the contrast in font rendering.
Author
Owner

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

I've seen reports of (and encountered myself) crashes when printing any "ambiguous width" characters, but only when I've closed at least one tab. Is that the case here?

@DHowett-MSFT commented on GitHub (Sep 3, 2019): I've seen reports of (and encountered myself) crashes when printing any "ambiguous width" characters, but _only_ when I've closed at least one tab. Is that the case here?
Author
Owner

@Luiscri commented on GitHub (Sep 3, 2019):

I've seen reports of (and encountered myself) crashes when printing any "ambiguous width" characters, but only when I've closed at least one tab. Is that the case here?

No it isn't. This crash happens with only creating a vertical window in tmux and maximing and minimizing back the terminal. Maybe the extra tmux window could be considered as "ambiguous width" character.

@Luiscri commented on GitHub (Sep 3, 2019): > > > I've seen reports of (and encountered myself) crashes when printing any "ambiguous width" characters, but _only_ when I've closed at least one tab. Is that the case here? No it isn't. This crash happens with only creating a vertical window in tmux and maximing and minimizing back the terminal. Maybe the extra tmux window could be considered as "ambiguous width" character.
Author
Owner

@jasonxoc commented on GitHub (Sep 3, 2019):

Luis: What version of tmux?

@jasonxoc commented on GitHub (Sep 3, 2019): Luis: What version of tmux?
Author
Owner

@Luiscri commented on GitHub (Sep 3, 2019):

I'm using:

  • tmux 2.6
  • Microsoft Windows [Version 10.0.18362.329]

I tried upgrading to Windows Insider Program and using WSL 2 but the error still happened, so I downgraded the system again to the actual version.

@Luiscri commented on GitHub (Sep 3, 2019): I'm using: - tmux 2.6 - Microsoft Windows [Version 10.0.18362.329] I tried upgrading to Windows Insider Program and using WSL 2 but the error still happened, so I downgraded the system again to the actual version.
Author
Owner

@jasonxoc commented on GitHub (Sep 3, 2019):

I'll try 2.6 when I get home and let you know if I can reproduce that crash. I still need to compile 3.0. I think it's challenging because it's not just the version of the terminal emulation application, it's the version of the all of the libraries tied to your linux distro, then the WSL translation, then the application. So something that could be a bug in any of those layers only comes to the surface because you have a usable terminal emulator in windows. In any case, I'll dump out everything on my setup when I get home so you can at least work in a sane environment.

@jasonxoc commented on GitHub (Sep 3, 2019): I'll try 2.6 when I get home and let you know if I can reproduce that crash. I still need to compile 3.0. I think it's challenging because it's not just the version of the terminal emulation application, it's the version of the all of the libraries tied to your linux distro, then the WSL translation, then the application. So something that could be a bug in any of those layers only comes to the surface because you have a usable terminal emulator in windows. In any case, I'll dump out everything on my setup when I get home so you can at least work in a sane environment.
Author
Owner

@Luiscri commented on GitHub (Sep 3, 2019):

I understand what you say. Could you tell me a combination which apparently doesn't give any problem?

I'm also using Ubuntu 18.04 dowloaded from the Microsoft Store

@Luiscri commented on GitHub (Sep 3, 2019): I understand what you say. Could you tell me a combination which apparently doesn't give any problem? I'm also using Ubuntu 18.04 dowloaded from the Microsoft Store
Author
Owner

@jasonxoc commented on GitHub (Sep 4, 2019):

Luis:
Windows 10 Home version: 1903 OS build: 18362.295

tmux 2.1

NAME="Ubuntu" VERSION="16.04.4 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.4 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial

I hope this works for you man, I tested all splits, switching layouts within splits, maximizing / minimizing the term and its not crashing on me. I spent some time navigating with multiple sessions and it's all working... just slowly.

I'll let you know if I get anything else interesting. Good luck man, let me know if I missed anything.

J

@jasonxoc commented on GitHub (Sep 4, 2019): Luis: Windows 10 Home version: 1903 OS build: 18362.295 tmux 2.1 `NAME="Ubuntu" VERSION="16.04.4 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.4 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial ` I hope this works for you man, I tested all splits, switching layouts within splits, maximizing / minimizing the term and its not crashing on me. I spent some time navigating with multiple sessions and it's all working... just slowly. I'll let you know if I get anything else interesting. Good luck man, let me know if I missed anything. J
Author
Owner

@ghost commented on GitHub (Sep 5, 2019):

Hi there!

Can you please send us feedback with the Feedback Hub with this issue and paste the link here so we can more easily find your crash information on the back end?

Thanks!

image image

@ghost commented on GitHub (Sep 5, 2019): Hi there!<br><br>Can you please send us feedback with the Feedback Hub with this issue and paste the link here so we can more easily find your crash information on the back end?<br><br>Thanks!<br><br>![image](https://user-images.githubusercontent.com/18221333/62478757-b69d0d00-b760-11e9-9626-1fa33c91e7c5.png) ![image](https://user-images.githubusercontent.com/18221333/62478649-6de55400-b760-11e9-806e-5aab7e085a9f.png)
Author
Owner

@drk-mtr commented on GitHub (Sep 7, 2019):

I can't reproduce this on the following:

tmux 2.8
Windows Terminal 0.4.2382.0
Ubuntu 19.04
Windows 10 1903

I get strange glyph issues described above on my work PC but not home PC and I can't work out why!

@drk-mtr commented on GitHub (Sep 7, 2019): I can't reproduce this on the following: tmux 2.8 Windows Terminal 0.4.2382.0 Ubuntu 19.04 Windows 10 1903 I get strange glyph issues described above on my work PC but not home PC and I can't work out why!
Author
Owner

@Luiscri commented on GitHub (Sep 10, 2019):

Here it is the shortcut to the Feedback Hub issue: https://aka.ms/AA60xiv

@Luiscri commented on GitHub (Sep 10, 2019): Here it is the shortcut to the Feedback Hub issue: https://aka.ms/AA60xiv
Author
Owner

@jimf5 commented on GitHub (Oct 21, 2019):

I do not experience exactly such an issue. I faced with suddenly windows terminal closing when I'm using tmux in WSL. Usually, it happens on quite long sessions - more than one day. tmux server continues work in this case. With Command Prompt the result is the same.

@jimf5 commented on GitHub (Oct 21, 2019): I do not experience exactly such an issue. I faced with suddenly windows terminal closing when I'm using tmux in WSL. Usually, it happens on quite long sessions - more than one day. tmux server continues work in this case. With Command Prompt the result is the same.
Author
Owner

@DHowett-MSFT commented on GitHub (Nov 18, 2019):

This seems to have been fixed with 0.6. Let me know if not.

@DHowett-MSFT commented on GitHub (Nov 18, 2019): This seems to have been fixed with 0.6. Let me know if not.
Author
Owner

@jimf5 commented on GitHub (Nov 18, 2019):

It seems so.

@jimf5 commented on GitHub (Nov 18, 2019): It seems so.
Author
Owner

@IUJakob commented on GitHub (Jan 29, 2024):

If it was gone, it is now back

$ wsl --version
WSL-version: 2.0.14.0
Kerneversion: 5.15.133.1-1
WSLg-version: 1.0.59
MSRDC-version: 1.2.4677
Direct3D-version: 1.611.1-81528511
DXCore-version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows-version: 10.0.19045.3930
@IUJakob commented on GitHub (Jan 29, 2024): If it was gone, it is now back ``` $ wsl --version WSL-version: 2.0.14.0 Kerneversion: 5.15.133.1-1 WSLg-version: 1.0.59 MSRDC-version: 1.2.4677 Direct3D-version: 1.611.1-81528511 DXCore-version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows-version: 10.0.19045.3930 ```
Author
Owner

@zadjii-msft commented on GitHub (Jan 29, 2024):

@IUJakob This thread is more than 4 years old. If you're seeing something like this, it's surely a different root cause. You should file a new issue.

@zadjii-msft commented on GitHub (Jan 29, 2024): @IUJakob This thread is more than 4 years old. If you're seeing something like this, it's surely a different root cause. You should file a new issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3665