-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Native Exception in winpty #29540
Comments
It was not visible. And I saw it again today when starting VS Code out of dev and it tried to restore a terminal (no task runner). But I have no reliable steps to reproduce. |
This issue has been closed automatically because it needs more information and has not had recent activity. Please refer to our guidelines for filing issues. Thank you for your contributions. |
Reopening the issue since it has all information I have. |
I see that now very frequently. Once or twice a day. |
It's failing here https://github.com/rprichard/winpty/blob/ce9239af5d751195ea6982a41c7d71356ac9201c/src/libwinpty/winpty.cc#L852, meaning either I'm guessing it was related to the config as an exception should have been thrown earlier if winpty_t @dbaeumer does your terminal config (shell, args, env, cwd) have any special characteristics? Unicode in one of them for example? |
I saw it just failing with the following command line under Windows:
However I see the same exception when open a single terminal inside VS Code and even in Hyper.js from time to time. |
Invoking the above command a second time worked. So might be a timing problem. |
@rprichard can you think of any reason It seems to be happening sometimes for @dbaeumer and I verify the winpty_t so it much be the config failing https://github.com/Tyriar/node-pty/blob/085f1b180f7cfbb66e6656dd8dc95dbde685351f/src/win/pty.cc#L211 |
AFAICT, out-of-memory is the only way it would return nullptr.
I had noticed earlier that the call sites to I'm unfamiliar with the nodejs nan module, but my guess is that inline void ThrowError(v8::Local<v8::Value> error) {
v8::Isolate::GetCurrent()->ThrowException(error);
} I commented on this previously; maybe you didn't see it? It's here: #28593 (comment). "Aside: the control flow with |
@rprichard yeah I haven't touched that stuff since I forked it https://github.com/chjj/pty.js/blob/master/src/win/pty.cc, can have a look at that in microsoft/node-pty#102. We've actually been seeing more out of memory crashes on Windows than other platforms recently so maybe that's related to this. |
This is likely related to winpty, tracking in #45693 |
Executed a task in the terminal and got:
The text was updated successfully, but these errors were encountered: