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

Kernel Crashes with #9741

Closed
1 of 2 tasks
philosofool opened this issue Apr 21, 2022 · 18 comments
Closed
1 of 2 tasks

Kernel Crashes with #9741

philosofool opened this issue Apr 21, 2022 · 18 comments
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@philosofool
Copy link

philosofool commented Apr 21, 2022

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

After running a cell that raised a a Python error while constructing a Keras model, re-running the cell crashes the kernel and has other undesired effects.

After the crash, all cells are surrounded by white (see image below.) This renders all output text invisible. VSCode needs to restar The notebook needs to be closed and reopened to solve the white border issue. An error message below the cell that caused the crash reads:

Error: Canceled future for execute_request message before replies were done
at a.KernelShellFutureHandler.dispose (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/@jupyterlab/services.js:2:32353)
at /home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/@jupyterlab/services.js:2:26572
at Map.forEach (<anonymous>)
at y._clearKernelState (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/@jupyterlab/services.js:2:26557)
at /home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/@jupyterlab/services.js:2:29000
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Somewhat oddly, this also causes my desktop Slack client to move to a blank window. Slack > History > Back twice fixes this.

White border on cells:

Screenshot from 2022-04-19 09-39-37

VS Code Version

Version: 1.66.2 Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977 Date: 2022-04-11T07:49:24.808Z Electron: 17.2.0 Chromium: 98.0.4758.109 Node.js: 16.13.0 V8: 9.8.177.11-electron.0 OS: Linux x64 5.13.0-7614-generic snap

Jupyter Extension Version

v2022.3.1000901801

Jupyter logs

Visual Studio Code (1.66.2, undefined, desktop)
Jupyter Extension Version: 2022.3.1000901801.
Python Extension Version: 2022.4.1.
Workspace folder ~/Repos/neo-mp
Error 10:49:38: Exception while attempting zmq : [Error: /snap/core/current/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/zeromq/prebuilds/linux-x64/electron.napi.glibc.node)
	at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
	at Object.Module._extensions..node (node:internal/modules/cjs/loader:1246:18)
	at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
	at Module.load (node:internal/modules/cjs/loader:1035:32)
	at Module._load (node:internal/modules/cjs/loader:876:12)
	at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
	at Function.i._load (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:32156)
	at Function.E._load (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:28749)
	at Function.g._load (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:99:61429)
	at Module.require (node:internal/modules/cjs/loader:1059:19)
	at h (/snap/code/94/usr/share/code/resources/app/out/vs/loader.js:4:699)
	at load (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/node-gyp-build/index.js:1:605)
	at Object.<anonymous> (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/zeromq/lib/native.js:1:198)
	at Module.u._compile (/snap/code/94/usr/share/code/resources/app/out/vs/loader.js:4:1313)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1216:10)
	at Module.load (node:internal/modules/cjs/loader:1035:32)
	at Module._load (node:internal/modules/cjs/loader:876:12)
	at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
	at Function.i._load (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:32156)
	at Function.E._load (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:28749)
	at Function.g._load (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:99:61429)
	at Module.require (node:internal/modules/cjs/loader:1059:19)
	at h (/snap/code/94/usr/share/code/resources/app/out/vs/loader.js:4:699)
	at Object.<anonymous> (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/zeromq/lib/index.js:1:144)
	at Module.u._compile (/snap/code/94/usr/share/code/resources/app/out/vs/loader.js:4:1313)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1216:10)
	at Module.load (node:internal/modules/cjs/loader:1035:32)
	at Module._load (node:internal/modules/cjs/loader:876:12)
	at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
	at Function.i._load (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:32156)
	at Function.E._load (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:28749)
	at Function.g._load (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:99:61429)
	at Module.require (node:internal/modules/cjs/loader:1059:19)
	at h (/snap/code/94/usr/share/code/resources/app/out/vs/loader.js:4:699)
	at Object.92747 (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:3851668)
	at __webpack_require__ (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4533298)
	at u.zmqSupported (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:535364)
	at u.isSupportedForLocalLaunch (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:535107)
	at u.get isSupported [as isSupported] (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:535017)
	at t.registerTypes (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:545810)
	at /home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4537617
	at /home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4538435
	at /home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4538443
	at e.activate (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4538565)
	at Function._callActivateOptional (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:90:16070)
	at Function._callActivate (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:90:15731)
	at /snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:90:13549
	at processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async g._activate (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:8154)
	at async g._waitForDepsThenActivate (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:8096)
	at async g._initialize (/snap/code/94/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:7460)] {
  code: 'ERR_DLOPEN_FAILED'
}
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 10:49:38: Old kernelspecs (created by Jupyter extension) stored in directory /home/lenhart/.local/share/jupyter/kernels/__old_vscode_kernelspecs
Info 10:49:38: Attempting to start a server because of preload conditions ...
Info 10:49:38: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 10:49:38: Creating controller for jupyter-notebook with interpreter ~/anaconda3/bin/python
Info 10:49:39: Checking for server existence.
Info 10:49:39: Checking for server existence.
Info 10:49:39: Checking for server usability.
Info 10:49:39: Starting notebook server.
Info 10:49:39: Checking for server usability.
Info 10:49:39: Connecting to server
Info 10:49:39: Connecting to process server
Info 10:49:39: Connecting server kernel http://127.0.0.1:8888/
Connecting to Jupyter server at http://127.0.0.1:8888/
Info 10:49:39: Creating server with settings : {"baseUrl":"http://127.0.0.1:8888/","appUrl":"","wsUrl":"ws://127.0.0.1:8888/","token":"d76de070289c91ffd4a75cfbf287e31e24e4bff23d3ce157","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 10:49:39: Connection complete server
Info 10:49:39: Server started.
Info 10:49:39: Creating server with settings : {"baseUrl":"http://127.0.0.1:8888/","appUrl":"","wsUrl":"ws://127.0.0.1:8888/","token":"d76de070289c91ffd4a75cfbf287e31e24e4bff23d3ce157","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 10:49:39: Disposing session manager
Info 10:49:39: SessionManager - dispose contents manager
Info 10:49:39: ShutdownSessionAndConnection - dispose session manager
Info 10:49:39: Finished disposing jupyter session manager
Info 10:49:39: Creating server with settings : {"baseUrl":"http://127.0.0.1:8888/","appUrl":"","wsUrl":"ws://127.0.0.1:8888/","token":"d76de070289c91ffd4a75cfbf287e31e24e4bff23d3ce157","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 10:49:39: Creating server with settings : {"baseUrl":"http://127.0.0.1:8888/","appUrl":"","wsUrl":"ws://127.0.0.1:8888/","token":"d76de070289c91ffd4a75cfbf287e31e24e4bff23d3ce157","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 10:49:39: Setting setActiveController for ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_5.ipynb
Info 10:49:39: Disposing session manager
Info 10:49:39: SessionManager - dispose contents manager
Info 10:49:39: ShutdownSessionAndConnection - dispose session manager
Info 10:49:39: Finished disposing jupyter session manager
Info 10:49:39: Creating server with settings : {"baseUrl":"http://127.0.0.1:8888/","appUrl":"","wsUrl":"ws://127.0.0.1:8888/","token":"d76de070289c91ffd4a75cfbf287e31e24e4bff23d3ce157","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 10:49:39: Disposing session manager
Info 10:49:39: SessionManager - dispose contents manager
Info 10:49:39: ShutdownSessionAndConnection - dispose session manager
Info 10:49:39: Finished disposing jupyter session manager
Info 10:49:39: Disposing session manager
Info 10:49:39: SessionManager - dispose contents manager
Info 10:49:39: ShutdownSessionAndConnection - dispose session manager
Info 10:49:39: Finished disposing jupyter session manager
Info 10:49:39: Find preferred kernel for ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_5.ipynb with metadata {"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"}} & preferred interpreter 
Info 10:49:39: Preferred Remote kernel for ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_5.ipynb is d3d678be-f5c3-4735-9742-4110f5d20593
Info 10:49:39: PreferredConnection: d3d678be-f5c3-4735-9742-4110f5d20593 found for NotebookDocument: ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_5.ipynb
Info 10:49:39: TargetController found ID: d3d678be-f5c3-4735-9742-4110f5d20593 for document ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_5.ipynb
Info 10:49:39: Setting controller affinity for ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_5.ipynb d3d678be-f5c3-4735-9742-4110f5d20593
Info 10:49:39: KernelProvider switched kernel to id = d3d678be-f5c3-4735-9742-4110f5d20593
Info 10:49:39: Process Execution: > ~/anaconda3/bin/python -c "import notebook"
> ~/anaconda3/bin/python -c "import notebook"
Info 10:49:39: Process Execution: > ~/anaconda3/bin/python -m pip list
> ~/anaconda3/bin/python -m pip list
Info 10:49:40: Process Execution: > ~/anaconda3/bin/python -c "import jupyter"
> ~/anaconda3/bin/python -c "import jupyter"
Info 10:49:40: Got activated conda env vars ourselves for ~/anaconda3/bin/python in 1294
Info 10:49:40: Process Execution: > ~/anaconda3/bin/python -m jupyter kernelspec --version
> ~/anaconda3/bin/python -m jupyter kernelspec --version
Info 10:49:40: Starting notebook server.
Info 10:49:40: Connecting to server
Info 10:49:40: Launching server
Info 10:49:40: Starting Notebook
Info 10:49:40: Generating custom default config at /tmp/d8946e8a-1951-441d-90d7-87b2dbebd651/jupyter_notebook_config.py
Info 10:49:40: Starting Jupyter Notebook
Starting Jupyter from ~/anaconda3/bin/python with command line --no-browser --notebook-dir="/home/lenhart/Repos/neo-mp" --KernelManager.autorestart=False --config=/tmp/d8946e8a-1951-441d-90d7-87b2dbebd651/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 10:49:40: Creating daemon pool for ~/anaconda3/bin/python with env variables count 96
Info 10:49:40: Process Execution: > ~/anaconda3/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 664422
> ~/anaconda3/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 664422
Info 10:49:40: Process Execution: > ~/anaconda3/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 664422
> ~/anaconda3/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 664422
Info 10:49:40: Process Execution: > ~/anaconda3/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 664422
> ~/anaconda3/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 664422
Info 10:49:40: Process Execution: > ~/anaconda3/bin/python (daemon) -m jupyter notebook --no-browser --notebook-dir="/home/lenhart/Repos/neo-mp" --KernelManager.autorestart=False --config=/tmp/d8946e8a-1951-441d-90d7-87b2dbebd651/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> ~/anaconda3/bin/python (daemon) -m jupyter notebook --no-browser --notebook-dir="/home/lenhart/Repos/neo-mp" --KernelManager.autorestart=False --config=/tmp/d8946e8a-1951-441d-90d7-87b2dbebd651/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 10:49:40: Waiting for Jupyter Notebook
/home/lenhart/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/lenhart/Repos/neo-mp' instead of '"/home/lenhart/Repos/neo-mp"' – or use CUnicode.
  warn(
Info 10:49:40: /home/lenhart/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/lenhart/Repos/neo-mp' instead of '"/home/lenhart/Repos/neo-mp"' – or use CUnicode.
  warn(

[I 10:49:41.203 NotebookApp] The port 8888 is already in use, trying another port.
Info 10:49:41: /home/lenhart/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/lenhart/Repos/neo-mp' instead of '"/home/lenhart/Repos/neo-mp"' – or use CUnicode.
  warn(
[I 10:49:41.203 NotebookApp] The port 8888 is already in use, trying another port.

[I 10:49:41.203 NotebookApp] The port 8889 is already in use, trying another port.
Info 10:49:41: /home/lenhart/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/lenhart/Repos/neo-mp' instead of '"/home/lenhart/Repos/neo-mp"' – or use CUnicode.
  warn(
[I 10:49:41.203 NotebookApp] The port 8888 is already in use, trying another port.
[I 10:49:41.203 NotebookApp] The port 8889 is already in use, trying another port.

[I 10:49:41.260 NotebookApp] JupyterLab extension loaded from /home/lenhart/anaconda3/lib/python3.8/site-packages/jupyterlab
Info 10:49:41: /home/lenhart/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/lenhart/Repos/neo-mp' instead of '"/home/lenhart/Repos/neo-mp"' – or use CUnicode.
  warn(
[I 10:49:41.203 NotebookApp] The port 8888 is already in use, trying another port.
[I 10:49:41.203 NotebookApp] The port 8889 is already in use, trying another port.
[I 10:49:41.260 NotebookApp] JupyterLab extension loaded from /home/lenhart/anaconda3/lib/python3.8/site-packages/jupyterlab

[I 10:49:41.260 NotebookApp] JupyterLab application directory is /home/lenhart/anaconda3/share/jupyter/lab
Info 10:49:41: /home/lenhart/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/lenhart/Repos/neo-mp' instead of '"/home/lenhart/Repos/neo-mp"' – or use CUnicode.
  warn(
[I 10:49:41.203 NotebookApp] The port 8888 is already in use, trying another port.
[I 10:49:41.203 NotebookApp] The port 8889 is already in use, trying another port.
[I 10:49:41.260 NotebookApp] JupyterLab extension loaded from /home/lenhart/anaconda3/lib/python3.8/site-packages/jupyterlab
[I 10:49:41.260 NotebookApp] JupyterLab application directory is /home/lenhart/anaconda3/share/jupyter/lab

[I 10:49:41.262 NotebookApp] Serving notebooks from local directory: /home/lenhart/Repos/neo-mp
Info 10:49:41: /home/lenhart/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/lenhart/Repos/neo-mp' instead of '"/home/lenhart/Repos/neo-mp"' – or use CUnicode.
  warn(
[I 10:49:41.203 NotebookApp] The port 8888 is already in use, trying another port.
[I 10:49:41.203 NotebookApp] The port 8889 is already in use, trying another port.
[I 10:49:41.260 NotebookApp] JupyterLab extension loaded from /home/lenhart/anaconda3/lib/python3.8/site-packages/jupyterlab
[I 10:49:41.260 NotebookApp] JupyterLab application directory is /home/lenhart/anaconda3/share/jupyter/lab
[I 10:49:41.262 NotebookApp] Serving notebooks from local directory: /home/lenhart/Repos/neo-mp

[I 10:49:41.262 NotebookApp] Jupyter Notebook 6.1.4 is running at:
Info 10:49:41: /home/lenhart/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/lenhart/Repos/neo-mp' instead of '"/home/lenhart/Repos/neo-mp"' – or use CUnicode.
  warn(
[I 10:49:41.203 NotebookApp] The port 8888 is already in use, trying another port.
[I 10:49:41.203 NotebookApp] The port 8889 is already in use, trying another port.
[I 10:49:41.260 NotebookApp] JupyterLab extension loaded from /home/lenhart/anaconda3/lib/python3.8/site-packages/jupyterlab
[I 10:49:41.260 NotebookApp] JupyterLab application directory is /home/lenhart/anaconda3/share/jupyter/lab
[I 10:49:41.262 NotebookApp] Serving notebooks from local directory: /home/lenhart/Repos/neo-mp
[I 10:49:41.262 NotebookApp] Jupyter Notebook 6.1.4 is running at:

[I 10:49:41.262 NotebookApp] http://localhost:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d
Info 10:49:41: /home/lenhart/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/lenhart/Repos/neo-mp' instead of '"/home/lenhart/Repos/neo-mp"' – or use CUnicode.
  warn(
[I 10:49:41.203 NotebookApp] The port 8888 is already in use, trying another port.
[I 10:49:41.203 NotebookApp] The port 8889 is already in use, trying another port.
[I 10:49:41.260 NotebookApp] JupyterLab extension loaded from /home/lenhart/anaconda3/lib/python3.8/site-packages/jupyterlab
[I 10:49:41.260 NotebookApp] JupyterLab application directory is /home/lenhart/anaconda3/share/jupyter/lab
[I 10:49:41.262 NotebookApp] Serving notebooks from local directory: /home/lenhart/Repos/neo-mp
[I 10:49:41.262 NotebookApp] Jupyter Notebook 6.1.4 is running at:
[I 10:49:41.262 NotebookApp] http://localhost:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d

Info 10:49:41: Process Execution: > ~/anaconda3/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/anaconda3/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 10:49:41.262 NotebookApp]  or http://127.0.0.1:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d
Info 10:49:41: /home/lenhart/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/lenhart/Repos/neo-mp' instead of '"/home/lenhart/Repos/neo-mp"' – or use CUnicode.
  warn(
[I 10:49:41.203 NotebookApp] The port 8888 is already in use, trying another port.
[I 10:49:41.203 NotebookApp] The port 8889 is already in use, trying another port.
[I 10:49:41.260 NotebookApp] JupyterLab extension loaded from /home/lenhart/anaconda3/lib/python3.8/site-packages/jupyterlab
[I 10:49:41.260 NotebookApp] JupyterLab application directory is /home/lenhart/anaconda3/share/jupyter/lab
[I 10:49:41.262 NotebookApp] Serving notebooks from local directory: /home/lenhart/Repos/neo-mp
[I 10:49:41.262 NotebookApp] Jupyter Notebook 6.1.4 is running at:
[I 10:49:41.262 NotebookApp] http://localhost:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d
[I 10:49:41.262 NotebookApp]  or http://127.0.0.1:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d

Info 10:49:41: Process Execution: > ~/anaconda3/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/anaconda3/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 10:49:41.262 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Info 10:49:41: /home/lenhart/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/lenhart/Repos/neo-mp' instead of '"/home/lenhart/Repos/neo-mp"' – or use CUnicode.
  warn(
[I 10:49:41.203 NotebookApp] The port 8888 is already in use, trying another port.
[I 10:49:41.203 NotebookApp] The port 8889 is already in use, trying another port.
[I 10:49:41.260 NotebookApp] JupyterLab extension loaded from /home/lenhart/anaconda3/lib/python3.8/site-packages/jupyterlab
[I 10:49:41.260 NotebookApp] JupyterLab application directory is /home/lenhart/anaconda3/share/jupyter/lab
[I 10:49:41.262 NotebookApp] Serving notebooks from local directory: /home/lenhart/Repos/neo-mp
[I 10:49:41.262 NotebookApp] Jupyter Notebook 6.1.4 is running at:
[I 10:49:41.262 NotebookApp] http://localhost:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d
[I 10:49:41.262 NotebookApp]  or http://127.0.0.1:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d
[I 10:49:41.262 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

[C 10:49:41.265 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/lenhart/.local/share/jupyter/runtime/nbserver-664711-open.html
    Or copy and paste one of these URLs:
        http://localhost:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d
     or http://127.0.0.1:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d
Info 10:49:41: /home/lenhart/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/lenhart/Repos/neo-mp' instead of '"/home/lenhart/Repos/neo-mp"' – or use CUnicode.
  warn(
[I 10:49:41.203 NotebookApp] The port 8888 is already in use, trying another port.
[I 10:49:41.203 NotebookApp] The port 8889 is already in use, trying another port.
[I 10:49:41.260 NotebookApp] JupyterLab extension loaded from /home/lenhart/anaconda3/lib/python3.8/site-packages/jupyterlab
[I 10:49:41.260 NotebookApp] JupyterLab application directory is /home/lenhart/anaconda3/share/jupyter/lab
[I 10:49:41.262 NotebookApp] Serving notebooks from local directory: /home/lenhart/Repos/neo-mp
[I 10:49:41.262 NotebookApp] Jupyter Notebook 6.1.4 is running at:
[I 10:49:41.262 NotebookApp] http://localhost:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d
[I 10:49:41.262 NotebookApp]  or http://127.0.0.1:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d
[I 10:49:41.262 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 10:49:41.265 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/lenhart/.local/share/jupyter/runtime/nbserver-664711-open.html
    Or copy and paste one of these URLs:
        http://localhost:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d
     or http://127.0.0.1:8890/?token=2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d

Info 10:49:41: Connecting to process server
Info 10:49:41: Connecting server kernel http://localhost:8890/
Info 10:49:41: Creating server with settings : {"baseUrl":"http://localhost:8890/","appUrl":"","wsUrl":"ws://localhost:8890/","token":"2e90816d22ff3ce4a348b6387ec9bf89d2c4bd84f583851d","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 10:49:41: Connection complete server
Info 10:49:41: Server started.
Info 10:49:41: Process Execution: > ~/anaconda3/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/anaconda3/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 10:49:41: Process Execution: > ~/anaconda3/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/anaconda3/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 10:49:54: Attempting to start a server because of preload conditions ...
Info 10:49:54: Setting setActiveController for ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:49:54: Creating controller for jupyter-notebook with interpreter ~/anaconda3/bin/python
Info 10:49:54: Creating server with settings : {"baseUrl":"http://127.0.0.1:8888/","appUrl":"","wsUrl":"ws://127.0.0.1:8888/","token":"d76de070289c91ffd4a75cfbf287e31e24e4bff23d3ce157","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 10:49:54: Disposing session manager
Info 10:49:54: SessionManager - dispose contents manager
Info 10:49:54: ShutdownSessionAndConnection - dispose session manager
Info 10:49:54: Finished disposing jupyter session manager
Info 10:49:54: Creating server with settings : {"baseUrl":"http://127.0.0.1:8888/","appUrl":"","wsUrl":"ws://127.0.0.1:8888/","token":"d76de070289c91ffd4a75cfbf287e31e24e4bff23d3ce157","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 10:49:54: Disposing session manager
Info 10:49:54: SessionManager - dispose contents manager
Info 10:49:54: ShutdownSessionAndConnection - dispose session manager
Info 10:49:54: Finished disposing jupyter session manager
Info 10:49:54: Find preferred kernel for ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb with metadata {"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.9.10"}} & preferred interpreter 
Info 10:49:54: Preferred Remote kernel for ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb is 93a821e5-28ae-47b6-88bc-08a33c7c26e6
Info 10:49:54: PreferredConnection: 93a821e5-28ae-47b6-88bc-08a33c7c26e6 found for NotebookDocument: ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:49:54: TargetController found ID: 93a821e5-28ae-47b6-88bc-08a33c7c26e6 for document ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:49:54: Setting controller affinity for ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb 93a821e5-28ae-47b6-88bc-08a33c7c26e6
Info 10:49:54: KernelProvider switched kernel to id = 93a821e5-28ae-47b6-88bc-08a33c7c26e6
Info 10:58:28: Execute Cells request 0, 2, 3, 5, 6, 7, 8, 9, 10, 13, 14, 15, 17, 18, 19, 20, 21
Info 10:58:28: Execute Cell 0 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Starting Notebook in kernel.ts id = 93a821e5-28ae-47b6-88bc-08a33c7c26e6 for ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 2 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 3 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 5 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 6 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 7 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 8 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 9 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 10 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 13 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 14 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 15 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 17 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 18 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 19 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 20 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Execute Cell 21 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:58:28: Started session for kernel 93a821e5-28ae-47b6-88bc-08a33c7c26e6
Info 10:58:28: Finished connecting kernel 93a821e5-28ae-47b6-88bc-08a33c7c26e6
http://127.0.0.1:8888/: Creating new notebook 
Info 10:58:28: Creating server with settings : {"baseUrl":"http://127.0.0.1:8888/","appUrl":"","wsUrl":"ws://127.0.0.1:8888/","token":"d76de070289c91ffd4a75cfbf287e31e24e4bff23d3ce157","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 10:58:28: Updating preferred kernel for remote notebook 93a821e5-28ae-47b6-88bc-08a33c7c26e6
Info 10:58:28: Storing Preferred remote kernel for ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb is 93a821e5-28ae-47b6-88bc-08a33c7c26e6
Info 10:58:28: Disposing session manager
Info 10:58:28: SessionManager - dispose contents manager
Info 10:58:28: ShutdownSessionAndConnection - dispose session manager
Info 10:58:28: Finished disposing jupyter session manager
Info 10:58:28: Cell 0 executed with state Success
Info 10:58:33: Cell 2 executed with state Success
Info 10:58:33: Cell 3 executed with state Success
Info 10:58:33: Cell 5 executed with state Success
Info 10:58:33: Cell 6 executed with state Success
Info 10:58:33: Cell 7 executed with state Success
Info 10:58:33: Cell 8 executed with state Success
Info 10:58:33: Cell 9 executed with state Success
Info 10:58:33: Cell 10 executed with state Success
Info 10:58:33: Cell 13 executed with state Success
Info 10:58:34: Cell 14 executed with state Success
Info 10:58:38: Cell 15 executed with state Success
Info 10:58:38: Cell 17 executed with state Success
Info 10:58:38: Cell 18 executed with state Success
Info 10:58:38: Cell 19 executed with state Success
Info 10:58:38: Cell 20 executed with state Success
Info 10:58:38: Cell 21 executed with state Success
Info 10:58:42: Execute Cells request 22
Info 10:58:42: Execute Cell 22 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:59:13: Cancel all remaining cells true || Error || undefined
Info 10:59:13: Cancel pending cells
Info 10:59:13: Cell 22 executed with state Error
Info 10:59:51: Execute Cells request 13
Info 10:59:51: Execute Cell 13 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Info 10:59:52: Cell 13 executed with state Success
Info 10:59:58: Execute Cells request 22
Info 10:59:58: Execute Cell 22 ~/Repos/neo-mp/decision_spaces/task_nodes/task_node_sl_0.ipynb
Warn 11:00:12: Error in waiting for cell to complete [Error: Canceled future for execute_request message before replies were done
	at a.KernelShellFutureHandler.dispose (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/@jupyterlab/services.js:2:32353)
	at /home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/@jupyterlab/services.js:2:26572
	at Map.forEach (<anonymous>)
	at y._clearKernelState (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/@jupyterlab/services.js:2:26557)
	at /home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/@jupyterlab/services.js:2:29000
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (node:internal/process/task_queues:96:5)]
Warn 11:00:12: Cell completed with errors [Error: Canceled future for execute_request message before replies were done
	at a.KernelShellFutureHandler.dispose (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/@jupyterlab/services.js:2:32353)
	at /home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/@jupyterlab/services.js:2:26572
	at Map.forEach (<anonymous>)
	at y._clearKernelState (/home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/@jupyterlab/services.js:2:26557)
	at /home/lenhart/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/@jupyterlab/services.js:2:29000
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (node:internal/process/task_queues:96:5)]
Info 11:00:12: Cancel all remaining cells true || Error || undefined
Info 11:00:12: Cancel pending cells
Info 11:00:12: Cell 22 executed with state Error

Coding Language and Runtime Version

Python 3.9.10

Language Extension Version (if applicable)

v2022.4.1

Anaconda Version (if applicable)

4.11.0

Running Jupyter locally or remotely?

Remote

@philosofool philosofool added bug Issue identified by VS Code Team member as probable bug needs-triage labels Apr 21, 2022
@IanMatthewHuff
Copy link
Member

@philosofool Thanks for filing. The main error looks like it's happening on the Jupyter server side. In general that might not be something that we can help to resolve at all if the server is crashing or cancelling the request. Does this kernel crash repro with just running jupyter notebook from the command line with the same notebook?

The UI issue is odd. Any chance the notebook is something that you can share so that I could look at a repro?

@IanMatthewHuff IanMatthewHuff added the info-needed Issue requires more information from poster label Apr 21, 2022
@IanMatthewHuff
Copy link
Member

One suspicion from talking with the team. Is it possible that you are running out of memory on your system? The symptoms here both with the kernel crash and then the subsequent electron issues (Desktop Slack, UI oddness).

@rchiodo
Copy link
Contributor

rchiodo commented Jun 8, 2022

Closing from lack of response. Please reopen if you can provide the necessary information. Thanks.

@rchiodo rchiodo closed this as completed Jun 8, 2022
@david-waterworth
Copy link

I experienced this error today and can confirm it occurred due to an out of memory condition

@VITEK-THE-BEST
Copy link

I experienced this error today.

@JPBedran
Copy link

JPBedran commented Sep 16, 2022

Just putting this here to help everyone that's going through this with Mac's Silicon (Yes, I know) . Problem is with the new versions of tensorflow-metal, downgrading to 0.3 worked for me.
The newer versions aren't reading the memory, so you would have 0mb of system memory being identified.
Cheers!

@Karlheinzniebuhr
Copy link

Same issue on win10

error 16:49:45.527: Disposing session as kernel process died ExitCode: 3221225477, Reason: Error processing line 1 of c:\ProgramData\Anaconda3\lib\site-packages\distutils-precedence.pth:

  Traceback (most recent call last):
    File "c:\ProgramData\Anaconda3\lib\site.py", line 169, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
  ModuleNotFoundError: No module named '_distutils_hack'

Remainder of file ignored
c:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
  warn(
c:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '85fcb689-be3f-43cc-806c-0302dfc31bf1' instead of 'b"85fcb689-be3f-43cc-806c-0302dfc31bf1"'.
  warn(

error 16:49:45.528: Raw kernel process exited code: 3221225477
error 16:49:45.530: Error in waiting for cell to complete [Error: Canceled future for execute_request message before replies were done
	at t.KernelShellFutureHandler.dispose (c:\Users\Karl\.vscode\extensions\ms-toolsai.jupyter-2022.8.1002431955\out\extension.node.js:2:32353)
	at c:\Users\Karl\.vscode\extensions\ms-toolsai.jupyter-2022.8.1002431955\out\extension.node.js:2:51405
	at Map.forEach (<anonymous>)
	at y._clearKernelState (c:\Users\Karl\.vscode\extensions\ms-toolsai.jupyter-2022.8.1002431955\out\extension.node.js:2:51390)
	at y.dispose (c:\Users\Karl\.vscode\extensions\ms-toolsai.jupyter-2022.8.1002431955\out\extension.node.js:2:44872)
	at c:\Users\Karl\.vscode\extensions\ms-toolsai.jupyter-2022.8.1002431955\out\extension.node.js:2:2358021
	at t.swallowExceptions (c:\Users\Karl\.vscode\extensions\ms-toolsai.jupyter-2022.8.1002431955\out\extension.node.js:7:132986)
	at p.dispose (c:\Users\Karl\.vscode\extensions\ms-toolsai.jupyter-2022.8.1002431955\out\extension.node.js:2:2357999)
	at t.RawSession.dispose (c:\Users\Karl\.vscode\extensions\ms-toolsai.jupyter-2022.8.1002431955\out\extension.node.js:2:2363107)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)]
warn 16:49:45.531: Cell completed with errors {
  message: 'Canceled future for execute_request message before replies were done'
}
info 16:49:45.535: Cancel all remaining cells true || Error || undefined
info 16:49:45.535: Cancel pending cells
info 16:49:45.540: Cell 22 executed with state Error
info 16:49:45.542: Cell 23 executed with state Idle
info 16:49:45.542: Cell 24 executed with state Idle
info 16:49:45.542: Cell 25 executed with state Idle
warn 16:49:45.548: 2022-09-18 16:49:45,537 UTC - WARNING - Unknown command: DISPOSE_INTERRUPT_HANDLE:8:2404

@Astroneko404
Copy link

Astroneko404 commented Sep 23, 2022

Had this error today on my mac (M1 Max with 64GB Memory, Python version 3.9.6) when I played with the MNIST dataset using PyTorch.
The error appeared when mps was used:
device = torch.device("mps")

However, when I switch back to cpu my code worked fine.

@jackransomlovell
Copy link

I'm having this error trying to run a jupyter notebook on a remote server through vs code. I have no problems if I use the terminal in vs code to run the first cell of the notebook, but any time I try to connect a notebook I get similar problems to above.

@IanMatthewHuff
Copy link
Member

@Karlheinzniebuhr @Astroneko404 @jackransomlovell Just noticed that some new comments were coming in here. This particular issue of the Kernel crashing can be manifested from different root causes. So I don't want to re-open this old issue as there is a good chance your issue might not be related to the initial issue filed. If you are running into this now, please open up a new issue with Jupyter logs and repro info in the Jupyter issue page on github and we'll help take a look.

@yezhipeng2417
Copy link

same here

@anhtuan23
Copy link

I was having this error on M1 Mac too. The problem is I was using tensorflow 2.9 with tensorflow-metal 0.6.0.

Downgrading tensorflow-metal to 0.5.0 according to https://developer.apple.com/metal/tensorflow-plugin/ solved it.

@petersenna
Copy link

One suspicion from talking with the team. Is it possible that you are running out of memory on your system? The symptoms here both with the kernel crash and then the subsequent electron issues (Desktop Slack, UI oddness).

@IanMatthewHuff I have been experiencing many crashes per day, some times even many per hour, and in my case the issue is that the system is running out of memory. There is a balloon driver for dynamic RAM... Having had a hint that lack of memory could be the issue would have been very useful for me.

What about informing the user that the problem may be caused elsewhere(not in vscode), and offer the example of the system running out of memory?

@MariosGkMeng
Copy link

I experienced this error today and can confirm it occurred due to an out of memory condition

Ok, and how does one solve the out of memory condition? Sorry if question.is_noob :P

@IanMatthewHuff IanMatthewHuff removed their assignment Feb 6, 2023
@philosofool
Copy link
Author

I experienced this error today and can confirm it occurred due to an out of memory condition

Ok, and how does one solve the out of memory condition? Sorry if question.is_noob :P

Unfortunately, there's no uniform solution to out of memory errors and they are not really about VSCode in most cases. You will need to look at the code path where this error occurs and try to figure out which step causes it. I usually add some print statements to the code path that tell me what just finished as expected so I can see what the last thing is. If you start there and can't figure out a solution, StackOverflow would be the best place to see some help.

@Radu25
Copy link

Radu25 commented Mar 4, 2023

Visual Studio Code (1.76.0, undefined, desktop)
Jupyter Extension Version: 2023.2.1000592019.
Python Extension Version: 2023.4.0.
Workspace folder d:\Anul4\My2\var2numereBun
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
info 17:47:16.057: LSP Notebooks experiment is enabled
info 17:47:16.814: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0430d7ccef8573248313d9408912979d4957eea74b3f4917afd6270072b721043.c:\Users\radu2\anaconda3\envs\tf\python.exe.c:\Users\radu2\anaconda3\envs\tf\python.exe.-m#ipykernel_launcher (Python Path: c:\Users\radu2\anaconda3\envs\tf, EnvType: Conda, EnvName: 'tf', Version: 3.9.16 (main, Jan 11 2023, 16:16:36) [MSC v.1916 64 bit (AMD64)]) for 'd:\Anul4\My2\var2numereBun\main.ipynb' (disableUI=true)
warn 17:47:20.388: No interpreter with path c:\Users\radu2\AppData\Local\Programs\Python\Python310\python.exe found in Python API, will convert Uri path to string as Id file:///c%3A/Users/radu2/AppData/Local/Programs/Python/Python310/python.exe
warn 17:47:20.389: No interpreter with path c:\Users\radu2\AppData\Local\Programs\Python\Python310\python.exe found in Python API, will convert Uri path to string as Id file:///c%3A/Users/radu2/AppData/Local/Programs/Python/Python310/python.exe
warn 17:47:20.391: No interpreter with path c:\Users\radu2\AppData\Local\Programs\Python\Python310\python.exe found in Python API, will convert Uri path to string as Id file:///c%3A/Users/radu2/AppData/Local/Programs/Python/Python310/python.exe
warn 17:47:20.391: No interpreter with path c:\Users\radu2\AppData\Local\Programs\Python\Python310\python.exe found in Python API, will convert Uri path to string as Id file:///c%3A/Users/radu2/AppData/Local/Programs/Python/Python310/python.exe
warn 17:47:20.392: No interpreter with path c:\Users\radu2\AppData\Local\Programs\Python\Python310\python.exe found in Python API, will convert Uri path to string as Id file:///c%3A/Users/radu2/AppData/Local/Programs/Python/Python310/python.exe
warn 17:47:20.392: No interpreter with path c:\Users\radu2\AppData\Local\Programs\Python\Python310\python.exe found in Python API, will convert Uri path to string as Id file:///c%3A/Users/radu2/AppData/Local/Programs/Python/Python310/python.exe
info 17:47:22.999: Process Execution: > ~\anaconda3\envs\tf\python.exe -m pip list

~\anaconda3\envs\tf\python.exe -m pip list
info 17:47:23.019: Process Execution: > ~\anaconda3\envs\tf\python.exe -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"
~\anaconda3\envs\tf\python.exe -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"
info 17:47:23.042: Process Execution: > ~\anaconda3\envs\tf\python.exe ~.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\pythonFiles\vscode_datascience_helpers\kernel_interrupt_daemon.py --ppid 18552
~\anaconda3\envs\tf\python.exe ~.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\pythonFiles\vscode_datascience_helpers\kernel_interrupt_daemon.py --ppid 18552
info 17:47:23.042: Process Execution: cwd: ~.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\pythonFiles\vscode_datascience_helpers
cwd: ~.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\pythonFiles\vscode_datascience_helpers
info 17:47:23.187: Process Execution: > ~\anaconda3\envs\tf\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"a0579ef8-65f0-431d-91a5-4a5a13307178" --shell=9002 --transport="tcp" --iopub=9004 --f=c:\Users\radu2\AppData\Roaming\jupyter\runtime\kernel-v2-18552kPkmKL5a4pOy.json
~\anaconda3\envs\tf\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"a0579ef8-65f0-431d-91a5-4a5a13307178" --shell=9002 --transport="tcp" --iopub=9004 --f=c:\Users\radu2\AppData\Roaming\jupyter\runtime\kernel-v2-18552kPkmKL5a4pOy.json
info 17:47:23.187: Process Execution: cwd: d:\Anul4\My2\var2numereBun
cwd: d:\Anul4\My2\var2numereBun
info 17:47:23.353: ipykernel version & path 6.19.2, ~\anaconda3\envs\tf\lib\site-packages\ipykernel_init_.py for c:\Users\radu2\anaconda3\envs\tf\python.exe
info 17:47:24.655: Started Kernel tf (Python 3.9.16) (pid: 19404)
info 17:47:24.789: Process Execution: > ~\anaconda3\envs\tf\python.exe ~.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\pythonFiles\printJupyterDataDir.py
~\anaconda3\envs\tf\python.exe ~.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\pythonFiles\printJupyterDataDir.py
warn 17:49:25.628: StdErr from Kernel Process 2023-03-04 17:49:25.628113: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the follo
warn 17:49:25.628: StdErr from Kernel Process wing CPU instructions in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.

warn 17:49:25.630: StdErr from Kernel Process 2023-03-04 17:49:25.629906: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread p
warn 17:49:25.630: StdErr from Kernel Process ool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.

info 17:49:32.601: Cancel all remaining cells true || Error || undefined
warn 17:50:15.519: StdErr from Kernel Process OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5 already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.

error 17:50:16.115: Disposing session as kernel process died ExitCode: 3, Reason: c:\Users\radu2\anaconda3\envs\tf\lib\site-packages\traitlets\traitlets.py:2544: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
warn(
c:\Users\radu2\anaconda3\envs\tf\lib\site-packages\traitlets\traitlets.py:2495: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use 'a0579ef8-65f0-431d-91a5-4a5a13307178' instead of 'b"a0579ef8-65f0-431d-91a5-4a5a13307178"'.
warn(
2023-03-04 17:49:25.628113: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-04 17:49:25.629906: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5 already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.

info 17:50:16.115: Dispose Kernel process 19404.
error 17:50:16.115: Raw kernel process exited code: 3
error 17:50:16.117: Error in waiting for cell to complete [Error: Canceled future for execute_request message before replies were done
at t.KernelShellFutureHandler.dispose (c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:33213)
at c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:52265
at Map.forEach ()
at y._clearKernelState (c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:52250)
at y.dispose (c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:45732)
at c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:17:127079
at ee (c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:1552543)
at lh.dispose (c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:17:127055)
at ph.dispose (c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:17:134354)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)]
warn 17:50:16.118: Cell completed with errors {
message: 'Canceled future for execute_request message before replies were done'
}
info 17:50:16.119: Cancel all remaining cells true || Error || undefined
info 17:52:19.336: Restart kernel execution
info 17:52:19.336: Restart requested file:///d%3A/Anul4/My2/var2numereBun/main.ipynb
info 17:52:19.337: Restarting undefined
info 17:52:19.358: Process Execution: > ~\anaconda3\envs\tf\python.exe -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"

~\anaconda3\envs\tf\python.exe -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"
info 17:52:19.423: Process Execution: > ~\anaconda3\envs\tf\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"1ee51216-fa98-4c96-a0dd-2146e451fc06" --shell=9002 --transport="tcp" --iopub=9004 --f=c:\Users\radu2\AppData\Roaming\jupyter\runtime\kernel-v2-18552arh7UG6cldqw.json
~\anaconda3\envs\tf\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"1ee51216-fa98-4c96-a0dd-2146e451fc06" --shell=9002 --transport="tcp" --iopub=9004 --f=c:\Users\radu2\AppData\Roaming\jupyter\runtime\kernel-v2-18552arh7UG6cldqw.json
info 17:52:19.423: Process Execution: cwd: d:\Anul4\My2\var2numereBun
cwd: d:\Anul4\My2\var2numereBun
info 17:52:19.616: ipykernel version & path 6.19.2, ~\anaconda3\envs\tf\lib\site-packages\ipykernel_init_.py for c:\Users\radu2\anaconda3\envs\tf\python.exe
info 17:52:20.493: Got new session 8adec6dc-5a3f-44d2-b020-3f453870adae
info 17:52:20.493: Started new restart session
warn 17:52:44.315: StdErr from Kernel Process 2023-03-04 17:52:44.315353: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.

warn 17:52:44.316: StdErr from Kernel Process 2023-03-04 17:52:44.316814: I tensorflow/core/common_runtime/proce
warn 17:52:44.316: StdErr from Kernel Process ss_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.

info 17:52:52.000: Cancel all remaining cells true || Error || undefined
warn 17:53:19.553: StdErr from Kernel Process OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5 already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.

error 17:53:20.119: Disposing session as kernel process died ExitCode: 3, Reason: c:\Users\radu2\anaconda3\envs\tf\lib\site-packages\traitlets\traitlets.py:2544: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
warn(
c:\Users\radu2\anaconda3\envs\tf\lib\site-packages\traitlets\traitlets.py:2495: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '1ee51216-fa98-4c96-a0dd-2146e451fc06' instead of 'b"1ee51216-fa98-4c96-a0dd-2146e451fc06"'.
warn(
2023-03-04 17:52:44.315353: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-04 17:52:44.316814: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5 already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.

info 17:53:20.119: Dispose Kernel process 2084.
error 17:53:20.119: Raw kernel process exited code: 3
error 17:53:20.121: Error in waiting for cell to complete [Error: Canceled future for execute_request message before replies were done
at t.KernelShellFutureHandler.dispose (c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:33213)
at c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:52265
at Map.forEach ()
at y._clearKernelState (c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:52250)
at y.dispose (c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:45732)
at c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:17:127079
at ee (c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:1552543)
at lh.dispose (c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:17:127055)
at ph.dispose (c:\Users\radu2.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:17:134354)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)]
warn 17:53:20.121: Cell completed with errors {
message: 'Canceled future for execute_request message before replies were done'
}
info 17:53:20.121: Cancel all remaining cells true || Error || undefined
warn 17:55:36.202: No interpreter with path c:\Users\radu2\AppData\Local\Programs\Python\Python310\python.exe found in Python API, will convert Uri path to string as Id file:///c%3A/Users/radu2/AppData/Local/Programs/Python/Python310/python.exe
warn 17:55:36.202: No interpreter with path c:\Users\radu2\AppData\Local\Programs\Python\Python310\python.exe found in Python API, will convert Uri path to string as Id file:///c%3A/Users/radu2/AppData/Local/Programs/Python/Python310/python.exe
warn 17:55:36.203: No interpreter with path c:\Users\radu2\AppData\Local\Programs\Python\Python310\python.exe found in Python API, will convert Uri path to string as Id file:///c%3A/Users/radu2/AppData/Local/Programs/Python/Python310/python.exe
warn 17:55:36.203: No interpreter with path c:\Users\radu2\AppData\Local\Programs\Python\Python310\python.exe found in Python API, will convert Uri path to string as Id file:///c%3A/Users/radu2/AppData/Local/Programs/Python/Python310/python.exe
warn 17:55:36.203: No interpreter with path c:\Users\radu2\AppData\Local\Programs\Python\Python310\python.exe found in Python API, will convert Uri path to string as Id file:///c%3A/Users/radu2/AppData/Local/Programs/Python/Python310/python.exe
warn 17:55:36.203: No interpreter with path c:\Users\radu2\AppData\Local\Programs\Python\Python310\python.exe found in Python API, will convert Uri path to string as Id file:///c%3A/Users/radu2/AppData/Local/Programs/Python/Python310/python.exe

@Radu25
Copy link

Radu25 commented Mar 4, 2023

Celula de cod 4.1.3

save_path = 'test' # Modifica calea cu locul unde doresti sa salvezi fisierul audio
file_name = 'my_audio.wav' # Modifica numele fisierului cu ce doresti sa fie
audio_sample, audio_path = record(1, save_path, file_name)

#Calculez MFCC
mfccs = calc_mfcc_delta(audio_path)
print(mfccs.shape)

Plotare MFCCs

fig = plt.figure()
plt.imshow(mfccs, cmap='inferno', origin='lower')
Audio(filename=audio_path)

Canceled future for execute_request message before replies were done
The Kernel crashed while executing code in the the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click here for more info. View Jupyter log for further details.

NameError Traceback (most recent call last)
Cell In[6], line 3
1 # Celula de cod 4.2.2 - pentru shape (32,50,1)
2 in_tensor = np.float32(mfccs.reshape(1, mfccs.shape[0], mfccs.shape[1], 1))
----> 3 out_tensor = model.predict(in_tensor)
4 val = np.amax(out_tensor)
5 ind = np.where(out_tensor == val)

NameError: name 'model' is not defined

Recording for 1 seconds...
Canceled future for execute_request message before replies were done
The Kernel crashed while executing code in the the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click here for more info. View Jupyter log for further details.

@DonJayamanne
Copy link
Contributor

Please could you file a separate issue,
this has been closed

@microsoft microsoft locked and limited conversation to collaborators Mar 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests