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

cmd.exe prints "Not enough storage is available to process this command." #74

Closed
aleherb opened this issue Apr 21, 2016 · 1 comment
Closed

Comments

@aleherb
Copy link

aleherb commented Apr 21, 2016

On some Windows 7 hosts we see the following error printed in the console window if cmd.exe is run under control of winpty-agent.exe:
Not enough storage is available to process this command.

It is unclear why this happens on some hosts and not on others, but we found that it is caused by setting the console title to an empty string. The error is just cosmetic, though, there is no functional impact, AFAICT.
On hosts where this happens, it can also be reproduced independent of winpty by running a batch script using the start command with an empty title string:
start "" /w script.bat

The suggested fix/workaround is to set the initial console title to e.g. a single space instead.

@rprichard
Copy link
Owner

I've seen that error before but never figured out the cause. It always reproduced for me when I invoked winpty from a Cygwin SSH connection. I just tried it again, and setting the title to a single space fixes the problem. A single space seems reasonable enough. I'll have this fixed fairly soon. Thanks for figuring it out!

I wonder if this problem reproduces on other OSs. I noticed some problems with the GetConsoleTitle API in different Windows versions, so maybe that's related.

Tyriar added a commit to microsoft/node-pty that referenced this issue Oct 24, 2016
This error occurs when launching an application in admin mode for some reason.
The fix was pulled from rprichard/winpty#74
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

2 participants