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

Python interpreters/cmds processes are not closed #72769

Closed
schperplata opened this issue Apr 23, 2019 · 3 comments
Closed

Python interpreters/cmds processes are not closed #72769

schperplata opened this issue Apr 23, 2019 · 3 comments
Assignees
Labels
info-needed Issue requires more information from poster terminal General terminal issues that don't fall under another label

Comments

@schperplata
Copy link

Issue Type: Bug
Note: I've already reported this issue to Python extension, but apparently this is not their issue - Python extension does not spawn any processes.

I am running some python script and after a while (for example, a few days of computer usage), I can see tens of leftower python interpretters and console window hosts in task manager. Seems like something does not do the cleanup properly.

All of those Python processes were spawned with this data:

cmd = psutil.Process(3680).cmdline():

0:'W:\\ISYSTEM_APPS\\Python36-64bit\\python.exe'
1:'-c'
2:'from multiprocessing.spawn import spawn_main; spawn_main(parent_pid=12004, pipe_handle=600)'
3:'--multiprocessing-fork'

cmd = psutil.Process(14072).cmdline():
0:'W:\\ISYSTEM_APPS\\Python36-64bit\\python.exe'
1:'-c'
2:'from multiprocessing.spawn import spawn_main; spawn_main(parent_pid=972, pipe_handle=660)'
3:'--multiprocessing-fork'

At the same time, there is approximately the same number of Console windows:

cmd = psutil.Process(14364).cmdline():
['\\??\\C:\\WINDOWS\\...nhost.exe', '0x4']
0:'\\??\\C:\\WINDOWS\\system32\\conhost.exe'
1:'0x4'
__len__:2

cmd = psutil.Process(840).cmdline():
['\\??\\C:\\WINDOWS\\...nhost.exe', '0x4']
0:'\\??\\C:\\WINDOWS\\system32\\conhost.exe'
1:'0x4'

My co-worker does not use VS Code for the same project, and he does not have any remaining python interpretters/cmds after days of work.

image

image

Extension version: 2019.3.6558
VS Code version: Code 1.33.1 (51b0b28, 2019-04-11T08:27:14.102Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (4 x 3193)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.89GB (5.54GB free)
Process Argv
Screen Reader no
VM 0%

VS Code version: Code 1.33.1 (51b0b28, 2019-04-11T08:27:14.102Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz (4 x 2494)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 7.95GB (2.29GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (6)
Extension Author (truncated) Version
bracket-pair-colorizer Coe 1.0.61
arm dan 0.3.0
cortex-debug mar 0.2.3
python ms- 2019.3.6558
cpptools ms- 0.22.1
markdown-all-in-one yzh 2.2.0
@vscodebot vscodebot bot added the terminal General terminal issues that don't fall under another label label Apr 23, 2019
@Tyriar
Copy link
Member

Tyriar commented May 1, 2019

Do you use the terminal? Do you launch these Python processes or are they being launched by some other tool?

0:'W:\ISYSTEM_APPS\Python36-64bit\python.exe'
1:'-c'
2:'from multiprocessing.spawn import spawn_main; spawn_main(parent_pid=12004, pipe_handle=600)'
3:'--multiprocessing-fork'

@Tyriar Tyriar added the info-needed Issue requires more information from poster label May 1, 2019
@schperplata
Copy link
Author

I have no idea what could create this processes, but I am sure they are spawned by VS Code.

I use the terminal from time to time for quick on the fly testing, but I have no configurations/tasks that would use any kind of multiprocessing - at least not that I would explicitly specify (as in this command).

@Tyriar
Copy link
Member

Tyriar commented May 1, 2019

It sounds like one of your other extensions is calling them, VS Code itself and the bundled extensions don't touch Python in any way, only its extensions do. If vscode-python isn't the culprit I'd look into your other extensions or maybe some other program (not vscode) that could launch them.

@Tyriar Tyriar closed this as completed May 1, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster terminal General terminal issues that don't fall under another label
Projects
None yet
Development

No branches or pull requests

2 participants