microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.99k stars 29.54k forks source link

Output no longer loading for code cells that generate errors #139545

Closed aparente-nurix closed 2 years ago

aparente-nurix commented 2 years ago

Issue Type: Bug

I just updated VScode insiders and now when I run a cell that generates an error, I just get the red X at the bottom of the cell but no error message or any output appears making it impossible to debug. I can see the output from code cells that run without errors.

Extension version: 1.0.4 VS Code version: Code - Insiders 1.64.0-insider (f67a8b753f55e452f38b61497662839c4691fb12, 2021-12-16T05:15:05.411Z) OS version: Windows_NT x64 10.0.19042 Restricted Mode: No Fetching remote diagnostics for 'ssh-remote+aparente-t7820' timed out. Remote OS version: Linux x64 3.10.0-1062.18.1.el7.x86_64

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1992)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.82GB (5.69GB free)| |Process Argv|--crash-reporter-id 3ab5d30a-e57d-4c95-ad43-4ab531c2c975| |Screen Reader|no| |VM|0%| Fetching remote diagnostics for 'ssh-remote+aparente-t7820' timed out. |Item|Value| |---|---| |Remote|SSH: aparente-t7820| |OS|Linux x64 3.10.0-1062.18.1.el7.x86_64| |CPUs|Intel(R) Xeon(R) Gold 6136 CPU @ 3.00GHz (48 x 1200)| |Memory (System)|125.35GB (16.24GB free)| |VM|0%|
A/B Experiments ``` vsliv695:30137379 vsins829:30139715 vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythontb:30258533 vsc_aa:30263845 pythonvspyt551cf:30291413 pythonptprofiler:30281269 vshan820:30294714 pythondataviewer:30285072 vscod805cf:30301675 pythonvspyt200:30323110 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30404738 vscop804:30404766 vs360cf:30404996 vsclayoutctrt:30405800 py55gd98:30408621 vscexrecpromp3t2:30407759 azactmsalcf:30409288 ```
aparente-nurix commented 2 years ago

Scratch that, it took several minutes to load the output which is definitely odd behavior but it did eventually load (cells that run successfully load instantly).

DonJayamanne commented 2 years ago

Thanks for filling this issue. Please could you provide the finding info (so we can repro this at our end):

Please confirm you area using remote SSH

jaymegordo commented 2 years ago

+1 same issue in the last couple days after updating.

Sometimes errors work, sometimes something goes wrong and then they don't show anymore. Same thing also happens with plots, but can't figure out exactly how to reproduce any of it.

Seems to be an issue with the output mimetypes/renderer?

Screen Shot 2021-12-20 at 10 23 01 AM

then after a minute or so it changes to this:

Screen Shot 2021-12-20 at 10 27 11 AM

with the output message:

Error loading preloads:
Failed to fetch dynamically imported module: https://file+.vscode-resource.vscode-webview.net/Users/jayme/.vscode-insiders/extensions/ms-toolsai.jupyter-2022.1.1001601240/out/datascience-ui/errorRenderer/errorRenderer.js

Version: 1.64.0-insider Commit: 807bf598bea406dcb272a9fced54697986e87768 Date: 2021-12-20T05:26:51.629Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Darwin arm64 21.2.0

jupyter: v2022.1.1001601240 python: v2022.0.1589021501-dev

Things work again briefly after a reload, but the issue comes back pretty quick and frequently.

DonJayamanne commented 2 years ago

Looks like we're having problems in VS Code loading the renderers Also the user is on remote SSH, see the error message in the comments Fetching remote diagnostics for 'ssh-remote+aparente-t7820' timed out.

wcheek commented 2 years ago

Seeing the same issue here. image

Issue Type: Bug

Open a Jupyter Interactive Window. Do something that causes an error:

1 / 0

Output:

Error loading preloads:
Failed to fetch dynamically imported module: https://file+.vscode-resource.vscode-webview.net/c%3A/Users/104104/.vscode-insiders/extensions/ms-toolsai.jupyter-2022.1.1001605991/out/datascience-ui/errorRenderer/errorRenderer.js

Extension version: 1.0.4 VS Code version: Code - Insiders 1.64.0-insider (e8a26d3ebf5095d4324ad4bf794787540ed3b33e, 2021-12-21T05:15:30.501Z) OS version: Windows_NT x64 10.0.19042 Restricted Mode: No

CPUs | Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz (12 x 2712) -- | -- GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled Load (avg) |   Memory (System) | 15.61GB (3.32GB free) Process Argv | --crash-reporter-id cb42f697-ad09-444c-b86d-8cd62a1d3e46 Screen Reader | no VM | 0% Extension | Author (truncated) | Version -- | -- | -- monokai-charcoal-high-contrast | 74t | 3.4.0 better-comments | aar | 2.1.0 Bookmarks | ale | 13.2.2 gitlens | eam | 11.7.0 shell-format | fox | 7.2.2 vsc-python-indent | Kev | 1.14.2 select-highlight-minimap | mde | 0.1.0 git-graph | mhu | 1.30.0 vscode-docker | ms- | 1.18.0 python | ms- | 2022.0.1573923366-dev vscode-pylance | ms- | 2021.12.3-pre.1 jupyter | ms- | 2022.1.1001605991 jupyter-keymap | ms- | 1.0.0 jupyter-renderers | ms- | 1.0.4 remote-containers | ms- | 0.209.6 cpptools | ms- | 1.7.1 autodocstring | njp | 0.5.4 vscode-python-typehint | njq | 1.4.1 vim | vsc | 1.21.10 (1 theme extensions excluded)
matrix303 commented 2 years ago

Yes, seeing the same issue here. I have noticed that to get a detailed output, it is possible to click on the </> and select the built-in version to get the old error output.

I have reproduced this on remote and on local.

Screen Shot 2021-12-22 at 9 20 31 PM Screen Shot 2021-12-22 at 9 21 09 PM Screen Shot 2021-12-22 at 9 21 16 PM

Vscode info: Version: 1.64.0-insider Commit: 7b9e5c32a053669d4e72f998e4fa217090c32f59 Date: 2021-12-22T05:14:43.841Z (21 hrs ago) Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Darwin x64 21.2.0

Jupyter v2022.1.1001605991 Jupyter Notebook Renderers v1.0.4 Python v2021.12.1559732655

avarayr commented 2 years ago

Please see this comment for a temporary solution

rchiodo commented 2 years ago

This should be a dupe of https://github.com/microsoft/vscode/issues/139609