Skip to content

Terminal Process Terminating on folder switch / on its own #24879

Closed
@bergjones

Description

@bergjones

Type: Bug

Behaviour

Upon switching project folders with "Open Recent" receive a similar message to

The terminal process "C:\Program Files\PowerShell\7\pwsh.exe" terminated with exit code -1073741510.

upon switching folders, even with terminal unopened. If I change the default terminal to command prompt, or git bash, receive the same message but with the address for that specific terminal. The rest of my computer is fine, and it only happens with the Python extension enabled. I did a clean uninstall / reinstall VS Code and the issue persists.

Steps to reproduce:

  1. Enable the addon
    2.Open a project with or without having the terminal open.
  2. Switch to another project.
  3. The message similar to
    The terminal process "C:\Program Files\PowerShell\7\pwsh.exe" terminated with exit code -1073741510.

pops up even without having the terminal open.

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Behaviour

XXX

Steps to reproduce:

  1. XXX

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Extension version: 2025.2.0
VS Code version: Code 1.98.0 (6609ac3d66f4eade5cf376d1cb76f13985724bcb, 2025-03-04T21:06:18.612Z)
OS version: Windows_NT x64 10.0.26100
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.13.1
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

Installed Extensions
Extension Name Extension Id Version
debugpy ms- 2025.4.0
js-debug ms- 1.97.1
js-debug-companion ms- 1.1.3
python ms- 2025.2.0
vscode-js-profile-table ms- 1.0.10
vscode-pylance ms- 2025.3.1
System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i9-12900K (24 x 3187)
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
webnn: disabled_off
Load (avg) undefined
Memory (System) 127.82GB (114.56GB free)
Process Argv --crash-reporter-id 7c9478a3-4795-4d48-8856-4fc79617c07c
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
968h8231:31253945
jda6j935:31233686

Metadata

Metadata

Assignees

Labels

area-terminalbugIssue identified by VS Code Team member as probable bugneeds spikeLabel for issues that need investigation before they can be worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions