Terminal: WSL terminal crashes when using tmux

Created on 30 Aug 2019  路  16Comments  路  Source: microsoft/terminal

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.

Area-Quality Issue-Bug Needs-Tag-Fix Product-Terminal Resolution-No-Repro Severity-Crash

Most helpful comment

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

All 16 comments

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.

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...

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.

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?

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.

Luis: What version of tmux?

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.

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.

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

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

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

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!

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

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.

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

It seems so.

Was this page helpful?
0 / 5 - 0 ratings