cli icon indicating copy to clipboard operation
cli copied to clipboard

heroku-cli broken for Win64 on Intel Ice Lake

Open obfuscurity opened this issue 5 years ago • 31 comments

There appears to a bug associated with libuv when running under Windows 10 on Intel Ice Lake processors. Although this is not a native heroku-cli bug, it appears to affect users on the most recent Intel processor family (e.g. Intel Core i-7 10xxx chips).

What is the current behavior?

Attempting to run any interactive commands (login, update, etc) returns the following error. It appears to be an acknowledged bug in libuv, but the maintainers there are dismissing it as a simple time sync problem (hint: it's not). Note that I'm not running this in the WSL, but rather in the git-shell for Windows (also attempted in Powershell, same error).

$ heroku login
Assertion failed: new_time >= loop->time, file c:\ws\deps\uv\src\win\core.c, line 309

What is the expected behavior?

I would expect a prompt for my credentials.

$ heroku --version
heroku/7.33.3 win32-x64 node-v11.14.0

Windows 10 Home Version 1903 OS build 18362.267

obfuscurity avatar Oct 11 '19 05:10 obfuscurity

I can reproduce this error with the following config:

Heroku 7.33.3 Node 10.16.3 LTS Intel i7-1065G7 Windows 10 Home 1903 Build 18362.356 XPS 13 2 in 1 7390

Yonom avatar Oct 13 '19 00:10 Yonom

I am having the same issue on my new Surface 3 laptop.

heroku/7.33.3 win32-x64 node-v11.14.0 Intel i7-1065G7 Windows 10 Home Version 1903 Build 18362.295

Edit: I should add that I get this error whether using Git Bash or plain old Command Prompt. Still having the issue, and not really sure where to go for help with this.

bferriman avatar Oct 23 '19 16:10 bferriman

I am having the same issue on a new Dell laptop.

heroku/7.33.3 win32-x64 node-v11.14.0 Intel(R) Core(TM) i7-1065G7 Windows 10 Pro Version 1903 OS build 18362.356

Tim-Shaffer avatar Oct 25 '19 00:10 Tim-Shaffer

Same issue with my Surface 3 laptop with command prompt.

Intel i7-1065G7 Node 10.17.0 LTS Windows 10 Home Version 1903 Build 18362.295

adrianlee avatar Oct 27 '19 06:10 adrianlee

Same issue as described above.

Surface 3 laptop Intel i7 -1065G7 Windows 10 Home Version 1903

reileybergin avatar Nov 02 '19 23:11 reileybergin

Same issue as above

Dell XPS 13 2 in 1 7390 Intel i7 - 1065G7 Windows 10 Pro Version 1903

Treygec avatar Nov 04 '19 13:11 Treygec

Same issue as above

Dell XPS 13 2 in 1 7390 Intel i7 - 1065G7 Windows 10 Pro Version 1903

suavelizard avatar Nov 14 '19 03:11 suavelizard

Has anyone made any headway recently on what could be the potential cause of this error? Not sure if this is something that Heroku can address or something much further upstream.

reileybergin avatar Nov 20 '19 21:11 reileybergin

I am also experiencing this issue with the Surface 3 Laptop. How can we get this resolved?

kateerogers avatar Nov 21 '19 14:11 kateerogers

Same issue here: Microsoft Surface Pro 7 i5-1035G4 Windows 10 Pro 10.0.18362 Build 18362 I've tried using bcdedit /set useplatformclock false to switch clocks, no effect. Have also tried various mechanisms to sync / update clock.

ollytheninja avatar Dec 08 '19 03:12 ollytheninja

Dell released a firmware update for the XPS that I believe updates the timing for Icelake. For other XPS users I suggest checking that you are running the latest BIOS.

suavelizard avatar Dec 17 '19 02:12 suavelizard

Oh wow, does that mean this is a hardware / firmware issue rather than an upstream library issue?

ollytheninja avatar Dec 17 '19 21:12 ollytheninja

Confirming firmware update SurfacePro7_Win10_17763_19.104.44031.0 fixed this on my Surface Pro 7 https://www.microsoft.com/en-us/download/details.aspx?id=100419

ollytheninja avatar Dec 17 '19 22:12 ollytheninja

Can anyone confirm if a similar firmware update has been released for the Surface 3 Laptop?

reileybergin avatar Dec 19 '19 23:12 reileybergin

Can anyone confirm if a similar firmware update has been released for the Surface 3 Laptop?

UPDATE: This bug is no longer an issue with the Surface 3 Laptop

reileybergin avatar Jan 02 '20 19:01 reileybergin

Hi @reileybergin, what did you do to get rid of this problem? I have Surfave 3 Laptop with the most recent updates and I still run into this problem...

janickil avatar Jan 12 '20 16:01 janickil

Hi @janickil. I wish I could be more helpful but one day I checked and it was just working. I did use intel's driver update https://downloadcenter.intel.com/ about a week before so maybe this did something but I'm not sure.

reileybergin avatar Jan 15 '20 19:01 reileybergin

Downloading the latest firmware for the Surface Laptop 3 fixed it for me.

You'll need to follow the instructions here and download the appropriate update.

https://support.microsoft.com/en-us/help/4023482

On Wed, Jan 15, 2020, 11:57 AM Reiley Bergin [email protected] wrote:

Hi @janickil https://github.com/janickil. I wish I could be more helpful but one day I checked and it was just working. I did use intel's driver update https://downloadcenter.intel.com/ about a week before so maybe this did something but I'm not sure.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/heroku/cli/issues/1354?email_source=notifications&email_token=AAGBWV324ASEQU3TGG2YGRLQ55SLHA5CNFSM4I7VDY42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJBS6CI#issuecomment-574828297, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGBWV2VSBB7MWIKKTQ3MFDQ55SLHANCNFSM4I7VDY4Q .

adrianlee avatar Jan 17 '20 20:01 adrianlee

@adrianlee I tried installing the latest firmware for my Surface Laptop 3 Intel i7 but the issue persists.

Could you tell us which firmware you're on? If I check the Surface app it says UEFI 28.25.140.0.

This issue is driving me nuts :(

rejhgadellaa avatar Mar 10 '20 06:03 rejhgadellaa

@rejhgadellaa I'm on a Surface Laptop 3 i7 UEFI 28.25.140.0 and the issue cleared up for me sometime in Dec-Jan when others started having success. I didn't manually install a firmware update or anything. Good luck!

bferriman avatar Mar 10 '20 22:03 bferriman

i5-1035G4 node - 12.0.18 model - HP spectre, getting the same error

ripu2 avatar Aug 14 '20 19:08 ripu2

Hi @ripu2, have you tried latest driver update from HP or Intel?

ollytheninja avatar Aug 20 '20 09:08 ollytheninja

Hi @ollytheninja , Didn't try the update but got the issue resolved by just synchronizing the clock

ripu2 avatar Sep 07 '20 14:09 ripu2

Just got the latest driver update from intel, nothing. Re synced clock after, nothing. I've run out of idea for this. Does anyone have any idea what could be causing it?

otisjnz avatar Oct 10 '20 21:10 otisjnz

My system:

Windows 10 Home Version 1903 OS build 18362.267

otisjnz avatar Oct 10 '20 21:10 otisjnz

@Tabogachi , try synchronizing your system clock, it'll resolve the issue.

ripu2 avatar Oct 11 '20 18:10 ripu2

Still no fix. I did npm audit, and it came up with:

  High            Prototype Pollution in node-forge

  Package         node-forge

  Patched in      >= 0.10.0

  Dependency of   firebase-tools

  Path            firebase-tools > @google-cloud/pubsub > google-auth-library
                  > gtoken > google-p12-pem > node-forge

  More info       https://npmjs.com/advisories/1561


  High            Prototype Pollution in node-forge

  Package         node-forge

  Patched in      >= 0.10.0

  Dependency of   firebase-tools

  Path            firebase-tools > @google-cloud/pubsub > google-gax >
                  google-auth-library > gtoken > google-p12-pem > node-forge

  More info       https://npmjs.com/advisories/1561


  High            Prototype Pollution in node-forge

  Package         node-forge

  Patched in      >= 0.10.0

  Dependency of   firebase-tools

  Path            firebase-tools > google-auth-library > gtoken >
                  google-p12-pem > node-forge

  More info       https://npmjs.com/advisories/1561


  High            Prototype Pollution in node-forge

  Package         node-forge

  Patched in      >= 0.10.0

  Dependency of   firebase-tools

  Path            firebase-tools > google-gax > google-auth-library > gtoken >
                  google-p12-pem > node-forge

otisjnz avatar Oct 12 '20 03:10 otisjnz

Tried npm audit fix but it said it needed manual review

otisjnz avatar Oct 12 '20 03:10 otisjnz

Just got the latest driver update from intel, nothing. Re synced clock after, nothing. I've run out of idea for this. Does anyone have any idea what could be causing it?

@Tabogachi did you find any solution. I am having the same error in server.js when using axios or superagent to fetch data from a third part site.

AlokJoshi avatar Feb 17 '22 21:02 AlokJoshi

Hey @AlokJoshi. what device have you got and have you installed the latest drivers and synchronized your clock?

ollytheninja avatar Feb 17 '22 23:02 ollytheninja