-
Notifications
You must be signed in to change notification settings - Fork 253
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
Crash on latest beta #512
Comments
This sounds a lot like #375, can you verify the worker (_conoutSocketWorker) is getting spawned? conpty can hang the process if it's not drained in a worker |
Also, I'd recommend spawning the pty on a different process, the electron main process is special and should be as free as possible. |
I got that crash running a normal node process I will try to verify that it is being spawned |
So the |
So I can also confirm that I am not seeing this bug if I set |
This hang wasn't specific to Electron, but not connecting to conpty in its own thread as a deadlock could occur when input happens during exit. Still a little puzzled here as I thought it was fixed, and unfortunately build retention in ADO doesn't let me get the exact commit beta11 was based on. |
If it is necessary to spawn the connections on separate threads, should that be documented? |
It's meant to be handled for you, I don't think there is a fallback. I guess you're just hitting some other problem that I've never seen 🤷 |
@rzhao271 FYI |
Environment details
Issue description
I was trying to debug an issue where if I kill a pty (that spawns powershell) within my electron app's main process while there is still input on (namely the last character sent was not
\r
or no characters were sent) then the whole application would freeze.In doing so I tried to run the following code:
and the output that I get is:
On
beta10
I get the following:but then it hangs and does not exit.
This might be related to #471 but I thought that was supposed to be fixed in
beta9
The text was updated successfully, but these errors were encountered: