microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.3k stars 1.18k forks source link

Discovering Python Interpreter blocks UI and Kernel on Remote Hosts #23669

Open dokutoshi opened 3 months ago

dokutoshi commented 3 months ago

Type: Bug

  1. Connect to a remote host
  2. Use command palette to select a python interpreter.
  3. Discovering Python Interpreters process starts and does not terminate

Blocks subsequent actions e.g Command Paletter Python Report Issue blocked, Run operation in notebook blocked, etc. Note the cell does not execute while the Discovering Python Interpreter is active. The process does not terminate even monitoring over 40 minutes. Note, the Discovery process terminates on local host, not connected to a remote.

image

VS Code version: Code 1.90.0 (89de5a8d4d6205e5b11647eb6a74844ca23d2573, 2024-06-04T19:34:48.028Z) OS version: Darwin arm64 23.5.0 Modes: Remote OS version: Linux x64 6.5.0-1020-aws

System Info |Item|Value| |---|---| |CPUs|Apple M1 (8 x 2400)| |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
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|2, 2, 2| |Memory (System)|16.00GB (1.58GB free)| |Process Argv|--crash-reporter-id c34a5dda-8d8c-4391-ab65-442321cfa1cb| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: DL_OCR_Leo_Ubuntu_New_Adam| |OS|Linux x64 6.5.0-1020-aws| |CPUs|AMD EPYC 7R32 (32 x 0)| |Memory (System)|124.43GB (99.76GB free)| |VM|0%|
Extensions (18) Extension|Author (truncated)|Version ---|---|--- vsc-python-indent|Kev|1.18.0 jupyter-keymap|ms-|1.1.2 remote-ssh|ms-|0.110.1 remote-ssh-edit|ms-|0.86.0 vscode-remote-extensionpack|ms-|0.25.0 material-icon-theme|PKi|5.3.0 jinja|who|0.0.8 black-formatter|ms-|2024.2.0 debugpy|ms-|2024.6.0 python|ms-|2024.8.0 datawrangler|ms-|1.2.0 jupyter|ms-|2024.5.0 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.18 tensorboard|ms-|2023.10.1002992421 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 intellicode-api-usage-examples|Vis|0.2.8
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 chatpanelt:31048053 dsvsc021:30996838 bdiig495:31013172 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 pythonprt:31056678 dwnewjupyter:31046869 26j00206:31048877 ```
DonJayamanne commented 3 months ago

I'm sorry I missed this issue, @dokutoshi are you still running into this issue? Please can you share the logs from the Python output panel (usie the command Python: Show Output to get to the logs)

dokutoshi commented 3 months ago

@DonJayamanne yes this is related to the following ticket. https://github.com/microsoft/vscode-python/issues/23452 It appears with a large number of files e.g. an image dir with 1 million images, the python interpreter continually runs. which disrupts active running kernels and other UI activities. This issue occurs locally and remotely.