Hyper: WinPTY agent fails to launch on Windows 7

Created on 16 Apr 2018  路  27Comments  路  Source: vercel/hyper

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate

Issue

Since updating to 2.0.0 Hyper throws an error at startup. When I hit OK on the popup, the window appears but there's no text entry since there's no terminal. I've done this using cygwin bash and powershell as my shell, neither works.

Uncaught exception:
Error: Error launching WinPTY agent: ConnectNamedPipe failed: Windows error 232
    at new WindowsPtyAgent
...

The call stack seems to be WindowsPtyAgent<-WindowsTerminal<-spawn<-Session<-initSession<-Server.Window.rpc.on.options<-emitOne<-Server.emit<-Server.ipcListener<-emitTwo. This was working on earlier canaries, I see something changed with winpty so I suspect that's what did it.

help wanted High Bug Windows

Most helpful comment

For McAfee issue, I got it working by excluding C:\Users\<User>\AppData\Local\hyper\app-2.1.0\resources\app.asar.unpacked\node_modules\node-pty\build\Release\winpty-agent.exe from real-time scanning on McAfee

All 27 comments

Do you remember the last canary that works?

I think it was canary 8 or 9 for me. I haven't tried any of the other canary builds

I just verified that canary 8 works for me, but canary 9 throws an unrelated error before throwing the one I've reported here

Just ran into this on Win10 using the new v2.

@corydeppen Is it reproducible each time?

Yes, it hasn't launched without error yet. I've included the full error and link to my .hyper.js file. I'm also wondering if it may be related to #2865.

Error: Error launching WinPTY agent: Security check failed: pipe client pid (6944) does not match agent pid (283536)
    at new WindowsPtyAgent (C:\Users\[username]\AppData\Local\hyper\app-2.0.0\resources\app.asar\node_modules\node-pty\lib\windowsPtyAgent.js:25:24)
    at new WindowsTerminal (C:\Users\[username]\AppData\Local\hyper\app-2.0.0\resources\app.asar\node_modules\node-pty\lib\windowsTerminal.js:45:24)
    at spawn (C:\Users\[username]\AppData\Local\hyper\app-2.0.0\resources\app.asar\node_modules\node-pty\lib\index.js:27:12)
    at Session (C:\Users\[username]\AppData\Local\hyper\app-2.0.0\resources\app.asar\session.js:53:18)
    at initSession (C:\Users\[username]\AppData\Local\hyper\app-2.0.0\resources\app.asar\ui\window.js:102:24)
    at Server.Window.rpc.on.options (C:\Users\[username]\AppData\Local\hyper\app-2.0.0\resources\app.asar\ui\window.js:105:7)
    at emitOne (events.js:115:13)
    at Server.emit (events.js:210:7)
    at Server.ipcListener (C:\Users\[username]\AppData\Local\hyper\app-2.0.0\resources\app.asar\rpc.js:33:11)
    at emitTwo (events.js:125:13)

https://gist.github.com/corydeppen/65735150ddc5e869b84555ce4d7548b8

I'm running into the exact same problem as Cory on win10x64 1709. I can re-install 1.48 and work fine for a day but as soon as it upgrades to 2.0.0 it breaks. No plugins installed. Installing clean from 2.0.0 also results in the same error.

I've just experienced this issue on Windows 10 when installing Hyper for the first time.

So this is odd, but I tried 2.0.0 stable yesterday and this error was no longer an issue. Then it came back after rebooting today, and of course I'm clueless as to what I did that could've caused it.

javascripterror_hyper

Windows 10 version 1709

Same here on Windows 10,

Normally Hyper terminal works, but it breaks with above error when you run it as _Administrator_.

image

Hyper 2.1.0.1138 on Windows 10 Pro.


Although after using it more often, the error happens at random when launching as a regular user. It's very annoying.

I'm seeing this error after the upgrade to Hyper 2.1. I did not see the error in version 2.0. I'm in a corporate environment, and think the issue is related to running McAfee Endpoint Security, as described in the reference @octachrome provided above.

If I uninstall Hyper2.1 and reinstall 2.0, then the error goes away, but then Hyper automatically upgrade to 2.1. Is there a way to prevent Hyper from automatically upgrading?

Experiencing the exact same behavior as @boydjeff. Anything we can do? I have tried running as admin with no luck.

System info:
Windows 10.0.15063 Build 15063
McAfee Endpoint Security 10.5.4.4270

image

I'm seeing this error after the upgrade to Hyper 2.1. I did not see the error in version 2.0. I'm in a corporate environment, and think the issue is related to running McAfee Endpoint Security, as described in the reference @octachrome provided above.

If I uninstall Hyper2.1 and reinstall 2.0, then the error goes away, but then Hyper automatically upgrade to 2.1. Is there a way to prevent Hyper from automatically upgrading?

Yes, I also met this issue. the issue goes away after I roll back it to 2.1-cannary2. But it always prompt to upgrade. and there is not option that can close auto upgrade!

What about setting releases.hyper.is or releases-canary.hyper.is to 127.0.0.1 in your hosts file to work around the updater?

The culprit is in McAfee Real-Time Scanning, I tried turning it off and this error never happens, but when turning back on again the error happens again.

Can confirm @aescasiodev 's find. When turning it off, error no longer happens.

For McAfee issue, I got it working by excluding C:\Users\<User>\AppData\Local\hyper\app-2.1.0\resources\app.asar.unpacked\node_modules\node-pty\build\Release\winpty-agent.exe from real-time scanning on McAfee

@rnagatama yes, you need to exclude that file from Real-Time Scanning in any Antivirus.
That works.

I've also started running into this in 2.1, I'm unable to change my McAfee's settings in my environment, is there an ETA on the fix?

Could it be perhaps due to the executable not being signed?

Same issue here. Error'd and couldn't start. Excluding the file from real-time scanning did the trick. Thank you guys for the fix!

Do you remember the last canary that works?

hyper-Setup-2.1.0-canary.2 is OK.

For McAfee issue, I got it working by excluding C:\Users\<User>\AppData\Local\hyper\app-2.1.0\resources\app.asar.unpacked\node_modules\node-pty\build\Release\winpty-agent.exe from real-time scanning on McAfee

Better to just add **\winpty-agent.exe to your Mcafee exceptions list, so you don't get that same error when hyper auto-updates and changes the app-2.1.0 folder

Thanks @rnagatama, it works!

Had the same problem and as @rnagatama suggested to add winpty-agent.exe to the McAfee exceptions worked for me. thanks!

Well, Hyper now works in my corporate environment with version 2.1.1. I don't have permissions to add exceptions to McAfee Endpoint Security, so I don't know if an exception was added company-wide or if version 2.1.1 somehow just works. Thanks everyone who saw the same behavior and also commented.

The culprit is in McAfee Real-Time Scanning, I tried turning it off and this error never happens, but when turning back on again the error happens again.

Deactivated the McAfee Real-Time Scanning and it worked... Put back the R.T.S. and tried to put some files in the exception list and it didn't work... it just appends to work a bit later... weird!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cilice picture cilice  路  3Comments

hxnt picture hxnt  路  3Comments

legomushroom picture legomushroom  路  3Comments

eoinmurray picture eoinmurray  路  3Comments

ConstantinChirila picture ConstantinChirila  路  3Comments