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

VSCode freezes when opening a terminal #239838

Open
anrikun opened this issue Feb 6, 2025 · 43 comments
Open

VSCode freezes when opening a terminal #239838

anrikun opened this issue Feb 6, 2025 · 43 comments
Assignees
Labels
freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues gpu Issues concerning GPU related items important Issue identified as high-priority new release Issues found in a recent release of VS Code terminal General terminal issues that don't fall under another label

Comments

@anrikun
Copy link

anrikun commented Feb 6, 2025

Does this issue occur when all extensions are disabled? Yes

  • VS Code Version:
    Version: 1.97.0 (user setup)
    Commit: 33fc5a9
    Date: 2025-02-04T22:41:26.688Z
    Electron: 32.2.7
    ElectronBuildId: 10660205
    Chromium: 128.0.6613.186
    Node.js: 20.18.1
    V8: 12.8.374.38-electron.0
    OS: Windows_NT x64 10.0.19045

Steps to Reproduce:

  1. Open VSCode
  2. Run update 1.97.0
  3. Open a project folder (TypeScript project)

This issue makes VSCode completely unusable.

Image

@dkumza
Copy link

dkumza commented Feb 6, 2025

confirm issue exists too after last update. But for me it's random... And doesn't matter which project I open

@HeinzRuetschi
Copy link

Same issuewith Debiam 12, VSC locks up. Message: The Windows is not responding
Removed and reinstalled VSC same problem.
Can not use VSC anymore!

Version: 1.97.0
Commit: 33fc5a9
Date: 2025-02-04T22:41:26.688Z
Electron: 32.2.7
ElectronBuildId: 10660205
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Linux arm64 6.6.74+rpt-rpi-v8

@albertosantini
Copy link

I think it would be useful following https://github.com/Microsoft/vscode/wiki/Performance-Issues

@bpasero bpasero added the new release Issues found in a recent release of VS Code label Feb 6, 2025
@anrikun
Copy link
Author

anrikun commented Feb 6, 2025

I think it would be useful following https://github.com/Microsoft/vscode/wiki/Performance-Issues

There is nothing about solving complete freezes like this there.
How to rollback this update?

@anrikun
Copy link
Author

anrikun commented Feb 6, 2025

To rollback this update (Windows):

@robertZaufall
Copy link

robertZaufall commented Feb 6, 2025

Same freeze on Windows 11 ARM64. MacOS version is running without problems.

@jlmasson
Copy link

jlmasson commented Feb 6, 2025

Same freeze on Windows 11 ARM64. MacOS version is running without problems.

Mac Silicon Version has this issue, too.

@wgroh
Copy link

wgroh commented Feb 6, 2025

Have the same issue on my Raspberry Pi with newest update (OS and VSC). Starting VS Code and after a few seconds it freeze. Can select commands from the menu but nothing happens. Happens with and without extensions.

@FabricioDosSantosMoreira

Same here. VS Code Always freezes after opening a terminal tab.

@brpadilha
Copy link

yes @FabricioDosSantosMoreira its the same here, only freeze when I open terminal. I got crazy reinstalling everything like extensions and zsh pluggins lol, and nothing works, only when I made the downgrade

@bpasero bpasero marked this as a duplicate of #239883 Feb 7, 2025
@bpasero bpasero marked this as a duplicate of #239875 Feb 7, 2025
@bpasero bpasero changed the title VSCode freezes when opening my project folder *since last update* VSCode freezes when opening a terminal Feb 7, 2025
@bpasero bpasero assigned Tyriar and meganrogge and unassigned mjbvz Feb 7, 2025
@bpasero bpasero added important Issue identified as high-priority freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues terminal-find Relating the terminal's find widget terminal General terminal issues that don't fall under another label and removed terminal-find Relating the terminal's find widget labels Feb 7, 2025
@bpasero
Copy link
Member

bpasero commented Feb 7, 2025

We are sorry for the trouble, but need to gather more information for how to reproduce this issue. I hear that people notice this crash when they open a terminal in VS Code, is that true for all users? And if so, anything specifically configured in settings or with the terminal in the OS that could hint to why it crashes?

Also, if you could try to reproduce from our insider builds: You can give our preview releases a try from: https://code.visualstudio.com/insiders/

@meganrogge
Copy link
Contributor

I cannot reproduce on macOS. Can you please follow these steps?

https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-and-symbolicating-local-crash-reports

@hardik-parajuli
Copy link

No, When I Was Setting Up My Brothers VS Code First Time I Installed It And Was Trying To Open The Terminal For Checking gcc version and the terminal didn't opened. i didn't did any config at all not even installed a extension only logined his github and microsoft n copilot accout to vscode. nothing else and when i tried again it was not working plz help us

@hardik-parajuli
Copy link

hardik-parajuli commented Feb 7, 2025

@meganrogge
Copy link
Contributor

meganrogge commented Feb 7, 2025

does changing either of these help: terminal.integrated.gpuAcceleration or terminal.integrated.shellIntegration.enabled?

@hardik-parajuli
Copy link

Can anyone else generate the crash report of this bug who ever else is facing this bug as i not able to generate idk why its not generating. @meganrogge and plz try to fix this error as soon as possible.

@bpasero
Copy link
Member

bpasero commented Feb 7, 2025

Can people please share their settings here? The location is: C:\Users\<User ID>\AppData\Roaming\Code\User\settings.json

@widersky
Copy link

widersky commented Feb 7, 2025

@bpasero here's mine, I'm on MacOS ARM:

{
    // Workbench
    "workbench.editor.closeOnFileDelete": true,
    "workbench.tree.expandMode": "singleClick",
    "workbench.tree.indent": 20,
    "workbench.editor.highlightModifiedTabs": true,
    "workbench.editor.decorations.colors": false,
    "workbench.editor.pinnedTabSizing": "compact",
    "workbench.colorCustomizations": {
      "editorUnnecessaryCode.opacity": "#00000075",
      // Global
      "scrollbar.shadow": "#ff000000",
      // "editor.lineHighlightBorder": "#ff000000",
      "focusBorder": "#ff000000",
      // Light themes
      // "list.inactiveSelectionBackground": "#00000010",
      // "editorIndentGuide.background1": "#00000010",
      // "editorIndentGuide.activeBackground1": "#00000035",
      // "editor.lineHighlightBorder": "#00000000",
      // "editor.lineHighlightBackground": "#00000007",
      // "tree.indentGuidesStroke": "#00000010",
      // "tree.inactiveIndentGuidesStroke": "#00000008",
      // Monokai Light
      // "activityBar.background": "#EDE7E5",
      // "commandCenter.border": "#DBD5D4",
      // "commandCenter.background": "#FAF4F2",
      // Monokai Light Sun
      // "activityBar.background": "#EEE5DE",
      // "commandCenter.border": "#DBD5D4",
      // "commandCenter.background": "#FAF4F2",
      // "editorGroup.border": "#DED5D0",
      // "commandCenter.activeBorder": "#EDE7E5",
      // Monokai dark
      "tab.hoverBorder": "#FCE566",
      // Kiwi theme customizations
      // "tab.activeBackground": "#1A1A1A",
      // "tab.inactiveBackground": "#1A1A1A",
      // "editorGroupHeader.tabsBackground": "#1A1A1A",
      // "editorGroupHeader.border": "#292929",
      // // Dark themes
      "list.inactiveSelectionBackground": "#FFFFFF10",
      "editorIndentGuide.background1": "#FFFFFF10",
      "editorIndentGuide.activeBackground1": "#FFFFFF40",
      "editor.lineHighlightBorder": "#ff000000",
      "editor.lineHighlightBackground": "#ffffff07",
      "tree.indentGuidesStroke": "#FFFFFF30",
      "tree.inactiveIndentGuidesStroke": "#FFFFFF10",
      // IntelliJ theme tweak
      // "titleBar.border": "#1E1E23"
      // Monospace IDX liht tweaks
      // "activityBar.background": "#F4F7FD",
      // "titleBar.activeBackground": "#F4F7FD",
      // "statusBar.background": "#F4F7FD",
      // "git.blame.editorDecorationForeground": "#cecece",
      // "editorStickyScroll.border": "#D9DFE7",
      // "editorStickyScroll.shadow": "#00000010",
    },

    // Catppuccin light tweaks
    "catppuccin.customUIColors": {
      "frappe": {
        "panel.border": "#3D3F50",
        "panel.background": "#2A2C3D",
        "editorStickyScroll.border": "#222634",
        "editorGroup.border": "#222634",
      },
      "latte": {
        "editorGroup.border": "#D0D4DE",
        "tab.border": "#D0D4DE",
        "tab.activeBorder": "#D0D4DE",
        "tab.hoverBorder": "#D0D4DE",
        "tab.hoverBackground": "#EFF1F5",
        "tab.unfocusedHoverBorder": "#D0D4DE",
        "editorGroupHeader.tabsBorder": "#D0D4DE",
        "git.blame.editorDecorationForeground": "#00000030",
        "editorStickyScroll.border": "#D0D4DE",
        "panelStickyScroll.border": "#D0D4DE",
        "sideBarStickyScroll.border": "#D0D4DE",
        "sideBarSectionHeader.border": "#D0D4DE",
        "activityBarTop.background": "#DCE0E7",
        "list.inactiveSelectionBackground": "#00000010",
        "editorIndentGuide.background1": "#00000010",
        "editorIndentGuide.activeBackground1": "#00000035",
        "editor.lineHighlightBorder": "#00000000",
        "editor.lineHighlightBackground": "#00000007",
        "tree.indentGuidesStroke": "#00000010",
        "tree.inactiveIndentGuidesStroke": "#00000008",
      }
    },

    // Override some bad defaults
    "editor.copyWithSyntaxHighlighting": false,
    "editor.autoClosingBrackets": "always",
    "window.newWindowDimensions": "inherit",
    "files.trimTrailingWhitespace": true,
    "files.trimFinalNewlines": true,

    // Editor
    "editor.fontFamily": "Fira Code",
    "editor.fontWeight": "500",
    "terminal.integrated.fontWeight": "500",
    "workbench.fontAliasing": "antialiased",
    "editor.gotoLocation.multipleDefinitions": "goto",
    "editor.lineHeight": 22,
    "editor.fontLigatures": true,
    "editor.inlineSuggest.enabled": true,
    "editor.accessibilitySupport": "off",
    "editor.minimap.renderCharacters": false,
    "editor.minimap.maxColumn": 145,
    "editor.tabSize": 2,
    "editor.scrollbar.horizontalScrollbarSize": 4,
    "editor.scrollbar.verticalScrollbarSize": 4,
    "editor.padding.bottom": 24,
    "editor.padding.top": 24,
    "editor.hideCursorInOverviewRuler": true,
    "editor.overviewRulerBorder": false,
    "editor.scrollbar.horizontal": "hidden",
    "editor.linkedEditing": true,
    "editor.inlayHints.fontSize": 10,
    "editor.cursorSurroundingLines": 10,
    "editor.cursorSurroundingLinesStyle": "default",
    "editor.semanticHighlighting.enabled": true,
    "editor.colorDecoratorsActivatedOn": "click",
    "editor.quickSuggestions": {
      "other": true,
      "comments": false,
      "strings": false
    },
    "terminal.integrated.cursorStyle": "underline",
    "terminal.integrated.fontSize": 13,
    "terminal.integrated.lineHeight": 1.6,
    "terminal.integrated.shellIntegration.enabled": true,
    "terminal.integrated.minimumContrastRatio": 1,

    // Files
    "files.insertFinalNewline": true,
    "files.simpleDialog.enable": false,

    // Search excluded files and folders
    "search.exclude": {
      "**/.git": true,
      "**/.github": true,
      "**/.nuxt": true,
      "**/.output": true,
      "**/.pnpm": true,
      "**/.vscode": true,
      "**/.yarn": true,
      "**/bower_components": true,
      "**/dist/**": true,
      "**/env": true,
      "**/logs": true,
      "**/node_modules": true,
      "**/out/**": true,
      "**/package-lock.json": true,
      "**/plugins/**": true,
      "**/pnpm-lock.yaml": true,
      "**/themes/twenty*/**": true,
      "**/tmp": true,
      "**/uploads/**": true,
      "**/venv": true,
      "**/wp-admin/**": true,
      "**/wp-includes/**": true,
      "**/yarn.lock": true
    },

    // File watcher exclude
    "files.watcherExclude": {
      "**/.git/objects/**": true,
      "**/.git/subtree-cache/**": true,
      "**/node_modules/**": true,
      "**/env/**": true,
      "**/venv/**": true,
      "env-*": true,
      "**/wp-admin/**": true,
      "**/wp-includes/**": true,
      "**/uploads/**": true,
    },

    // Copilot
    "github.copilot.enable": {
      "*": true,
      "plaintext": false,
      "markdown": true,
      "scminput": false,
      "yaml": true,
      "javascriptreact": true
    },

    // Git
    "git.mergeEditor": true,
    "git.autofetch": true,

    // Emmet
    "emmet.showSuggestionsAsSnippets": true,
    "emmet.includeLanguages": {
      "postcss": "css",
      "javascript": "javascriptreact",
      "php": "html",
      "svelte": "html"
    },
    "emmet.showExpandedAbbreviation": "always",
    "emmet.syntaxProfiles": {
        "php": "html",
        "svelte": "html"
    },
    "emmet.triggerExpansionOnTab": true,

    // Eslint
    "eslint.codeAction.showDocumentation": {
      "enable": true
    },
    "eslint.quiet": true,
    "eslint.validate": [
      "javascript",
      "typescript",
      "javascriptreact",
      "typescriptreact",
      "vue",
      "html",
      "markdown",
      "json",
      "jsonc",
      "json5"
    ],

    // Others
    "markdown.preview.fontSize": 11,
    "breadcrumbs.enabled": false,
    "debug.console.fontSize": 11,
    "extensions.ignoreRecommendations": true,
    "security.workspace.trust.untrustedFiles": "open",

    // PHP
    "php.suggest.basic": false,

    // Overides per lang
    "[typescriptreact]": {
      "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[javascriptreact]": {
      "editor.defaultFormatter": "dbaeumer.vscode-eslint"
    },
    "[json]": {
      "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[jsonc]": {
      "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[postcss]": {
      "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[css]": {
      "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[typescript]": {
      "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[php]": {
      "editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?"
    },
    "[dart]": {
      "editor.formatOnSave": true,
      "editor.formatOnType": true,
      "editor.formatOnPaste": true,
      "editor.rulers": [],
      "editor.selectionHighlight": false,
      "editor.suggest.snippetsPreventQuickSuggestions": false,
      "editor.suggestSelection": "first",
      "editor.wordBasedSuggestions": "off"
    },
    "[javascript]": {
      "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "editor.renderLineHighlight": "all",
    "[html]": {
      "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "debug.enableStatusBarColor": false,

    // Some experimental stuff
    "workbench.startupEditor": "readme",
    "editor.lightbulb.enabled": "off",
    "editor.renderControlCharacters": false,
    "github.copilot.advanced": {

    },
    "editor.dragAndDrop": false,
    "git.openRepositoryInParentFolders": "never",
    "todo-tree.filtering.excludeGlobs": [
      "**/node_modules/*/**",
      "wp-admin",
      "wp-includes",
      "plugins",
      "dist",
      "public"
    ],
    "gitlens.graph.minimap.enabled": false,
    "[scss]": {
      "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "terminal.integrated.cursorStyleInactive": "underline",
    "workbench.editor.empty.hint": "hidden",
    "debug.toolBarLocation": "commandCenter",

    // Experimental
    "editor.snippetSuggestions": "inline",
    "editor.suggest.localityBonus": true,
    "editor.wordBasedSuggestions": "matchingDocuments",
    "editor.suggest.filterGraceful": true,
    "editor.suggest.showWords": false,
    "editor.parameterHints.enabled": false,
    "editor.suggest.snippetsPreventQuickSuggestions": false,
    "vsintellicode.modify.editor.suggestSelection": "disabled",
    "eslint.format.enable": true,
    "editor.renderWhitespace": "none",
    "telemetry.telemetryLevel": "off",
    "gitlens.views.commitDetails.files.layout": "list",
    "settingsSync.ignoredExtensions": [
      "beardedbear.beardedicons"
    ],
    "editor.bracketPairColorization.enabled": false,
    "catppuccin.bracketMode": "monochromatic",
    "catppuccin.extraBordersEnabled": true,
    "tailwindCSS.includeLanguages": {
      "js": "html"
    },
    "tailwindCSS.experimental.classRegex": [
      ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
    ],
    "editor.minimap.enabled": false,
    "workbench.layoutControl.type": "toggles",
    "editor.experimental.asyncTokenization": true,
    "workbench.experimental.enableNewProfilesUI": true,
    "projectManager.tags": [
      "Kropki Kreski",
      "Pride Of Lions",
      "Sinte",
      "ecLab",
      "Inne",
      "DigitalBuzz",
      "upBrand"
    ],
    "mark-sharp.mermaidTheme": "useMermaidDefaults",
    "editor.hover.sticky": true,
    "workbench.panel.opensMaximized": "preserve",
    "workbench.iconTheme": "Monokai Pro (Filter Octagon) Icons",
    "symbols.hidesExplorerArrows": false,
    "terminal.integrated.suggest.enabled": true,
    "workbench.list.smoothScrolling": true,
    "editor.smoothScrolling": true,
    "terminal.integrated.smoothScrolling": true,
    "scss.scannerExclude": [
      "**/.git",
      "**/node_modules",
      "**/bower_components",
      "**/wp-includes",
      "**/wp-admin"
    ],
    "catppuccin-noctis-icons.hidesExplorerArrows": false,
    "material-icon-theme.folders.theme": "classic",
    "material-icon-theme.files.color": "#5E5445",
    "material-icon-theme.folders.color": "#6A737D",
    "material-icon-theme.activeIconPack": "react",
    "material-icon-theme.hidesExplorerArrows": true,
    "search.mode": "reuseEditor",
    "todo.file.exclude": [
      "**/.!(todo|todos|task|tasks)/**",
      "**/_output/**",
      "**/bower_components/**",
      "**/build/**",
      "**/dist/**",
      "**/venv/**",
      "**/node_modules/**",
      "**/out/**",
      "**/output/**",
      "**/release/**",
      "**/releases/**",
      "**/static/**",
      "**/target/**",
      "**/third_party/**",
      "**/vendor/**",
      "**/wp-admin/**",
      "**/wp-includes/**",
      "**/twenty*/**",
      "**/plugins/**"
    ],
    "git-graph.tabIconColourTheme": "grey",
    "diffEditor.experimental.showMoves": true,
    "diffEditor.experimental.useTrueInlineView": true,
    "catppuccin-icons.monochrome": true,
    "catppuccin-icons.hidesExplorerArrows": true,
    "catppuccin.accentColor": "maroon",
    "php.codeLens.enabled": false,
    "php.hover.parameters": false,
    "php.inlayHints.parameters.enabled": false,
    "window.systemColorTheme": "auto",
    "editor.inlayHints.enabled": "off",
    "workbench.tree.renderIndentGuides": "always",
    "terminal.integrated.cursorBlinking": true,
    "workbench.editor.tabActionLocation": "left",
    // Disable italics in the editor
    "editor.tokenColorCustomizations": {
      "textMateRules": [
        {
          "scope": [
            "comment",
            "comment.block",
            "comment.block.documentation",
            "comment.line",
            "constant",
            "constant.character",
            "constant.character.escape",
            "constant.numeric",
            "constant.numeric.integer",
            "constant.numeric.float",
            "constant.numeric.hex",
            "constant.numeric.octal",
            "constant.other",
            "constant.regexp",
            "constant.rgb-value",
            "emphasis",
            "entity",
            "entity.name",
            "entity.name.class",
            "entity.name.function",
            "entity.name.method",
            "entity.name.section",
            "entity.name.selector",
            "entity.name.tag",
            "entity.name.type",
            "entity.other",
            "entity.other.attribute-name",
            "entity.other.inherited-class",
            "invalid",
            "invalid.deprecated",
            "invalid.illegal",
            "keyword",
            "keyword.control",
            "keyword.operator",
            "keyword.operator.new",
            "keyword.operator.assignment",
            "keyword.operator.arithmetic",
            "keyword.operator.logical",
            "keyword.other",
            "markup",
            "markup.bold",
            "markup.changed",
            "markup.deleted",
            "markup.heading",
            "markup.inline.raw",
            "markup.inserted",
            "markup.italic",
            "markup.list",
            "markup.list.numbered",
            "markup.list.unnumbered",
            "markup.other",
            "markup.quote",
            "markup.raw",
            "markup.underline",
            "markup.underline.link",
            "meta",
            "meta.block",
            "meta.cast",
            "meta.class",
            "meta.function",
            "meta.function-call",
            "meta.preprocessor",
            "meta.return-type",
            "meta.selector",
            "meta.tag",
            "meta.type.annotation",
            "meta.type",
            "punctuation.definition.string.begin",
            "punctuation.definition.string.end",
            "punctuation.separator",
            "punctuation.separator.continuation",
            "punctuation.terminator",
            "storage",
            "storage.modifier",
            "storage.type",
            "string",
            "string.interpolated",
            "string.other",
            "string.quoted",
            "string.quoted.double",
            "string.quoted.other",
            "string.quoted.single",
            "string.quoted.triple",
            "string.regexp",
            "string.unquoted",
            "strong",
            "support",
            "support.class",
            "support.constant",
            "support.function",
            "support.other",
            "support.type",
            "support.type.property-name",
            "support.variable",
            "variable",
            "variable.language",
            "variable.name",
            "variable.other",
            "variable.other.readwrite",
            "variable.parameter",
            "storage.type.ts",
            "keyword.control.flow.ts"
          ],
          "settings": {
            "fontStyle": ""
          }
        }
      ]
    },
    "workbench.sideBar.location": "right",
    "window.customTitleBarVisibility": "auto",
    "workbench.navigationControl.enabled": false,
    "git.blame.editorDecoration.enabled": true,
    "git.blame.statusBarItem.enabled": true,
    "terminal.integrated.suggest.enableExtensionCompletions": true,
    "editor.experimental.preferTreeSitter": [
      "typescript"
    ],
    "editor.experimental.treeSitterTelemetry": true,
    "catppuccin.italicKeywords": false,
    "autoHide.autoHideSideBar": false,
    "autoHide.autoHideReferences": false,
    "autoHide.autoHideAuxiliaryBar": false,
    "autoHide.panelDelay": 0,
    "workbench.editor.wrapTabs": true,
    "workbench.editor.pinnedTabsOnSeparateRow": true,
    "workbench.editor.tabActionCloseVisibility": false,
    "workbench.tree.enableStickyScroll": false,
    "editor.stickyScroll.enabled": false,
    "chat.commandCenter.enabled": false,
    "workbench.layoutControl.enabled": false,
    "workbench.productIconTheme": "fluent-icons",
    "workbench.colorTheme": "Monokai Pro (Filter Octagon)",
    "editor.folding": false,
  }

@Tyriar
Copy link
Member

Tyriar commented Feb 7, 2025

It appears most of the reports are from Windows 10 x64, I see one on Windows 11 arm (#239838 (comment)), one on raspberry pi arm (#239838 (comment)), one on Linux arm (#239838 (comment)), one on mac arm (#239838 (comment)).

@Tyriar
Copy link
Member

Tyriar commented Feb 7, 2025

I don't have any of the above hardware but will keep trying. Looking at the screenshot I think it's a window freeze caused by an infinite loop. If anyone can reproduce this reliably, these steps would help narrow it down:

  1. Open VS Code
  2. Open developer tools (Help > Toggle Developer Tools)
  3. Open the terminal to cause the issue
  4. Open the sources tab in developer tools and hit the pause button

That should freeze somewhere, giving context of somewhere that keeps looping. A screenshot of the code and the call stack to the right would be useful. Additionally you should be able to play and pause again and get a similar stack somewhere else if it's not obvious from that why it's looping.

@Tyriar
Copy link
Member

Tyriar commented Feb 7, 2025

@widersky I see you have terminal.integrated.suggest.enabled set, does turning that off help?

@Tyriar
Copy link
Member

Tyriar commented Feb 7, 2025

Tried on a Windows x64 10 (19044) VM and doesn't reproduce with no settings, suggest enabled or the settings in #239838 (comment)

@igorfonseca05
Copy link

igorfonseca05 commented Feb 7, 2025

I solved this problem yestarday , using win + R to opening up the windows terminal and typing in the terminal "code --disable-gpu", most likely it's a gpu problem and can be solved in "file > preferences > settings" in the search field type "gpu" and find "Enable GPU Acceleration", turn it off e restart Vscode.

@widersky
Copy link

widersky commented Feb 7, 2025

@Tyriar unfortunately not :(

@igorfonseca05
Copy link

igorfonseca05 commented Feb 7, 2025

@Tyriar unfortunately not :(

I solved this problem yestarday , using win + R to opening up the windows terminal and typing in the terminal "code --disable-gpu", most likely it's a gpu problem and can be solved in "file > preferences > settings" in the search field type "gpu" and find "Enable GPU Acceleration", turn it off e restart Vscode. Tells me if it is helped for you!

Reminder: Make changes after add in the terminal the "code --disable-gpu" and open up the VS Code, other way the program is gonna break up.

@widersky
Copy link

widersky commented Feb 7, 2025

@igorfonseca05 I’ve had this option disabled for months because it was causing stuttering when scrolling through code — without GPU Acceleration on macOS M1 the code scrolls much more smoothly. Changing this option doesn’t help anyway; I just tried it a moment ago.

@zyazevav
Copy link

zyazevav commented Feb 7, 2025

@Tyriar
I have overlapping settings in settings.json with the above:
""workbench.ColorTheme": "Default Dark Modern",
"editor.defaultFormatter": "charliermarsh.ruff",
"github.copilot.advanced": {
"authProvider": "github"
}
Maybe it will help.

@igorfonseca05
Copy link

@igorfonseca05 I’ve had this option disabled for months because it was causing stuttering when scrolling through code — without GPU Acceleration on macOS M1 the code scrolls much more smoothly. Changing this option doesn’t help anyway; I just tried it a moment ago.

I understand, i hope you manage to solve your problem as faster as possible, good luck! 🙂

@wgroh
Copy link

wgroh commented Feb 7, 2025

Have installed Code on a second Raspberry Pi and can reproduce the issue when open a terminal. No settings changed. But starting Code with GPU disabled Code works.

@bpasero bpasero removed their assignment Feb 7, 2025
@chrispstephens
Copy link

chrispstephens commented Feb 7, 2025

It appears most of the reports are from Windows 10 x64, I see one on Windows 11 arm ...

For me, the issue appears on Windows 11 VM running on a Windows 11 arm host with Hyper-V.
It does not appear on Windows 11 arm host. Running code --disable-gpu did not resolve issue in the VM.

@deepak1556
Copy link
Collaborator

While we are working to collect info on reproing the issue, I would also like to collect some runtime traces that could help with debugging this issue, can affected users try the following steps

  1. Close all running instances of the application
  2. Start the application with the following flags code --trace --trace-category-filter="blink,gpu,v8,disabled-by-default-v8.cpu_profiler,disabled-by-default-v8.stack_trace"
  3. Once the freeze happens, click on the Reopen button
  4. Open command palette and run Developer: Stop Tracing

This will generate a trace file, attach it to this issue

@chrispstephens
Copy link

I can confirm turning off "Terminal › Integrated: Gpu Acceleration" resolves issue on my Windows 11 VM arm.

Image

Here is the trace after turning "Terminal › Integrated: Gpu Acceleration" to auto.

code-S6TkWXIH.trace.txt

@widersky
Copy link

widersky commented Feb 7, 2025

@chrispstephens It's working on MacOS ARM too!

@RoshanGunarathna
Copy link

I can confirm turning off "Terminal › Integrated: Gpu Acceleration" resolves issue on my Windows 11 VM arm.

Image

Here is the trace after turning "Terminal › Integrated: Gpu Acceleration" to auto.

code-S6TkWXIH.trace.txt

This worked for me. Thanks! 😊. Ubuntu 18.04.6 LTS - 64-bit

@Tyriar
Copy link
Member

Tyriar commented Feb 7, 2025

Thanks for the trace, it appears the issue is occurring when the texture atlas is warming up, so turning off gpuAcceleration should workaround the problem.

@deepak1556
Copy link
Collaborator

deepak1556 commented Feb 7, 2025

As a follow-up given the issue is happening in the gpu path we would like to see if there is a common denominator in the backend used. Can users run Develope: Show GPU info and in the new window click Download Report to FIle.

@deepak1556 deepak1556 added the gpu Issues concerning GPU related items label Feb 7, 2025
@wgroh
Copy link

wgroh commented Feb 7, 2025

Attached see the GPU report from my Raspberry Pi:

about-gpu-2025-02-07T11-16-41-735Z.txt

@Ratstail91
Copy link

@deepak1556 https://gist.github.com/Ratstail91/eb4ffa06fe67f8e2a474fed75db31f31

I'm running on a Raspberry Pi v5, 8GB model, and the --disable-gpu flag does seem to fix the issue, though a proper fix would be nice.

@wgroh
Copy link

wgroh commented Feb 7, 2025

And also attached another trace report from my Raspberry Pi:

code-G8oiehGA.trace.txt.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues gpu Issues concerning GPU related items important Issue identified as high-priority new release Issues found in a recent release of VS Code terminal General terminal issues that don't fall under another label
Projects
None yet
Development

No branches or pull requests