Closed donaldnevermore closed 6 years ago
I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line (NOT the integrated terminal in Code), execute: code --disable-extensions
and try your steps again to see if it reproduces. If you see it is an issue with the extension, please file it against the extension repository itself.
@bpasero I updated vscode to version 1.18 and tried it without extensions, and the bug reproduced. It is NOT an issue with the extensions.
I have the same problem on ubuntu
$ code -v
1.18.0
dcee2202709a4f223185514b9275aa4229841aa7
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.10
DISTRIB_CODENAME=artful
DISTRIB_DESCRIPTION="Ubuntu 17.10"
starting vscode as root works though.
FYI a reboot fixed the problem.
@thomasdarimont It crashed even though I have done nothing, and reboot doesn't help at all on windows10.
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/
@bpasero OK. I tried. The bug also reproduce in insider version. What should I do?
Here is a checklist to find out more about the freeze/slow/crash
code --disable-extensions
from the command line - NOT the integrated terminal of Code)
code --verbose
)<appdata>/User/keybindings.json
and <appdata>/User/settings.json
(backup first! see below for paths)code -n
from the command line)code --disable-gpu
)files.watcherExclude
to "**/**": true
)Application Data Directory for VS Code:
C:\Users\<user>\AppData\Roaming\Code
/Users/<user>/Library/Application Support/Code
/home/<user>/.config/Code
Application Data Directory for VS Code Insiders:
C:\Users\<user>\AppData\Roaming\Code - Insiders
/Users/<user>/Library/Application Support/Code - Insiders
/home/<user>/.config/Code - Insiders
@bpasero I have finished the tests. Here are the results!
True: it reproduces with extensions disabled (code --disable-extensions from the command line - NOT the integrated terminal of Code)
if it does not reproduce with extensions disabled, you can stop testing and report this!
False, it happened in version 1.17 and after:it was not happening in the previous stable release
True: it reproduces in insiders builds (get it from here)
False: there is no suspicious output when running from the command line (code --verbose)
False: there is no suspicious output in the window itself (Help | Toggle Developer Tools | Console)
Unknown: it reproduces on Windows, Linux and Mac
True: it reproduces after deleting
# These are suspicious outputs when running from the command line (code --verbose)
# and in the window itself (Help | Toggle Developer Tools | Console).
# The messy code in the window itself(Help | Toggle Developer Tools | Console) roughly means
# "The command 'XXXXX' appears multiple times in the 'Command' section".
PS C:\Users\luffy> code --verbose
[main 18:58:26] Starting VS Code in verbose mode
[main 18:58:26] from: d:\Program Files (x86)\Microsoft VS Code\resources\app
[main 18:58:26] args: { _: [],
help: false,
h: false,
version: false,
v: false,
wait: false,
w: false,
diff: false,
d: false,
add: false,
a: false,
goto: false,
g: false,
'new-window': false,
n: false,
'unity-launch': false,
'reuse-window': false,
r: false,
performance: false,
p: false,
'prof-startup': false,
verbose: true,
logExtensionHostCommunication: false,
'disable-extensions': false,
disableExtensions: false,
'list-extensions': false,
'show-versions': false,
nolazy: false,
'skip-getting-started': false,
'sticky-quickopen': false,
'disable-telemetry': false,
'disable-updates': false,
'disable-crash-reporter': false }
[main 18:58:26] Unable to read folders in C:\Users\luffy\AppData\Roaming\Code\Workspaces (Error: ENOENT: no such file or
directory, scandir 'C:\Users\luffy\AppData\Roaming\Code\Workspaces').
[main 18:58:32] IPC#vscode-machineId
[main 18:58:34] IPC#vscode-workbenchLoaded
[19092:1110/185835.630:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.sor
tImports鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/app/
out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.652:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.sta
rtREPL鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/app/ou
t/vs/workbench/workbench.main.js (9)
[19092:1110/185835.653:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.bui
ldWorkspaceSymbols鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/reso
urces/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.655:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.run
tests鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/app/out
/vs/workbench/workbench.main.js (9)
[19092:1110/185835.657:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.deb
ugtests鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/app/o
ut/vs/workbench/workbench.main.js (9)
[19092:1110/185835.663:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.exe
cInTerminal鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/a
pp/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.664:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.set
Interpreter鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/a
pp/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.667:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.upd
ateSparkLibrary鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resourc
es/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.669:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.ref
actorExtractVariable鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/re
sources/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.670:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.ref
actorExtractMethod鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/reso
urces/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.671:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.vie
wTestOutput鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/a
pp/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.673:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.sel
ectAndRunTestMethod鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/res
ources/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.676:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.sel
ectAndDebugTestMethod鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/r
esources/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.677:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.sel
ectAndRunTestFile鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resou
rces/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.678:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.run
CurrentTestFile鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resourc
es/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.679:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.run
FailedTests鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/a
pp/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.680:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.exe
cSelectionInTerminal鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/re
sources/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.681:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.exe
cSelectionInDjangoShell鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code
/resources/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.682:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥渏upyter.ru
nSelectionLine鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resource
s/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.683:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥渏upyter.ex
ecCurrentCell鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resources
/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.684:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥渏upyter.ex
ecCurrentCellAndAdvance鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code
/resources/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.686:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥渏upyter.go
tToPreviousCell鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resourc
es/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.697:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥渏upyter.go
tToNextCell鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/a
pp/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.698:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-python.python-0.8.0]: 鍛戒护鈥減ython.goT
oPythonObject鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/resources
/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.701:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-vscode.cpptools-0.14.2]: 鍛戒护鈥渨orkben
ch.action.gotoSymbol鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Code/re
sources/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185835.703:INFO:CONSOLE(9)] "[C:\Users\luffy\.vscode\extensions\ms-vscode.cpptools-0.14.2]: 鍛戒护鈥渨orkben
ch.action.showAllSymbols鈥濆娆″嚭鐜板湪鈥滃懡浠も€濋儴鍒嗐€?, source: file:///D:/Program Files (x86)/Microsoft VS Cod
e/resources/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185836.058:INFO:CONSOLE(9)] "Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",
source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185836.058:INFO:CONSOLE(9)] "Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",
source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185836.060:INFO:CONSOLE(9)] "Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",
source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185836.060:INFO:CONSOLE(9)] "Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",
source: file:///D:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (9)
[19092:1110/185836.595:VERBOSE1:CONSOLE(8479)] "Main._createAppUI: 84.800048828125ms", source: chrome-devtools://devtool
s/bundled/inspector.js (8479)
[19092:1110/185836.686:VERBOSE1:CONSOLE(8484)] "Main._showAppUI: 85.387939453125ms", source: chrome-devtools://devtools/
bundled/inspector.js (8484)
[19092:1110/185837.004:VERBOSE1:CONSOLE(8485)] "Main._initializeTarget: 22.533203125ms", source: chrome-devtools://devto
ols/bundled/inspector.js (8485)
[19092:1110/185841.765:INFO:CONSOLE(9)] "%c[Extension Host] %cvscode-icons is active! %c(at activate (C:\Users\luffy\.vs
code\extensions\robertohuertasm.vscode-icons-7.17.0\out\src\index.js:40:13))", source: file:///D:/Program Files (x86)/Mi
crosoft VS Code/resources/app/out/vs/workbench/workbench.main.js (9)
[main 18:59:25] Lifecycle#window-before-close 1
[main 18:59:25] Lifecycle#unload() 1
[main 18:59:26] Lifecycle#window-before-close 1
[19092:1110/185926.062:INFO:CONSOLE(9)] "%c[Extension Host] %cdeactivating extension %c(at Object.deactivate (C:\Users\l
uffy\.vscode\extensions\ms-vscode.cpptools-0.14.2\out\src\LanguageServer\extension.js:283:13))", source: file:///D:/Prog
ram Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (9)
[main 18:59:26] Lifecycle#window-close 1
[main 18:59:26] Lifecycle#window-all-closed
[main 18:59:26] Lifecycle#before-quit
[main 18:59:26] App#will-quit: disposing resources
It's randomly occur on my ubuntu 16.04. And I always loose the chance to see which process that cause it, as vscode cause the system to unresponsive, so I have to force shutdown.
Does it reproduce if you disable git? Set "git.enabled": false
@bpasero It's a little bit strange. I found my git missing because of its update failure, so I reinstalled git and vscode-insider, and the bug disappeared.
@William-Python-King how about Code stable version?
@bpasero
d:\Git\cmd\git.exe
.c:\Git\cmd\git.exe
and report error so that you have to manually assign git.path to d:\\Git\\cmd\\git.exe
.@William-Python-King ok I think in 1.19 we took the auto detection of Git out but we will add it back it seems.
@joaomoreno moving to you
nice! I'm glad to see that.
I'm happy you could find the source of the problem. Closing this.
he VSCode is completely crashed every time I try to open it, and the CPU, memory and disk usage are extremely high. How to fix it?
(1 theme extensions excluded)
Steps to Reproduce:
1.Open vscode and it crashes in 5 minutes. 2.Then you have to restart the computer.
Reproduces without extensions: Yes