Repository navigation
Python Uncaught Error 2024.2.1 #23554
Copy link
Copy link
Closed as not planned
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Type: Bug
Profile extension states 1 uncaught errors
Extension version: 2024.2.1
VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:52:57.054Z)
OS version: Darwin arm64 23.3.0
Modes:
Connection to 'ssh-remote+7b22686f73744e616d65223a22444c5f4f43525f4c656f5f50335f5562756e74755f4e65775f4d61696e227d' could not be established
Remote OS version: Linux x64 4.14.301-224.520.amzn2.x86_64
System Info
| Item | Value |
|---|---|
| CPUs | Apple M1 (8 x 24) |
| 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 video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled |
| Load (avg) | 2, 2, 2 |
| Memory (System) | 16.00GB (1.01GB free) |
| Process Argv | --crash-reporter-id c34a5dda-8d8c-4391-ab65-442321cfa1cb |
| Screen Reader | no |
| VM | 0% |
Connection to 'ssh-remote+7b22686f73744e616d65223a22444c5f4f43525f4c656f5f50335f5562756e74755f4e65775f4d61696e227d' could not be established
| Item | Value |
|---|---|
| Remote | SSH: DL_OCR_Leo_P3_Main_Adam |
| OS | Linux x64 4.14.301-224.520.amzn2.x86_64 |
| CPUs | Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz (8 x 2700) |
| Memory (System) | 59.96GB (42.49GB free) |
| VM | 0% |
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
pythoncet0:30885854
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelt:31048053
dsvsc021:30996838
bdiig495:31013172
a69g1124:31058053
dvdeprecation:31061160
pythonprt:31056678
dwnewjupyter:31046869
26j00206:31048877
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Activity
karthiknadig commentedon Jun 12, 2024
Leo Pimentel (@dokutoshi) Can you share the error stack if this occurs again? either from logs or you should be able to see it from the developer console (Help > toggle Developer tools)
dokutoshi commentedon Jun 13, 2024
Gladly...
Here is the Window output - somehow related to Discovering Python Interpreters that scans both the remote Mac and Linux servers.
Once the user selects an interpreter either from the notebook or Command Palette: Select Interpreter, the Discovering Python Interpreters commences and never ceases. It can run for hours, literally. Karthik Nadig (@karthiknadig)
Remote SSH tends to drop the service juxtaposed Remote Tunnels.
karthiknadig commentedon Jun 13, 2024
In the python logs with log level set to trace enabled so you see anything particular it blocks on?
Another thing to try, if you haven't already is to run this command "Python: Clear Cache and reload". That should remove any paths that the extension is holding on to, and hopefully unblocks whatever is causing discovery to wait forever.
FYI: We are actually working on replacing the entire discovery stack using https://github.com/microsoft/python-environment-tools which runs significantly faster and should resolve this issue.
github-actions commentedon Jul 16, 2024
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.
Happy Coding!
dokutoshi commentedon Jul 16, 2024
Clearing the cache with each reload is standard practice.
One important test scenario:
Karthik Nadig (@karthiknadig) Don Jayamanne (@DonJayamanne)
I extended the workspace using "Add Folder to Workspace" to include a functional folder for TensorFlow.
For clarification:
The first folder contains Python source files and a notebook (a static folder).
The second folder (the TensorFlow folder) contains logs and metadata files generated by TensorFlow during training, typically per epoch, to save model weights and biases (a dynamic folder). PyTorch has a similar on-training file creation.
Post-observations after including a dynamic folder show that the growth in file count (less than 10 files) during an active kernel leads to a kernel halt. This is different, in my opinion, from including a large data directory with millions of images. In the dynamic folder case, behavior suggests that files added/created in an active workspace trigger the Python discovery process, interrupting an active kernel.
Best,
Leo