Skip to content

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

Closed

Description

  • 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

Activity

  1. bpasero commented on Oct 13, 2016

    @bpasero
    Contributor

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

  2. added
    info-needed
    freeze-slow-crash-leak
    on Oct 13, 2016
  3. Platzer commented on Oct 13, 2016

    @Platzer
    Author

    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,
    
  4. bpasero commented on Oct 13, 2016

    @bpasero
    Contributor

    This could be what Dirk Bäumer (@dbaeumer) found in his setup too.

  5. dlong500 commented on Oct 13, 2016

    @dlong500

    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 Lukas Kronberger (@Platzer), I can't reproduce the problem in v1.6.

  6. ZCShou commented on Oct 14, 2016

    @ZCShou

    +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

  7. SK83RJOSH commented on Oct 14, 2016

    @SK83RJOSH

    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).

  8. changed the title [-]Vscode-Insider freeze on startup[/-] [+]VS Code can freeze on startup sending messages to extension host[/+] on Oct 14, 2016
  9. added
    important
    and removed
    info-needed
    on Oct 14, 2016
  10. bpasero commented on Oct 14, 2016

    @bpasero
    Contributor

    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.

  11. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

freeze-slow-crash-leakimportant

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions