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

VS Code can freeze on startup sending messages to extension host #13667

Closed
Platzer opened this issue Oct 13, 2016 · 7 comments · Fixed by #13763
Closed

VS Code can freeze on startup sending messages to extension host #13667

Platzer opened this issue Oct 13, 2016 · 7 comments · Fixed by #13763
Assignees
Labels
freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues important Issue identified as high-priority
Milestone

Comments

@Platzer
Copy link

Platzer commented Oct 13, 2016

  • Version 1.7.0-insider
  • Commit 5dd716e
  • Date 2016-10-13T08:02:00.080Z
  • OS Version: Win 7 x64

Steps to Reproduce:

  1. Open workspace with one open "medium" source code file (~ 2500 lines of code)
  2. Cannot reproduce with VSCode 1.6

Console output of code-insiders.cmd VCS_Dokumente --disable-extensions --verbose:

[main 12:52:09] Starting VS Code in verbose mode
[main 12:52:09] from: c:\Program Files (x86)\Microsoft VS Code Insiders\resources\app
[main 12:52:09] args: { _: [ 'C:\\Users\\platzelu\\Documents\\VCS_Dokumente' ],
  help: false,
  h: false,
  version: false,
  v: false,
  wait: false,
  w: false,
  diff: false,
  d: false,
  goto: false,
  g: false,
  'new-window': false,
  n: false,
  'reuse-window': false,
  r: false,
  performance: false,
  p: false,
  verbose: true,
  logExtensionHostCommunication: false,
  'disable-extensions': true,
  disableExtensions: true,
  'list-extensions': false }
[8996:1013/125209:ERROR:jump_list.cc(274)] Failed to append custom category 'Recent Folders' to Jump List due to system privacy settings.
[8996:1013/125210:INFO:CONSOLE(66)] "Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ", source: file:///C:/Program Files (x86)/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js (66)
[main 12:52:11] IPC#vscode-workbenchLoaded
ApplicationInsights:Sender [ { Error: getaddrinfo ENOTFOUND dc.services.visualstudio.com dc.services.visualstudio.com:80
      at errnoException (dns.js:28:10)
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
    code: 'ENOTFOUND',
    errno: 'ENOTFOUND',
    syscall: 'getaddrinfo',
    hostname: 'dc.services.visualstudio.com',
    host: 'dc.services.visualstudio.com',
    port: 80 } ]
ApplicationInsights:Sender [ { Error: getaddrinfo ENOTFOUND vortex.data.microsoft.com vortex.data.microsoft.com:443
      at errnoException (dns.js:28:10)
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
    code: 'ENOTFOUND',
    errno: 'ENOTFOUND',
    syscall: 'getaddrinfo',
    hostname: 'vortex.data.microsoft.com',
    host: 'vortex.data.microsoft.com',
    port: 443 } ]
[VS Code]: detected unresponsive
[main 12:52:49] Lifecycle#window-all-closed
[main 12:52:49] Lifecycle#before-quit
[main 12:52:49] App#will-quit: disposing resources

Developer Tools Consol output:

grafik

@bpasero
Copy link
Member

bpasero commented Oct 13, 2016

@Platzer are you offline or behind a slow network connection? Does it reproduce when opening other folders?

@bpasero bpasero added info-needed Issue requires more information from poster freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues labels Oct 13, 2016
@bpasero bpasero added this to the Backlog milestone Oct 13, 2016
@Platzer
Copy link
Author

Platzer commented Oct 13, 2016

No slow connection +20Mbit sync. I also tried it outside the corporate network in case of firewall prolem, also not working.
Yes can reproduce it with each folder. If no open files are restored it is working, if at least 1 open file is restored the editor crash.
I also set following in my setting.json:

    "telemetry.enableCrashReporter": false,
    "telemetry.enableTelemetry": false,

@Platzer Platzer closed this as completed Oct 13, 2016
@Platzer Platzer reopened this Oct 13, 2016
@bpasero bpasero modified the milestones: October 2016, Backlog Oct 13, 2016
@bpasero
Copy link
Member

bpasero commented Oct 13, 2016

This could be what @dbaeumer found in his setup too.

@dlong500
Copy link

I realized my problem only occurred when I had a new yarn.lock file open in the editor, and this file is quite large (~6000 lines). For anyone who doesn't know what that file is, it is produced by Yarn (a new frontend for NPM that solves the problem NPM shrinkwrap tried to solve by producing a dependency resolution file that can be committed in a source repo). See https://yarnpkg.com

Just as with @Platzer, I can't reproduce the problem in v1.6.

@ZCShou
Copy link

ZCShou commented Oct 14, 2016

+1 This issue starts to display since Code - Insiders 1.7.0-insider (cf203e0, 2016-10-11T06:11:07.928Z) But for me, it not displays always.

4

@SK83RJOSH
Copy link

SK83RJOSH commented Oct 14, 2016

Same issue here, only happens in 1.7.0 when I have multiple "medium" sized source files open in a particular project (400~ lines each).

@bpasero bpasero changed the title Vscode-Insider freeze on startup VS Code can freeze on startup sending messages to extension host Oct 14, 2016
@bpasero bpasero added important Issue identified as high-priority and removed info-needed Issue requires more information from poster labels Oct 14, 2016
@bpasero
Copy link
Member

bpasero commented Oct 14, 2016

I can reproduce by having a sufficient large enough file open right on startup with latest insiders. It seems to be an issue with node.js (nodejs/node#7657) blocking the process while waiting for IPC messages.

aa2fd63 resulted in larger messages being sent to the extension host right on startup and seems to now cause this more easily. I believe this could happen before already though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues important Issue identified as high-priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants