Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL terminal crashes when using tmux #2610

Closed
Luiscri opened this issue Aug 29, 2019 · 18 comments
Closed

WSL terminal crashes when using tmux #2610

Luiscri opened this issue Aug 29, 2019 · 18 comments
Assignees
Labels
Area-Quality Stability, Performance, Etc. Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Product-Terminal The new Windows Terminal. Resolution-No-Repro We couldn't get this to happen, or it stopped happening entirely. Severity-Crash Crashes are real bad news.
Milestone

Comments

@Luiscri
Copy link

Luiscri commented Aug 29, 2019

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.

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Aug 29, 2019
@zadjii-msft zadjii-msft added the Severity-Crash Crashes are real bad news. label Aug 30, 2019
@jasonxoc
Copy link

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
Copy link

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
Copy link

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.

@DHowett-MSFT
Copy link
Contributor

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 DHowett-MSFT added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Sep 3, 2019
@Luiscri
Copy link
Author

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

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Sep 3, 2019
@jasonxoc
Copy link

jasonxoc commented Sep 3, 2019

Luis: What version of tmux?

@Luiscri
Copy link
Author

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

@jasonxoc
Copy link

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

@Luiscri
Copy link
Author

Luiscri commented 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

@jasonxoc
Copy link

jasonxoc commented 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

@ghost
Copy link

ghost commented 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 ghost added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Feedback-Hub labels Sep 5, 2019
@drk-mtr
Copy link

drk-mtr commented 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!

@Luiscri
Copy link
Author

Luiscri commented Sep 10, 2019

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

@ghost ghost removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Sep 10, 2019
@bitcrazed bitcrazed added Product-Terminal The new Windows Terminal. and removed Severity-Crash Crashes are real bad news. labels Sep 10, 2019
@bitcrazed bitcrazed added this to the Terminal-1909 milestone Sep 10, 2019
@bitcrazed bitcrazed added Severity-Crash Crashes are real bad news. Area-Quality Stability, Performance, Etc. Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Sep 12, 2019
@bitcrazed bitcrazed added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Sep 12, 2019
@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label Sep 12, 2019
@zadjii-msft zadjii-msft self-assigned this Sep 13, 2019
@zadjii-msft zadjii-msft removed their assignment Sep 24, 2019
@zadjii-msft zadjii-msft added the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Sep 24, 2019
@cinnamon-msft cinnamon-msft removed Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Oct 14, 2019
@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label Oct 14, 2019
@miniksa miniksa added the Mass-Chaos Temporary use to trigger the bot. label Oct 14, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Oct 14, 2019
@miniksa miniksa removed the Mass-Chaos Temporary use to trigger the bot. label Oct 14, 2019
@miniksa miniksa modified the milestones: Terminal-1910, Terminal-1911 Oct 18, 2019
@jimf5
Copy link

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

@DHowett-MSFT
Copy link
Contributor

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

@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label Nov 18, 2019
@DHowett-MSFT DHowett-MSFT added Resolution-No-Repro We couldn't get this to happen, or it stopped happening entirely. and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Nov 18, 2019
@jimf5
Copy link

jimf5 commented Nov 18, 2019

It seems so.

@IUJakob
Copy link

IUJakob commented 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

@zadjii-msft
Copy link
Member

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

@microsoft microsoft locked as resolved and limited conversation to collaborators Jan 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area-Quality Stability, Performance, Etc. Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Product-Terminal The new Windows Terminal. Resolution-No-Repro We couldn't get this to happen, or it stopped happening entirely. Severity-Crash Crashes are real bad news.
Projects
None yet
Development

No branches or pull requests

10 participants