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

Running under Administrator - empty console #43

Closed
wclr opened this issue May 10, 2017 · 5 comments
Closed

Running under Administrator - empty console #43

wclr opened this issue May 10, 2017 · 5 comments

Comments

@wclr
Copy link

wclr commented May 10, 2017

Any thoughts why can not run wsl from commanlines that are run under Adminstrator?

image

vs under current user:
image

@mintty
Copy link
Owner

mintty commented May 10, 2017

That works fine here.
Please cross-check by calling bash.exe directly, without wsltty.
You may also try to trace your profiles (~/.profile, ~/.bashrc, /etc/profile, /etc/bash.bashrc).

@wclr
Copy link
Author

wclr commented May 10, 2017

Hm... right
image

It seems to come that way probably after update to Windows insiders preview. Didn't find the problme in google.

@mintty
Copy link
Owner

mintty commented May 11, 2017

So can we close the issue?
Although we might still be bothered that there is no proper feedback if this happens within mintty.
@rprichard, any chance that wslbridge might catch this case and report an error?

@rprichard
Copy link

I would think wslbridge could do a better job of handling this situation. It looks like it hangs forever, waiting for the wslbridge-backend to connect. If I kill the wslbridge frontend (e.g. Ctrl-C), it leaves the bash wrapper running forever in its hidden console. I'm not precisely sure of the fix, but it could time out or kill the bash wrapper process. In new enough versions of Win10, I think wslbridge could redirect stdout and capture the error. It's possible in Win10 15063. (I just noticed that the bash.exe error is UTF-16, but ordinary WSL programs output a narrow encoding -- UTF-8 maybe? Yuck.)

@mintty
Copy link
Owner

mintty commented May 31, 2017

I may have to add another option -h error to the invocation to make the error message visible (or the window will just flicker and close), or imply that under the --wsl option.
Then the error message output breaks after 255 bytes and mintty will insert its own error message /bin/wslbridge: Exit 1. inmidst of the /bin/bash message. Hmm, maybe, I can add a delay...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants