Skip to content

python debug "timed out waiting for launcher to connect" #98757

@jmagosta

Description

@jmagosta

Issue Type: Performance Issue

Any time running with a moderately loaded set of applicatations, especially when running virtual meeting sessions (e.g. Teams), it's not possible to run python debug sessions. The session times out waiting for the python process to start up. This occurs consistently, after all extensions have loaded.

The configuration is nothing special -- default launcher.json -- running one python file in the integrated terminal, Python 3.7.3, anaconda install. The process Explorer shows moderate loads - memory and cpu are around 60 %.

Running MSFT enterprise current Windows 10 on a 16G Dell laptop.

VS Code version: Code 1.45.1 (5763d90, 2020-05-14T08:27:35.169Z)
OS version: Windows_NT x64 10.0.18363

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7Y75 CPU @ 1.30GHz (4 x 1608)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.88GB (2.69GB free)
Process Argv
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    3	    87	 19912	code main
    0	    72	  7140	   window (Issue Reporter)
    0	    11	  7368	   electron-crash-reporter
    1	   443	 10488	   gpu-process
    0	   206	 12128	   window (anomaly_by_hist.py - wk400 - Visual Studio Code)
    0	     5	  6140	     console-window-host (Windows internal process)
    0	    12	 10976	     watcherService 
    0	     5	 12308	       console-window-host (Windows internal process)
    0	     5	 14372	     console-window-host (Windows internal process)
    0	     5	 16612	     console-window-host (Windows internal process)
    0	    39	 16788	     C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe
    0	    47	 20472	     C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe
    0	     5	 20876	     C:\windows\System32\wsl.exe
    0	     4	 18580	       C:\windows\System32\lxss\wslhost.exe {89ef3b79-5f96-4cc4-b9e4-ba797ac12c72} 476 484 488
    0	     6	 20312	         console-window-host (Windows internal process)
    0	    90	 22252	     extensionHost
    **0	   910	 13664	       c:\Users\joagosta\.vscode\extensions\ms-python.python-2020.5.80290\languageServer.0.5.45\Microsoft.Python.LanguageServer.exe**
    0	     5	 16016	         console-window-host (Windows internal process)
    0	    10	 16020	       C:\ProgramData\Anaconda3\python.exe c:\Users\joagosta\.vscode\extensions\ms-python.python-2020.5.80290\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
    0	     5	 17908	         console-window-host (Windows internal process)
    0	     6	 17592	       C:\ProgramData\Anaconda3\python.exe c:\Users\joagosta\.vscode\extensions\ms-python.python-2020.5.80290\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
    0	     9	 10288	         C:\ProgramData\Anaconda3\python.exe c:\Users\joagosta\.vscode\extensions\ms-python.python-2020.5.80290\pythonFiles\vscode_datascience_helpers\..\pyvsc-run-isolated.py c:\Users\joagosta\.vscode\extensions\ms-python.python-2020.5.80290\pythonFiles\vscode_datascience_helpers\kernel_prewarm_starter.py
    0	     5	 21132	         console-window-host (Windows internal process)
    0	    10	 19068	       C:\ProgramData\Anaconda3\python.exe c:\Users\joagosta\.vscode\extensions\ms-python.python-2020.5.80290\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
    0	     5	 10184	         console-window-host (Windows internal process)
    0	    38	 20608	       "C:\Program Files\Microsoft VS Code\Code.exe" "c:\Program Files\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain" --node-ipc --clientProcessId=22252
    0	    23	 22468	       C:\ProgramData\Anaconda3\python.exe c:\Users\joagosta\.vscode\extensions\ms-python.python-2020.5.80290\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
    0	    10	  3480	         C:\ProgramData\Anaconda3\python.exe -m ipykernel_launcher -f C:\Users\joagosta\AppData\Roaming\jupyter\runtime\kernel-db12ab63-3980-4018-8542-eb803c2e22e6.json
    0	     5	 14240	         console-window-host (Windows internal process)
    0	    23	 12460	   utility
    2	    65	 19504	   window (Process Explorer)
    1	    66	 22320	   shared-process
Workspace Info
|  Window (anomaly_by_hist.py - wk400 - Visual Studio Code)
|    Folder (wk400): 10 files
|      File types: html(2) ipynb(2) json(2) py(1) md(1) PNG(1)
|      Conf files: launch.json(1) settings.json(1)
|      Launch Configs: python;
Extensions (16)
Extension Author (truncated) Version
latex-workshop Jam 8.9.0
rainbow-csv mec 1.7.0
csharp ms- 1.21.18
mssql ms- 1.9.0
python ms- 2020.5.80290
remote-wsl ms- 0.44.2
vscode-data-preview Ran 2.0.0
java red 0.62.0
kuskus-kusto-syntax-highlighting ros 1.1.8
vscodeintellicode Vis 1.2.7
vscode-java-debug vsc 0.26.0
vscode-java-dependency vsc 0.10.1
vscode-java-pack vsc 0.9.1
vscode-java-test vsc 0.22.4
vscode-maven vsc 0.21.4
vim vsc 1.14.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    *caused-by-extensionIssue identified to be caused by an extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions