-
Notifications
You must be signed in to change notification settings - Fork 15.7k
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
Very slow startup time on Windows 7 64 bit for electron version 2.0.0 #12895
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
@dough654 is this windows running in a VM? Is this a single-CPU environment? |
I cannot replicate this. We have Electron 2.0.0 running in production in our company. We have quite a few Windows 7 machines running in our network and none of them are having this issue. Do you have the same results with a fresh project? |
Sorry for the delayed response. I haven't had time to look in to it further, as I just reverted back to a previous version to get some work done. Now however, we have another problem on our site. We use VSCode for our editor of choice, and since their recent release of version 1.26.0, that application has had the same slow-to-open issue. It's about 25 seconds before a window even shows up, and about 45 seconds before anything is functional. Previous to this version, vs code would be open and operational in about 2-3 seconds. Checking the release notes of VSCode v1.26.0, sure enough, they upgraded the version of electron they were using. I've been able to replicate this on a few other machines at the site, everyone appears to be having the same issue. Our machines are relatively powerful, all running on SSDs i7 Quad Core with 32GB RAM. We're not running anything in a VM, it's all native. Clearly there is something specific to our environment that is causing the slow down, since I doubt VSCode would ship with that type of slow performance on a major version of Windows. Any ideas on how I can debug the issue and identify the root cause? |
@dough654 VSCode has a wiki to diagnose slow startup issues: https://github.com/Microsoft/vscode/wiki/Performance-Issues |
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. |
So I did the diagnostics you recommended with VSCode, and this is what I got. After that, I created a new app using electron-quick-start, and I tried commenting out the Whatever our problem is, it appears to be related to something in the electron.exe (happens before the node code gets initiated). I took a look in the task manager as I ran 'npm start', and I've noticed that the initial electron.exe gets spawned pretty much right away. But the second electron.exe process takes the 20 seconds to show up. We've tried disabling our AV product, with no avail. I'm planning on testing on a windows 10 build soon to see if the issue persists there or not. Any guidance or suggestions would be appreciated as we continue to troubleshoot. |
@dough654 you could try to measure how long it takes until you get the |
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? |
btw - |
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. |
@dough654 can you provide the following details to eliminate some possible causes and further diagnose the issue.
|
@dough654 are you able to provide the information in the above comment? |
btw: there are many logs in similar issue in VSCode bugtracker with all the logs: microsoft/vscode#56644 |
Does issue still requires more information to be solved or current info is sufficient? If more info is needed I'll be glad to provide - just tell me what. |
If I look at the procmon.exe output (sysinternals tool), electron.exe is creating 3 threads. Between Thread Create #3 and any other activity, there are EXACTLY 20 seconds. For me, this looks like a timeout (thread acknowledge / semaphore / whatever). The activities before / after this timeout seem to have something to do with Winsock. |
@sxmpasch
|
@popfalushi |
@sxmpasch @popfalushi thanks for the additional info, I believe you were able to verify this issue with base electron app, can you confirm if this is present with 3.0 stable and 4.0.0-nightly.20180929 versions ? I was unable to verify this issue on my machine, so couldn't get much into debugging. Anything particular with respect to the network environments or machine setup that I should be aware of ? Thanks! |
@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. |
@deepak1556 - I have tried 4.0.0-nightly.20181010 with the same test application as 3.0. |
@deepak1556 - anything new on this? I wish I could help, but unfortunately, I don't get this to compile properly on my windows machine... |
@sxmpasch nothing new on my end.
What issue are you facing ? |
@deepak1556 - My Notebook is behind a proxy with username/password. When I tried last time, it got stuck somewhere with many errors/warnings. I have retried this today, he now is looking for gn.exe without being able to download anything... |
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. |
remove CDN in index.html :) |
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. |
@gidbrn tha's exactly the problem. I just uninstalled my TMG Client and everything is loading within a second ! |
Thank you for taking the time to report this issue and helping to make Electron better. The version of Electron you reported this on has been superseded by newer releases. If you're still experiencing this issue in Electron v4.2.x or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know. I'm setting the Thanks in advance! Your help is appreciated. |
Thank you for your issue! We haven't gotten a response to our questions in our comment above. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue. |
@sofianguy this is still reported to happen with |
It is still happening on me, with all of electron apps like Discord, VSCode, GitHub Desktop, Postman |
Is there any update about this issue? I still have this issue so far. I also tried windows safe-mode boot, disabling anti-virus, version electron 8.x.x demo app that can be launched with the command |
I fixed this problem by uninstalling badlion client. then all of electron apps launches within 1 sec. |
We have this problem also. 20 second wait time on Mac, 40 seconds on Windows 10 or 7. We are using Electron 8.2.5 and we have a coporate proxy. |
Happened to me the same. I had a 404 to a non existing css that I forgot to remove. Turned out removing that solved the 25 sec delay... Maybe this can help someone? |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue. |
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.
The text was updated successfully, but these errors were encountered: