electron: Very slow startup time on Windows 7 64 bit for electron version 2.0.0

  • Electron Version: 2.0.0
  • Operating System (Platform and Version): Windows 7 Enterprise 64 bit
  • Last known working Electron version: 1.8.6

I’m currently running windows 7 and tried to upgrade an electron app to version 2.0.0. It now takes ~1 minute for the application to finish loading before it becomes responsive. The same application running on electron 1.8.6 opens in ~1 second. I’ve replicated this with the base demo app as well.

I’m currently running node version 8.9.1 on the machine under node version manager.

I am starting the application using the following NPM command:

"start": ".\\node_modules\\electron\\dist\\electron.exe main.js --enable-logging",

The same behavior happens after packaging as well using electron-packager

I will continue to use 1.8.6 for now. Just wanted to bring this to your attention.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 5
  • Comments: 40 (13 by maintainers)

Most upvoted comments

It is still happening on me, with all of electron apps like Discord, VSCode, GitHub Desktop, Postman

Same problem here, but on windows 8.1. I’m also behind a corporate proxy. I think that’s the issue, because same electron version at home (without a proxy) starts instantly. Tried installing version 4.0.0-beta9 and works instantly with proxy or not.

Yes same here, all my private computers are not affected. Only my professionnal one behind a proxy is.

The problem occurs if you have a TMG Client (ISA Client). If you remove the TMG Client (instead of turning it off), the problem goes away. (ATOM Editor + Windows 7 + TMG Client)

remove CDN in index.html 😃

btw: there are many logs in similar issue in VSCode bugtracker with all the logs: https://github.com/Microsoft/vscode/issues/56644

Just following up on this. As @jrieken referenced above, a good number of people are chiming in about VSCode, all with identical startup performance issues. Seems like the issue may be wider spread than I originally thought.

It’s pretty clear that the update to electron 2.X is the culprit. Just wanted to bring the scope of this to the electron team’s attention, so it can be prioritized appropriately.

Again, I’d be more than happy to run any diagnostics or tests in my environment to track down the issue.

btw - https://github.com/Microsoft/vscode/issues/56644#issuecomment-415378536 shows that folks with Windows 10 see this too, so it’s not just Windows 7

Thanks for the suggestion, but it still takes about 20+ seconds. I put a console.log statement at the very top of the main.js before and that also takes 20+seconds. So clearly the main.js is not even being interpreted until that point. Once the main.js does get initiated though, it takes another 20 or so seconds for the BrowserWindow to finish opening. Once it finishes opening, the render of the html file is instant. Maybe it’s having trouble spawning new processes?

It’s got to be something in electron.exe that’s changed since previous versions that’s now incompatible with our environment somehow. Maybe something in libuv?

I fixed this problem by uninstalling badlion client. then all of electron apps launches within 1 sec. Some people saying that in vscode issue. If you guys have this problem and have installed badlion client, then just uninstall it and restart the pc. https://github.com/microsoft/vscode/issues/56644#issuecomment-600285015

@sofianguy this is still reported to happen with 6-1-x and higher, reopening to investigate further.

Same problem here, but on windows 8.1. I’m also behind a corporate proxy. I think that’s the issue, because same electron version at home (without a proxy) starts instantly.

Tried installing version 4.0.0-beta9 and works instantly with proxy or not.

@popfalushi on my two computers in corporate domain, laptop and workstation, both windows 10, I have the issue and the other people in my domain have the same thing, tens of people downgraded to vs code 1.25 with 1.7 version of electron. Maybe this is some kind of domain policy that causes this issue? we have also enterprise version of chrome installed, but on its own it works fine.

small update @deepak1556, I’ve used electron 4.0 you said and added it to quickstart and process started in instantly, on the same laptop, electron 3.0 has the performance issue.

electron 4.0 works fine so good news.

Thanks, I’ll give that a shot. Although it’s pretty clear that the combination of 2.X version of electron and something in our environment is causing the issue, since we never had performance problems before with VSCode or any custom electron apps using 1.X versions.

Hopefully VSCode’s diagnostics might shed some light. I’ll respond back later with any results we find.