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

Unable to debug or run terminal - Cannot create process, error code: 5 #133680

Closed
CristianAven opened this issue Sep 23, 2021 · 6 comments
Closed
Assignees
Labels
insiders-released Patch has been released in VS Code Insiders polish Cleanup and polish issue terminal-process Problems launching processes, managing ptys, exiting, process leaks, etc. windows VS Code on Windows issues
Milestone

Comments

@CristianAven
Copy link

CristianAven commented Sep 23, 2021

Hi

I've just installed VS Code in a new machine, but I can't debug with python or run the terminal. This is the data:

Windows: Version 10.0.19042.1202

VS Code: 1.61.0-insider (user setup)
Chrome: 91.0.4472.164
Electron: 13.4.0
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19042

VS Code: 1.60.2 (user setup)
VS Code: 1.53.2 (user setup)
VS Code 1.60.2 (system setup)

I've tried the following:
a) Run VS as Admin: Same error
b) Uninstall and reinstall same version of VS Code and Previous/Insiders versions: Same error
c) Uninstall/Reinstall the extensions: Same error
d) Reboot computer (multiple times..): Same error

Screenshot (Trying to launch the terminal):
image

code --verbose Log:
Code cmd_verbose.txt

Developer Tools --> Console Log:
(https://github.com/microsoft/vscode/files/7219005/Console.vscode-app-1632411445956.log)
[Console vscode-app-1632411445956.log]

Please help!

@meganrogge
Copy link
Contributor

@deepak1556

does this line in the logs mean anything to you?

[11512:0923/123758.201:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled

@meganrogge
Copy link
Contributor

Looks like error code 5 means Access is denied - so a permissions issue with your setup.

@CristianAven
Copy link
Author

Sure, it is an access is denied. But what is denied? There no way to find what file causes the permission is denied. Also, the setup has been done many times and as user/admin and the error is still there.

@CristianAven
Copy link
Author

Finally I've solved it.
There was a deny permission to execute PowerShell. So i've deleted all deny permissions on the file C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe and VS Code started working.

@Tyriar
Copy link
Member

Tyriar commented Oct 21, 2021

@meganrogge let's give a nice error message for this using the switch you just added

@Tyriar Tyriar reopened this Oct 21, 2021
@Tyriar Tyriar added polish Cleanup and polish issue terminal-process Problems launching processes, managing ptys, exiting, process leaks, etc. windows VS Code on Windows issues labels Oct 21, 2021
@Tyriar Tyriar added this to the October 2021 milestone Oct 21, 2021
@Tyriar Tyriar removed their assignment Oct 21, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
insiders-released Patch has been released in VS Code Insiders polish Cleanup and polish issue terminal-process Problems launching processes, managing ptys, exiting, process leaks, etc. windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

5 participants
@roblourens @Tyriar @meganrogge @CristianAven and others