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

Repeatedly opening and closing the terminal causes VS Code to freeze #77989

Closed
mihaiconstantin opened this issue Jul 26, 2019 · 2 comments
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@mihaiconstantin
Copy link

Issue Type: Performance Issue

I noticed that, with the most recent update, after I open and close the terminal several times, VS Code hangs (i.e., see this brief video: https://youtu.be/uwTt3cvETAc). Additionally, it seems to hog the CPU resources by spawning many consoles (i.e., see this screenshot: https://imgur.com/a/UQZ2eRJ).

I tried a clean install and disabled all the extensions, however, the issue still persists. Any clue what is going on?

VS Code version: Code 1.36.1 (2213894, 2019-07-08T22:59:35.033Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2808)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.85GB (10.31GB free)
Process Argv
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    1	    84	  7760	code main
    0	   187	  2332	   window (Untitled-1 - Visual Studio Code)
    0	    10	  6780	     C:\Windows\System32\cmd.exe /k C:\PROGRA~1\cmder_mini\vscode.bat
    0	    67	 11580	     extensionHost
    0	     6	 12800	     console-window-host (Windows internal process)
    0	   126	  2816	   gpu-process
    0	    13	  5352	   electron-crash-reporter
    1	    80	 12588	   shared-process
    1	    65	 17192	   window (Issue Reporter)
Workspace Info
Clean workspace.
Extensions: none
@mihaiconstantin
Copy link
Author

mihaiconstantin commented Jul 26, 2019

Update

I removed the following lines from my user settings (i.e., the cmder_mini console):

"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"terminal.integrated.shellArgs.windows": ["/k", "C:\\PROGRA~1\\cmder_mini\\vscode.bat"],

Regardless, the issue still persists with the default PowerShell terminal.

In case it helps, these are my user settings:
{
    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
    "terminal.integrated.shellArgs.windows": ["/k", "C:\\PROGRA~1\\cmder_mini\\vscode.bat"],
    "workbench.settings.useSplitJSON": true,
    "terminal.integrated.fontSize": 11,
    "editor.fontSize": 11,
    "editor.lineHeight": 18,
    "editor.mouseWheelScrollSensitivity": 5,
    "explorer.confirmDelete": false,
    "editor.minimap.enabled": false,
    "window.closeWhenEmpty": false,
    "editor.mouseWheelZoom": true,
    "editor.scrollBeyondLastLine": true,
    "terminal.integrated.cursorBlinking": true,
    "editor.fontFamily": "Fira Code",
    "editor.tabCompletion": "on",
    "editor.wordWrap": "off",
    "terminal.integrated.cursorStyle": "line",
    "workbench.startupEditor": "newUntitledFile",
    "diffEditor.ignoreTrimWhitespace": false,
    "files.autoSave": "afterDelay",
    "files.autoSaveDelay": 1000,
    "explorer.autoReveal": false,
    "workbench.editor.closeEmptyGroups": false,
    "workbench.activityBar.visible": true,
    "explorer.confirmDragAndDrop": false,
    "editor.detectIndentation": false,
    "breadcrumbs.enabled": false,
    "vetur.format.options.tabSize": 4,
    "vetur.format.options.useTabs": false,
    "debug.internalConsoleOptions": "neverOpen",
    "window.zoomLevel": 0,
    "editor.renderWhitespace": "boundary",
    "window.menuBarVisibility": "toggle",
    "terminal.integrated.rendererType": "dom",
    "cSpell.showStatus": false,
    "editor.quickSuggestions": {
        "strings": true
    },
    "[vue]": {
        "editor.tabSize": 4
    },
    "[javascript]": {
        "editor.tabSize": 4
    },
    "files.exclude": {
        "**/.vs": true,
        "**/*.sln": true,
        "**/*.vcxproj": true,
        "**/*.vcxproj.user": true,
        "**/*.vcxproj.filters": true,
        "**/packages.config": true
    },
    "files.associations": {
        "*.rmd": "markdown"
    },
    "r.rterm.windows": "C:\\Program Files\\R\\R-3.5.3\\bin\\x64\\R.exe"
}

@Tyriar
Copy link
Member

Tyriar commented Jul 27, 2019

/duplicate #76548

@Tyriar Tyriar closed this as completed Jul 27, 2019
@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Jul 27, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants