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

Run wsl.exe with Powerline font in Windows Terminal will crash #2862

Closed
kkbruce opened this issue Sep 24, 2019 · 11 comments
Closed

Run wsl.exe with Powerline font in Windows Terminal will crash #2862

kkbruce opened this issue Sep 24, 2019 · 11 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@kkbruce
Copy link

kkbruce commented Sep 24, 2019

Environment

Windows build number:
Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable):
0.4.2382.0
Any other software?

Steps to reproduce

I install WSL - Ubuntu in Windows 10, want setup WSL in Windows Terminal. If change profile fontFace from Consolas to Ubuntu Mono derivative Powerline (https://github.com/powerline/fonts/tree/master/UbuntuMono), Windows Terminal will crash and close.

{
            "acrylicOpacity" : 0.5,
            "background" : "#012456",
            "closeOnExit" : true,
            "colorScheme" : "Campbell",
            "commandline" : "wsl.exe -d Ubuntu /bin/bash -c zsh",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Ubuntu Mono derivative Powerline",
            "fontSize" : 10,
            "guid" : "{d5ed219b-a9ca-4618-8250-d6b965766ba6}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
            "name" : "Ubuntu",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : "%USERPROFILE%",
            "useAcrylic" : true
        },

Expected behavior

Run wsl.exe with Powerline font in Windows Terminal.

Actual behavior

Windows Terminal crash and close.

@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 Sep 24, 2019
@kkbruce kkbruce changed the title Use powerline font will crash Run wsl.exe with Powerline font in Windows Terminal will crash Sep 24, 2019
@DHowett-MSFT
Copy link
Contributor

/feedback

@ghost
Copy link

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

Also, you can just use chsh to set your shell to zsh instead of starting bash just to start zsh...

@kkbruce
Copy link
Author

kkbruce commented Sep 24, 2019

Feedback link: https://aka.ms/AA63upg

@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 24, 2019
@kkbruce
Copy link
Author

kkbruce commented Sep 24, 2019

I change use https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/DejaVuSansMono/Regular/complete font and commandline is work now.

{
            "acrylicOpacity" : 0.5,
            "background" : "#012456",
            "closeOnExit" : true,
            "colorScheme" : "Campbell",
            "commandline" : "C:/Windows/System32/bash.exe -c zsh",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "DejaVuSansMono Nerd Font",
            "fontSize" : 10,
            "guid" : "{d5ed219b-a9ca-4618-8250-d6b965766ba6}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
            "name" : "Ubuntu",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : "%USERPROFILE%",
            "useAcrylic" : true
        },

@utybo
Copy link

utybo commented Sep 24, 2019

I can confirm that the Windows Terminal crashes when "Ubuntu Mono derivative Powerline" font is used in any terminal, not just the WSL one. Workaround is to either use the non-derivative version which works fine, or another Powerline-compatible font.

@betteridiot
Copy link

Yes, I can confirm that some of the Powerline fonts do not work, but not all of them. My suggestion is to keep trying different powerline fonts until it doesn't crash. I currently use "Noto Mono for Powerline"

@speedy1812
Copy link

I had the same problem with "Ubuntu Mono derivative Powerline" crashing the Windows Terminal. But it turns out that the Nerd Font version of Ubuntu Mono doesn't have the same problem.

@DHowett-MSFT
Copy link
Contributor

This seems like /dup #602.

1                              32
|------------------------------|
Ubuntu Mono derivative Powerline
DejaVuSansMono Nerd Font
Noto Mono for Powerline

@ghost
Copy link

ghost commented Oct 6, 2019

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 ghost closed this as completed Oct 6, 2019
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. 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 Needs-Attention The core contributors need to come back around and look at this ASAP. labels Oct 6, 2019
@tautomer
Copy link

For my case, Menlo powerline works, Meslo falls bak to the default and Droid Sans Mono family directly crashes the terminal.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

6 participants