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

[conpty error] Uncaught Exception:Error: read EP|PEat Pipe.onStreamRead (node:internal/stream base commons:218:20) #706

Closed
ruinb0w opened this issue Aug 19, 2024 · 4 comments
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@ruinb0w
Copy link

ruinb0w commented Aug 19, 2024

Environment details

  • OS: windows11
  • OS version: 22631.3880
  • node-pty version: 1.0.0

Issue description

If I set useconpty=true then I do pty.kill(), it will get an error Uncaught Exception:Error: read EP|PEat Pipe.onStreamRead (node:internal/stream base commons:218:20)
then I try to set useconpty=false, the xtermjs can't get title from node-pty.

How can I fix it?

@arthurdevv
Copy link

Have you found a solution?

@ruinb0w
Copy link
Author

ruinb0w commented Nov 26, 2024

Have you found a solution?

no, I'm using pty.pause() to pause client now

@arthurdevv
Copy link

I implemented a workaround to prevent this error by using:

process.kill(pty.pid)

It looks like it has the same effect as pty.kill()

@Tyriar
Copy link
Member

Tyriar commented Dec 17, 2024

Not sure what's going on here, but it looks like it might be a problem with conpty. You could try with the new useConptyDll setting (#490), other than that you'd need to look into the code and see why it's failing or provide a small repro case.

@Tyriar Tyriar closed this as completed Dec 17, 2024
@Tyriar Tyriar added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants