Skip to content
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

Unusable due to slow startup. Fresh install win 32, no extensions, startup > 10 Minutes! #29798

Closed
WhatFreshHellIsThis opened this issue Jun 28, 2017 · 10 comments
Assignees
Labels
info-needed Issue requires more information from poster perf-profile

Comments

@WhatFreshHellIsThis
Copy link

  • VSCode Version: 1.13

  • OS Version: Windows 7 32 bit

NOTE: I also have Visual studio 2012 installed on this computer and it's running in a virtual machine.
Visual studio 2012 opens within seconds, there is almost no noticeable delay running in this fast virtual machine.

Steps to Reproduce:

  1. Download and install VS code on Windows 7 32 bit
  2. Runs fast first time after installation and opens up to the welcome screen
  3. Close, go to command prompt and run again Code --disable-extensions
  4. Nothing happens, open task manager and it's showing Code.exe and cpu is pegged at 99%
  5. Start a stopwatch, wait 10 minutes cpu varies between 99% and rarely dips to 97%.
  6. Give up. No visible Code editor onscreen anywhere, just the task manager process is the only evidence it's doing anything; stop the process.

I left it to start one time as I had to go out, came back about half an hour later and it was opened so at some point it does actually complete the startup but I have no idea how long it took.

Same thing happens when I run it without disabling extensions by the way and I've tried it through several reboots uninstalls etc.

Reproduces without extensions: Yes

I've used Code on Linux previously (64bit Debian in virtual machine on same host computer) and it runs very fast and is very useful, however I wanted to consolidate all my work to my windows dev machine and ran into this issue.

This is a clean install, I'm guessing my difference from others may be that I have vs 2012 installed already? Only thing I can think of that might have some possibility of interfering with it.

@jrieken jrieken added the info-needed Issue requires more information from poster label Jun 29, 2017
@jrieken
Copy link
Member

jrieken commented Jun 29, 2017

@WhatFreshHellIsThis Please start VS Code with the --prof-startup flag. That will create CPU profile of the startup sequence. Please attach those profiles here.

@WhatFreshHellIsThis
Copy link
Author

Cool, coming right up!

@WhatFreshHellIsThis
Copy link
Author

WhatFreshHellIsThis commented Jun 29, 2017

Ok, here they are. Please take note that it started up far faster with the profile flag than it does with the disable extensions flag. With the profile flag the first screen draw happened in 1 minute and 42 seconds and the cpu went to zero only after 6 minutes.

By contrast, with the disable extensions flag I waited over 6 minutes before finally killing the task and saw nothing drawn on screen.
e430_main.cpuprofile.txt
e430_renderer.cpuprofile.txt

@jrieken
Copy link
Member

jrieken commented Jun 29, 2017

Wow, crazy. It takes roughly ~1.5 for the app ready event to be delivered. Any AV software installed?

screen shot 2017-06-29 at 18 42 33

@jrieken
Copy link
Member

jrieken commented Jun 29, 2017

I am closing this as dupe of #22087. Sad, but it is a known issue that electron can start very slow on windows, that is the signal of the app being ready is delayed, often by anti virus software. This is an extreme case of this...

@jrieken jrieken closed this as completed Jun 29, 2017
@WhatFreshHellIsThis
Copy link
Author

This is with the Microsoft anti virus disabled real time protection and to be on the safe side I also specifically excluded Code.exe process as well. Anti Virus is not the culprit unless it's doing something even when turned off and that process excluded.

This issue is not caused by anti-virus to the best of my ability to ensure that.

@WhatFreshHellIsThis
Copy link
Author

Also, why does it start the first time after installation quickly every single time?
On a fresh install it triggers start up and it typically takes just a few seconds after I click on the last installer dialog.

@WhatFreshHellIsThis
Copy link
Author

I'm going to go ahead and uninstall the Microsoft AV completely just to put this to rest either way. I'll report back shortly.

@WhatFreshHellIsThis
Copy link
Author

Uninstalled Microsoft Security Essentials, clean reboot.
I have no anti virus software at all installed for this profile.
Result is absolutely no change, still took 1 minute and 45 seconds to the first draw, here are the profiles:

ea83_main.cpuprofile.txt
ea83_renderer.cpuprofile.txt

@WhatFreshHellIsThis
Copy link
Author

I'm going back to Debian now, I hope this gets sorted out at some point, Code is awesome on Debian, I wish it was as good on Windows.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster perf-profile
Projects
None yet
Development

No branches or pull requests

2 participants