microsoft / vscode

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

power shall is not launching from VS Code #224709

Closed vamsidharpolur closed 1 month ago

vamsidharpolur commented 1 month ago

Type: Bug

i am trying to launch powershell from VS Code and it is throwing an error

C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" terminated with exit code: -1073741819.

please help

VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:49.809Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 3 2300U with Radeon Vega Mobile Gfx (4 x 1996)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|10.94GB (2.42GB free)| |Process Argv|--crash-reporter-id 19128fa6-fdfd-47be-a128-6a610ffa033d| |Screen Reader|no| |VM|0%|
Extensions (12) Extension|Author (truncated)|Version ---|---|--- es7-react-js-snippets|dsz|4.4.3 prettier-vscode|esb|10.4.0 cloudcode|goo|2.15.0 prettify-json|moh|0.0.3 vscode-docker|ms-|1.29.1 vscode-kubernetes-tools|ms-|1.3.16 remote-containers|ms-|0.380.0 remote-ssh|ms-|0.112.0 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.88.2 remote-explorer|ms-|0.4.3 vscode-yaml|red|1.15.0
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 jg8ic977:31013176 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31102340 refactorc:31101458 pythonrstrctxtcf:31103194 ```

image

vs-code-engineering[bot] commented 1 month ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.92.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

meganrogge commented 1 month ago

The error code -1073741819 (0xC0000005) typically indicates an access violation, which means that the program tried to read or write to a memory location that it doesn't have access to. This is often caused by bugs in the code or issues with the environment.

Here are some steps to troubleshoot and resolve this issue:

Check for Updates: Ensure that your PowerShell and Visual Studio Code are up to date.

Run as Administrator: Try running Visual Studio Code as an administrator to see if it resolves any permission issues.

Check Extensions: Disable all extensions and see if the problem persists. If it doesn't, re-enable them one by one to identify the problematic extension.

Reinstall PowerShell: Reinstall PowerShell to ensure that it is not corrupted.

Check Environment Variables: Ensure that your environment variables are correctly set up, especially PATH.

Run in a Different Terminal: Try running your script in a different terminal (e.g., Command Prompt or Git Bash) to see if the issue is specific to PowerShell.

Check for Memory Issues: Ensure that your system has enough memory and that there are no hardware issues.

Review Code: Look for any code that might be causing the access violation. This could be due to improper memory handling or accessing resources that are not available.

vamsichandujvr commented 1 month ago

Hi ,

I tried but it seems power shell from windows is not working properly. i dont know why it is happening. I have been working with VSCode for a long time in my local machine and suddenly it started thought its VSCode issue but it seems its an issue in the power shell itself

i did update the power shell to the latest but didnt work.

Thanks, Vamsi