microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.87k stars 29.52k forks source link

copy buffer too small - memory error #119850

Closed abarel closed 1 year ago

abarel commented 3 years ago

Issue Type: Performance Issue

with activated or desactivated extensions, when i start vs code, a popup appears with the message "copy buffer too small. Memory error"

VS Code version: Code 1.54.3 (2b9aebd5354a3629c3aba0a5f5df49f43d6689f8, 2021-03-15T10:55:45.459Z) OS version: Windows_NT x64 10.0.18363

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz (8 x 2112)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|31.82GB (21.94GB free)| |Process Argv|--crash-reporter-id 2c56a843-8cf1-4daf-b386-e2b3ec77ea45| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 0 95 10832 code main 0 13 2492 crashpad-handler 0 176 7784 window (TestSECOVEA.java - Sans titre(Espace de travail) - Visual Studio Code) 0 104 5244 extensionHost 0 32 10968 electron_node server.js 0 27 12764 "C:\Program Files\Microsoft VS Code\Code.exe" "c:\Program Files\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=5244 0 272 13516 D:\outilsdev\jdk-11.0.2\bin\java -jar c:\Users\A013693\.vscode\extensions\sonarsource.sonarlint-vscode-1.21.0\server\sonarlint-ls.jar 54453 file:///c:/Users/A013693/.vscode/extensions/sonarsource.sonarlint-vscode-1.21.0/analyzers/sonarjava.jar file:///c:/Users/A013693/.vscode/extensions/sonarsource.sonarlint-vscode-1.21.0/analyzers/sonarjs.jar file:///c:/Users/A013693/.vscode/extensions/sonarsource.sonarlint-vscode-1.21.0/analyzers/sonarphp.jar file:///c:/Users/A013693/.vscode/extensions/sonarsource.sonarlint-vscode-1.21.0/analyzers/sonarpython.jar file:///c:/Users/A013693/.vscode/extensions/sonarsource.sonarlint-vscode-1.21.0/analyzers/sonarhtml.jar 0 11 13672 console-window-host (Windows internal process) 0 258 16400 D:\outilsdev\jdk-11.0.2\bin\java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dfile.encoding=utf8 -DwatchParentProcess=false -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -noverify -jar c:\Users\A013693\.vscode\extensions\redhat.java-0.76.0\server\plugins\org.eclipse.equinox.launcher_1.6.100.v20201223-0822.jar -configuration c:\Users\A013693\AppData\Roaming\Code\User\globalStorage\redhat.java\0.76.0\config_win -data c:\Users\A013693\AppData\Roaming\Code\User\workspaceStorage\5a5c753eb1b7edaf1a668df6204a7f78\redhat.java\jdt_ws 0 11 1304 console-window-host (Windows internal process) 0 32 13884 searchService 0 12 16524 watcherService 0 11 1996 console-window-host (Windows internal process) 0 27 8464 utility 0 51 14808 window (Rapporteur du problème) 0 74 16120 shared-process 0 31 1660 ptyHost 0 6 6444 console-window-host (Windows internal process) 0 68 11320 C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe 0 153 17296 gpu-process ```
Workspace Info ``` | Window (TestSECOVEA.java - Sans titre(Espace de travail) - Visual Studio Code) | Folder (mavenvscode): 41 files | File types: prefs(4) class(4) java(3) json(2) classpath(1) | editorconfig(1) factorypath(1) gitattributes(1) | gitignore(1) project(1) | Conf files: launch.json(1) settings.json(1) | Launch Configs: java(2); ```
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvsdeb440:30248342 pythonvsded773:30248341 pythonvspyt875:30259475 pythontbcf:30265426 vspre833cf:30267465 vshan820:30276952 ```

Capture

deepak1556 commented 1 year ago

Please check if the issue is present with latest stable 1.73

vscodenpa commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!