hyper icon indicating copy to clipboard operation
hyper copied to clipboard

WinPTY agent fails to launch on Windows 7

Open codehearts opened this issue 8 years ago • 27 comments

  • [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
  • OS version and name: Windows 7 SP1 64bit
  • Hyper.app version: 2.0.0
  • Link of a Gist with the contents of your .hyper.js: https://gist.github.com/codehearts/401f8857f1f817052b187cb119875e32
  • Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A
  • The issue is reproducible in vanilla Hyper.app: Yes

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.

codehearts avatar Apr 16 '18 17:04 codehearts

Do you remember the last canary that works?

chabou avatar Apr 16 '18 19:04 chabou

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

codehearts avatar Apr 16 '18 19:04 codehearts

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

codehearts avatar Apr 16 '18 20:04 codehearts

Just ran into this on Win10 using the new v2.

corydeppen avatar Apr 17 '18 16:04 corydeppen

@corydeppen Is it reproducible each time?

chabou avatar Apr 19 '18 11:04 chabou

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

corydeppen avatar Apr 19 '18 13:04 corydeppen

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.

UniqueUsr avatar Apr 19 '18 15:04 UniqueUsr

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

DavidRHulme avatar Apr 23 '18 07:04 DavidRHulme

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.

codehearts avatar Jun 27 '18 01:06 codehearts

javascripterror_hyper

Windows 10 version 1709

idike avatar Jul 06 '18 02:07 idike

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.

kenorb avatar Jul 26 '18 13:07 kenorb

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?

boydjeff avatar Dec 17 '18 19:12 boydjeff

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

ljismail0 avatar Dec 17 '18 20:12 ljismail0

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!

talentwill avatar Dec 21 '18 04:12 talentwill

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?

parktheredcar avatar Dec 21 '18 23:12 parktheredcar

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.

aescasio avatar Dec 23 '18 11:12 aescasio

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

Ouch avatar Dec 23 '18 21:12 Ouch

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 avatar Dec 25 '18 12:12 rnagatama

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

aescasio avatar Dec 26 '18 01:12 aescasio

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?

KingNoosh avatar Jan 02 '19 14:01 KingNoosh