microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.01k stars 797 forks source link

Running `jupyter notebook` from the Bash command prompt freezes my PC for about 60 seconds twice #10869

Open maxloosmu opened 7 months ago

maxloosmu commented 7 months ago

Windows Version

Microsoft Windows [Version 10.0.22631.2715]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.133.1-1

Distro Version

Ubuntu 22.04.3 LTS

Other Software

Repro Steps

Run test.bash file in my Bash prompt:

#!/bin/bash
source /home/maxloo/anaconda3/bin/activate
conda create -n jupyter_env python=3.10.12
conda activate jupyter_env
pip install jupyter
pip install tensorflow[and-cuda]
chmod 0700 /run/user/1000/
source ~/.bashrc

This is my .bashrc file:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/maxloo/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/maxloo/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/home/maxloo/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/home/maxloo/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<
export PATH=/usr/local/cuda-12.3/bin${PATH:+:${PATH}}
if [ -z "${LD_LIBRARY_PATH}" ]; then
    export LD_LIBRARY_PATH=/usr/local/cuda-12.3/lib64
else
    export LD_LIBRARY_PATH=/usr/local/cuda-12.3/lib64:$LD_LIBRARY_PATH
fi

Run jupyter notebook.

Expected Behavior

I expect the commands to run without freezing my PC.

Actual Behavior

(base) maxloo@maxloolen:~/src$ jupyter notebook

  _   _          _      _
 | | | |_ __  __| |__ _| |_ ___
 | |_| | '_ \/ _` / _` |  _/ -_)
  \___/| .__/\__,_\__,_|\__\___|
       |_|

Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.

https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html

Please note that updating to Notebook 7 might break some of your extensions.

[W 18:43:58.772 NotebookApp] Loading JupyterLab as a classic notebook (v6) extension.
[I 2023-12-03 18:43:58.774 LabApp] JupyterLab extension loaded from /home/maxloo/anaconda3/lib/python3.11/site-packages/jupyterlab
[I 2023-12-03 18:43:58.774 LabApp] JupyterLab application directory is /home/maxloo/anaconda3/share/jupyter/lab
[I 18:43:59.617 NotebookApp] Serving notebooks from local directory: /home/maxloo/src
[I 18:43:59.617 NotebookApp] Jupyter Notebook 6.5.4 is running at:
[I 18:43:59.617 NotebookApp] http://localhost:8888/?token=82daf94b0c4d2ddb499b25363f67000303745643828af953
[I 18:43:59.617 NotebookApp]  or http://127.0.0.1:8888/?token=82daf94b0c4d2ddb499b25363f67000303745643828af953
[I 18:43:59.617 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 18:44:00.725 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///home/maxloo/.local/share/jupyter/runtime/nbserver-443-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=82daf94b0c4d2ddb499b25363f67000303745643828af953
     or http://127.0.0.1:8888/?token=82daf94b0c4d2ddb499b25363f67000303745643828af953
D3D12: Removing Device.
Segmentation fault
^C[I 18:46:17.607 NotebookApp] interrupted
Serving notebooks from local directory: /home/maxloo/src
0 active kernels
Jupyter Notebook 6.5.4 is running at:
http://localhost:8888/?token=82daf94b0c4d2ddb499b25363f67000303745643828af953
 or http://127.0.0.1:8888/?token=82daf94b0c4d2ddb499b25363f67000303745643828af953
Shutdown this notebook server (y/[n])? y
[C 18:46:19.297 NotebookApp] Shutdown confirmed
[I 18:46:19.298 NotebookApp] Shutting down 0 kernels
[I 18:46:19.298 NotebookApp] Shutting down 0 terminals

After running the command jupyter notebook, the PC first freezes or hangs for about 60 seconds at or http://127.0.0.1:8888/?token=5876094fc4c46acae1fa646ad71b32d84e941db7b44c2bf5.

Then, D3D12: Removing Device. is displayed, and then the PC next freezes for another about 60 seconds.

Then, Segmentation fault is displayed. Then, everything unfreezes and works again.

Diagnostic Logs

This is the text of the logs of earlier and similar errors which I copied from the error events in Windows Events Viewer:

This is the zip file for the error logs:

maxloosmu commented 7 months ago

i also just tried jupyter notebook --debug, which shows that there were no problems running jupyter until the D3D12: Removing Device. and Segmentation fault errors.

(jupyter_env) maxloo@maxloolen:~/src$ jupyter notebook --debug
[D 2023-12-04 23:04:01.395 ServerApp] Searching ['/home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter', '/home/maxloo/.jupyter', '/home/maxloo/.local/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 2023-12-04 23:04:01.396 ServerApp] Looking for jupyter_config in /etc/jupyter
[D 2023-12-04 23:04:01.396 ServerApp] Looking for jupyter_config in /usr/local/etc/jupyter
[D 2023-12-04 23:04:01.396 ServerApp] Looking for jupyter_config in /home/maxloo/.local/etc/jupyter
[D 2023-12-04 23:04:01.396 ServerApp] Looking for jupyter_config in /home/maxloo/.jupyter
[D 2023-12-04 23:04:01.396 ServerApp] Looking for jupyter_config in /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter
[D 2023-12-04 23:04:01.396 ServerApp] Looking for jupyter_server_config in /etc/jupyter
[D 2023-12-04 23:04:01.396 ServerApp] Looking for jupyter_server_config in /usr/local/etc/jupyter
[D 2023-12-04 23:04:01.396 ServerApp] Looking for jupyter_server_config in /home/maxloo/.local/etc/jupyter
[D 2023-12-04 23:04:01.396 ServerApp] Looking for jupyter_server_config in /home/maxloo/.jupyter
[D 2023-12-04 23:04:01.396 ServerApp] Looking for jupyter_server_config in /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter
[D 2023-12-04 23:04:01.398 ServerApp] Paths used for configuration of jupyter_server_config:
        /etc/jupyter/jupyter_server_config.json
[D 2023-12-04 23:04:01.399 ServerApp] Paths used for configuration of jupyter_server_config:
        /usr/local/etc/jupyter/jupyter_server_config.json
[D 2023-12-04 23:04:01.399 ServerApp] Paths used for configuration of jupyter_server_config:
        /home/maxloo/.local/etc/jupyter/jupyter_server_config.json
[D 2023-12-04 23:04:01.399 ServerApp] Paths used for configuration of jupyter_server_config:
        /home/maxloo/.jupyter/jupyter_server_config.json
[D 2023-12-04 23:04:01.399 ServerApp] Paths used for configuration of jupyter_server_config:
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_server_config.d/jupyterlab.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_server_config.d/notebook.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_server_config.d/notebook_shim.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_server_config.json
[I 2023-12-04 23:04:01.403 ServerApp] Package notebook took 0.0000s to import
[I 2023-12-04 23:04:01.413 ServerApp] Package jupyter_lsp took 0.0101s to import
[W 2023-12-04 23:04:01.413 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-12-04 23:04:01.418 ServerApp] Package jupyter_server_terminals took 0.0051s to import
[I 2023-12-04 23:04:01.419 ServerApp] Package jupyterlab took 0.0000s to import
[I 2023-12-04 23:04:01.470 ServerApp] Package notebook_shim took 0.0000s to import
[W 2023-12-04 23:04:01.470 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-12-04 23:04:01.471 ServerApp] jupyter_lsp | extension was successfully linked.
[D 2023-12-04 23:04:01.473 TerminalsExtensionApp] Config changed: {'ServerApp': {'log_level': 'DEBUG', 'jpserver_extensions': <LazyConfigValue {'update': {'jupyter_lsp': True, 'jupyter_server_terminals': True, 'jupyterlab': True, 'notebook_shim': True}}>}, 'ExtensionApp': {'log_level': 'DEBUG'}}
[D 2023-12-04 23:04:01.473 ServerApp] Config changed: {'ServerApp': {'log_level': 'DEBUG', 'jpserver_extensions': <LazyConfigValue value={'notebook': True, 'jupyter_lsp': True, 'jupyter_server_terminals': True, 'jupyterlab': True, 'notebook_shim': True}>}, 'ExtensionApp': {'log_level': 'DEBUG'}}
[I 2023-12-04 23:04:01.474 ServerApp] jupyter_server_terminals | extension was successfully linked.
[D 2023-12-04 23:04:01.476 LabApp] Config changed: {'NotebookApp': {}, 'ServerApp': {'log_level': 'DEBUG', 'jpserver_extensions': <LazyConfigValue value={'notebook': True, 'jupyter_lsp': True, 'jupyter_server_terminals': True, 'jupyterlab': True, 'notebook_shim': True}>}, 'ExtensionApp': {'log_level': 'DEBUG'}}
[I 2023-12-04 23:04:01.476 ServerApp] jupyterlab | extension was successfully linked.
[D 2023-12-04 23:04:01.478 JupyterNotebookApp] Config changed: {'NotebookApp': {}, 'ServerApp': {'log_level': 'DEBUG', 'jpserver_extensions': <LazyConfigValue value={'notebook': True, 'jupyter_lsp': True, 'jupyter_server_terminals': True, 'jupyterlab': True, 'notebook_shim': True}>}, 'ExtensionApp': {'log_level': 'DEBUG'}}
[I 2023-12-04 23:04:01.479 ServerApp] notebook | extension was successfully linked.
[I 2023-12-04 23:04:01.479 ServerApp] Writing Jupyter server cookie secret to /home/maxloo/.local/share/jupyter/runtime/jupyter_cookie_secret
[D 2023-12-04 23:04:01.645 ServerApp] Paths used for configuration of jupyter_notebook_config:
        /home/maxloo/.jupyter/jupyter_notebook_config.json
[D 2023-12-04 23:04:01.645 ServerApp] Paths used for configuration of jupyter_notebook_config:
        /etc/jupyter/jupyter_notebook_config.json
[D 2023-12-04 23:04:01.645 ServerApp] Paths used for configuration of jupyter_notebook_config:
        /usr/local/etc/jupyter/jupyter_notebook_config.json
[D 2023-12-04 23:04:01.646 ServerApp] Paths used for configuration of jupyter_notebook_config:
        /home/maxloo/.local/etc/jupyter/jupyter_notebook_config.json
[D 2023-12-04 23:04:01.646 ServerApp] Paths used for configuration of jupyter_notebook_config:
        /home/maxloo/.jupyter/jupyter_notebook_config.json
[D 2023-12-04 23:04:01.646 ServerApp] Paths used for configuration of jupyter_notebook_config:
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_notebook_config.d/jupyter-lsp-notebook.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_notebook_config.json
[I 2023-12-04 23:04:01.646 ServerApp] notebook_shim | extension was successfully linked.
[D 2023-12-04 23:04:01.647 ServerApp] Config changed: {'ExtensionApp': {'log_level': 'DEBUG'}, 'NotebookApp': {}, 'ServerApp': {'log_level': 'DEBUG', 'jpserver_extensions': <LazyConfigValue value={'notebook': True, 'jupyter_lsp': True, 'jupyter_server_terminals': True, 'jupyterlab': True, 'notebook_shim': True}>}}
[D 2023-12-04 23:04:01.647 ServerApp] Raising open file limit: soft 1024->4096; hard 1048576->1048576
[I 2023-12-04 23:04:01.657 ServerApp] notebook_shim | extension was successfully loaded.
[D 2023-12-04 23:04:01.658 ServerApp] [lsp] rootUri will be file:///home/maxloo/src
[D 2023-12-04 23:04:01.658 ServerApp] [lsp] virtualDocumentsUri will be file:///home/maxloo/src/.virtual_documents
[I 2023-12-04 23:04:01.658 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2023-12-04 23:04:01.659 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2023-12-04 23:04:01.661 LabApp] JupyterLab extension loaded from /home/maxloo/anaconda3/envs/jupyter_env/lib/python3.10/site-packages/jupyterlab
[I 2023-12-04 23:04:01.661 LabApp] JupyterLab application directory is /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab
[I 2023-12-04 23:04:01.661 LabApp] Extension Manager is 'pypi'.
[D 2023-12-04 23:04:01.662 LabApp] Extensions list will be fetched from https://pypi.org/pypi.
[I 2023-12-04 23:04:01.663 ServerApp] jupyterlab | extension was successfully loaded.
[I 2023-12-04 23:04:01.664 ServerApp] notebook | extension was successfully loaded.
[I 2023-12-04 23:04:01.664 ServerApp] Serving notebooks from local directory: /home/maxloo/src
[I 2023-12-04 23:04:01.664 ServerApp] Jupyter Server 2.11.1 is running at:
[I 2023-12-04 23:04:01.664 ServerApp] http://localhost:8888/tree?token=95eb6ae64dc1bf25b4ca120688e91b707902aaad351cf66f
[I 2023-12-04 23:04:01.664 ServerApp]     http://127.0.0.1:8888/tree?token=95eb6ae64dc1bf25b4ca120688e91b707902aaad351cf66f
[I 2023-12-04 23:04:01.664 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-12-04 23:04:02.181 ServerApp]

    To access the server, open this file in a browser:
        file:///home/maxloo/.local/share/jupyter/runtime/jpserver-1352-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/tree?token=95eb6ae64dc1bf25b4ca120688e91b707902aaad351cf66f
        http://127.0.0.1:8888/tree?token=95eb6ae64dc1bf25b4ca120688e91b707902aaad351cf66f
[D 2023-12-04 23:04:02.183 ServerApp] Paths used for configuration of jupyter_config:
        /etc/jupyter/jupyter_config.json
[D 2023-12-04 23:04:02.183 ServerApp] Paths used for configuration of jupyter_config:
        /usr/local/etc/jupyter/jupyter_config.json
[D 2023-12-04 23:04:02.183 ServerApp] Paths used for configuration of jupyter_config:
        /home/maxloo/.local/etc/jupyter/jupyter_config.json
[D 2023-12-04 23:04:02.183 ServerApp] Paths used for configuration of jupyter_config:
        /home/maxloo/.jupyter/jupyter_config.json
[D 2023-12-04 23:04:02.183 ServerApp] Paths used for configuration of jupyter_config:
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_config.json
[D 2023-12-04 23:04:02.183 ServerApp] Paths used for configuration of jupyter_notebook_config:
        /etc/jupyter/jupyter_notebook_config.json
[D 2023-12-04 23:04:02.183 ServerApp] Paths used for configuration of jupyter_notebook_config:
        /usr/local/etc/jupyter/jupyter_notebook_config.json
[D 2023-12-04 23:04:02.183 ServerApp] Paths used for configuration of jupyter_notebook_config:
        /home/maxloo/.local/etc/jupyter/jupyter_notebook_config.json
[D 2023-12-04 23:04:02.184 ServerApp] Paths used for configuration of jupyter_notebook_config:
        /home/maxloo/.jupyter/jupyter_notebook_config.json
[D 2023-12-04 23:04:02.184 ServerApp] Paths used for configuration of jupyter_notebook_config:
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_notebook_config.d/jupyter-lsp-notebook.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_notebook_config.json
[D 2023-12-04 23:04:02.184 ServerApp] Paths used for configuration of jupyter_server_config:
        /etc/jupyter/jupyter_server_config.json
[D 2023-12-04 23:04:02.184 ServerApp] Paths used for configuration of jupyter_server_config:
        /usr/local/etc/jupyter/jupyter_server_config.json
[D 2023-12-04 23:04:02.184 ServerApp] Paths used for configuration of jupyter_server_config:
        /home/maxloo/.local/etc/jupyter/jupyter_server_config.json
[D 2023-12-04 23:04:02.184 ServerApp] Paths used for configuration of jupyter_server_config:
        /home/maxloo/.jupyter/jupyter_server_config.json
[D 2023-12-04 23:04:02.184 ServerApp] Paths used for configuration of jupyter_server_config:
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_server_config.d/jupyterlab.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_server_config.d/notebook.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_server_config.d/notebook_shim.json
        /home/maxloo/anaconda3/envs/jupyter_env/etc/jupyter/jupyter_server_config.json
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/src/node_modules/bash-language-server/out/cli.js
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/bash-language-server/out/cli.js
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/bash-language-server/out/cli.js
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/bash-language-server/out/cli.js
[D 2023-12-04 23:04:02.210 ServerApp] bash-language-server/out/cli.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/src/node_modules/bash-language-server/bin/main.js
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/bash-language-server/bin/main.js
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/bash-language-server/bin/main.js
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/bash-language-server/bin/main.js
[D 2023-12-04 23:04:02.210 ServerApp] bash-language-server/bin/main.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/src/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2023-12-04 23:04:02.210 ServerApp] dockerfile-language-server-nodejs/lib/server.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/src/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2023-12-04 23:04:02.210 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2023-12-04 23:04:02.210 ServerApp] javascript-typescript-langserver/lib/language-server-stdio.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.361 ServerApp] Checking for /home/maxloo/src/node_modules/pyright/langserver.index.js
[D 2023-12-04 23:04:02.361 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/pyright/langserver.index.js
[D 2023-12-04 23:04:02.362 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/pyright/langserver.index.js
[D 2023-12-04 23:04:02.362 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/pyright/langserver.index.js
[D 2023-12-04 23:04:02.362 ServerApp] pyright/langserver.index.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.429 ServerApp] Checking for /home/maxloo/src/node_modules/sql-language-server/dist/bin/cli.js
[D 2023-12-04 23:04:02.429 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/sql-language-server/dist/bin/cli.js
[D 2023-12-04 23:04:02.429 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/sql-language-server/dist/bin/cli.js
[D 2023-12-04 23:04:02.429 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/sql-language-server/dist/bin/cli.js
[D 2023-12-04 23:04:02.429 ServerApp] sql-language-server/dist/bin/cli.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/src/node_modules/typescript-language-server/lib/cli.js
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/typescript-language-server/lib/cli.js
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/typescript-language-server/lib/cli.js
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/typescript-language-server/lib/cli.js
[D 2023-12-04 23:04:02.497 ServerApp] typescript-language-server/lib/cli.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/src/node_modules/unified-language-server/src/server.js
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/unified-language-server/src/server.js
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/unified-language-server/src/server.js
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/unified-language-server/src/server.js
[D 2023-12-04 23:04:02.497 ServerApp] unified-language-server/src/server.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/src/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2023-12-04 23:04:02.497 ServerApp] vscode-css-languageserver-bin/cssServerMain.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/src/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2023-12-04 23:04:02.497 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2023-12-04 23:04:02.497 ServerApp] vscode-html-languageserver-bin/htmlServerMain.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.498 ServerApp] Checking for /home/maxloo/src/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2023-12-04 23:04:02.498 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2023-12-04 23:04:02.498 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2023-12-04 23:04:02.498 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2023-12-04 23:04:02.498 ServerApp] vscode-json-languageserver-bin/jsonServerMain.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.498 ServerApp] Checking for /home/maxloo/src/node_modules/yaml-language-server/bin/yaml-language-server
[D 2023-12-04 23:04:02.498 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/yaml-language-server/bin/yaml-language-server
[D 2023-12-04 23:04:02.498 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/yaml-language-server/bin/yaml-language-server
[D 2023-12-04 23:04:02.498 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/yaml-language-server/bin/yaml-language-server
[D 2023-12-04 23:04:02.498 ServerApp] yaml-language-server/bin/yaml-language-server not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[I 2023-12-04 23:04:02.498 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/src/node_modules/bash-language-server/out/cli.js
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/bash-language-server/out/cli.js
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/bash-language-server/out/cli.js
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/bash-language-server/out/cli.js
[D 2023-12-04 23:04:02.501 ServerApp] bash-language-server/out/cli.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/src/node_modules/bash-language-server/bin/main.js
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/bash-language-server/bin/main.js
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/bash-language-server/bin/main.js
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/bash-language-server/bin/main.js
[D 2023-12-04 23:04:02.501 ServerApp] bash-language-server/bin/main.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/src/node_modules/bash-language-server/out/cli.js
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/bash-language-server/out/cli.js
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/bash-language-server/out/cli.js
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/bash-language-server/out/cli.js
[D 2023-12-04 23:04:02.501 ServerApp] bash-language-server/out/cli.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/src/node_modules/bash-language-server/bin/main.js
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/bash-language-server/bin/main.js
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/bash-language-server/bin/main.js
[D 2023-12-04 23:04:02.501 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/bash-language-server/bin/main.js
[D 2023-12-04 23:04:02.501 ServerApp] bash-language-server/bin/main.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.502 ServerApp] Checking for /home/maxloo/src/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2023-12-04 23:04:02.502 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2023-12-04 23:04:02.502 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2023-12-04 23:04:02.502 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2023-12-04 23:04:02.502 ServerApp] dockerfile-language-server-nodejs/lib/server.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.502 ServerApp] Checking for /home/maxloo/src/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2023-12-04 23:04:02.502 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2023-12-04 23:04:02.502 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2023-12-04 23:04:02.502 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2023-12-04 23:04:02.503 ServerApp] dockerfile-language-server-nodejs/lib/server.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.503 ServerApp] Checking for /home/maxloo/src/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2023-12-04 23:04:02.503 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2023-12-04 23:04:02.503 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2023-12-04 23:04:02.503 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2023-12-04 23:04:02.503 ServerApp] javascript-typescript-langserver/lib/language-server-stdio.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.503 ServerApp] Checking for /home/maxloo/src/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2023-12-04 23:04:02.504 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2023-12-04 23:04:02.504 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2023-12-04 23:04:02.504 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2023-12-04 23:04:02.504 ServerApp] javascript-typescript-langserver/lib/language-server-stdio.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.627 ServerApp] Checking for /home/maxloo/src/node_modules/pyright/langserver.index.js
[D 2023-12-04 23:04:02.627 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/pyright/langserver.index.js
[D 2023-12-04 23:04:02.627 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/pyright/langserver.index.js
[D 2023-12-04 23:04:02.627 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/pyright/langserver.index.js
[D 2023-12-04 23:04:02.627 ServerApp] pyright/langserver.index.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.627 ServerApp] Checking for /home/maxloo/src/node_modules/pyright/langserver.index.js
[D 2023-12-04 23:04:02.627 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/pyright/langserver.index.js
[D 2023-12-04 23:04:02.627 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/pyright/langserver.index.js
[D 2023-12-04 23:04:02.627 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/pyright/langserver.index.js
[D 2023-12-04 23:04:02.627 ServerApp] pyright/langserver.index.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.692 ServerApp] Checking for /home/maxloo/src/node_modules/sql-language-server/dist/bin/cli.js
[D 2023-12-04 23:04:02.692 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/sql-language-server/dist/bin/cli.js
[D 2023-12-04 23:04:02.692 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/sql-language-server/dist/bin/cli.js
[D 2023-12-04 23:04:02.692 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/sql-language-server/dist/bin/cli.js
[D 2023-12-04 23:04:02.692 ServerApp] sql-language-server/dist/bin/cli.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.692 ServerApp] Checking for /home/maxloo/src/node_modules/sql-language-server/dist/bin/cli.js
[D 2023-12-04 23:04:02.692 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/sql-language-server/dist/bin/cli.js
[D 2023-12-04 23:04:02.692 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/sql-language-server/dist/bin/cli.js
[D 2023-12-04 23:04:02.692 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/sql-language-server/dist/bin/cli.js
[D 2023-12-04 23:04:02.692 ServerApp] sql-language-server/dist/bin/cli.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.765 ServerApp] Checking for /home/maxloo/src/node_modules/typescript-language-server/lib/cli.js
[D 2023-12-04 23:04:02.765 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/typescript-language-server/lib/cli.js
[D 2023-12-04 23:04:02.765 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/typescript-language-server/lib/cli.js
[D 2023-12-04 23:04:02.765 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/typescript-language-server/lib/cli.js
[D 2023-12-04 23:04:02.765 ServerApp] typescript-language-server/lib/cli.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.765 ServerApp] Checking for /home/maxloo/src/node_modules/typescript-language-server/lib/cli.js
[D 2023-12-04 23:04:02.765 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/typescript-language-server/lib/cli.js
[D 2023-12-04 23:04:02.765 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/typescript-language-server/lib/cli.js
[D 2023-12-04 23:04:02.765 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/typescript-language-server/lib/cli.js
[D 2023-12-04 23:04:02.765 ServerApp] typescript-language-server/lib/cli.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.765 ServerApp] Checking for /home/maxloo/src/node_modules/unified-language-server/src/server.js
[D 2023-12-04 23:04:02.765 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/unified-language-server/src/server.js
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/unified-language-server/src/server.js
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/unified-language-server/src/server.js
[D 2023-12-04 23:04:02.766 ServerApp] unified-language-server/src/server.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/src/node_modules/unified-language-server/src/server.js
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/unified-language-server/src/server.js
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/unified-language-server/src/server.js
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/unified-language-server/src/server.js
[D 2023-12-04 23:04:02.766 ServerApp] unified-language-server/src/server.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/src/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2023-12-04 23:04:02.766 ServerApp] vscode-css-languageserver-bin/cssServerMain.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/src/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2023-12-04 23:04:02.766 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2023-12-04 23:04:02.766 ServerApp] vscode-css-languageserver-bin/cssServerMain.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/src/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] vscode-html-languageserver-bin/htmlServerMain.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/src/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] vscode-html-languageserver-bin/htmlServerMain.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/src/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] vscode-json-languageserver-bin/jsonServerMain.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/src/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2023-12-04 23:04:02.767 ServerApp] vscode-json-languageserver-bin/jsonServerMain.js not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.768 ServerApp] Checking for /home/maxloo/src/node_modules/yaml-language-server/bin/yaml-language-server
[D 2023-12-04 23:04:02.768 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/yaml-language-server/bin/yaml-language-server
[D 2023-12-04 23:04:02.768 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/yaml-language-server/bin/yaml-language-server
[D 2023-12-04 23:04:02.768 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/yaml-language-server/bin/yaml-language-server
[D 2023-12-04 23:04:02.768 ServerApp] yaml-language-server/bin/yaml-language-server not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.768 ServerApp] Checking for /home/maxloo/src/node_modules/yaml-language-server/bin/yaml-language-server
[D 2023-12-04 23:04:02.768 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging/node_modules/yaml-language-server/bin/yaml-language-server
[D 2023-12-04 23:04:02.768 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/lib/node_modules/yaml-language-server/bin/yaml-language-server
[D 2023-12-04 23:04:02.768 ServerApp] Checking for /home/maxloo/anaconda3/envs/jupyter_env/node_modules/yaml-language-server/bin/yaml-language-server
[D 2023-12-04 23:04:02.768 ServerApp] yaml-language-server/bin/yaml-language-server not found in node_modules of [PosixPath('/home/maxloo/src'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab/staging'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env/lib'), PosixPath('/home/maxloo/anaconda3/envs/jupyter_env')]
[D 2023-12-04 23:04:02.777 ServerApp] [lsp] None of the installed servers require virtual documents disabling shadow filesystem.
[D 2023-12-04 23:04:02.777 ServerApp] [lsp] The following Language Servers will be available: {}
D3D12: Removing Device.
Segmentation fault
OneBlue commented 7 months ago

Thank you @maxloosmu. Based on the output I'm seeing it looks the issue is related to graphics.

Can you try adding:

[wsl2]
gpuSupport=false

To .wslconfig, then run wsl --shutdown, and see if the issue reproduces again ?

maxloosmu commented 7 months ago

I've changed my test.bash file to nb.bash. source nb.bash is run before I run jupyter notebook:

#!/bin/bash
# run this file using `source nb.bash`
source /home/maxloo/anaconda3/bin/activate
# Check if the environment exists
if conda info --envs | grep -q jupyter_env; then
    echo "Environment 'jupyter_env' already exists. Activating it."
else
    echo "Creating environment 'jupyter_env'."
    conda create -n jupyter_env python=3.10.12 -y
fi
conda activate jupyter_env
pip install jupyter
pip install tensorflow[and-cuda]
pip install --upgrade tensorflow[and-cuda]
pip install pandas numpy matplotlib scikit-learn
conda install cuda -c nvidia
chmod 0700 /run/user/1000/
CUDA_VISIBLE_DEVICES=""
# use this command to go from jupyter_env, to base, to normal bash prompt:
# `conda deactivate; conda deactivate`

@OneBlue I've also updated .wsl-config as you suggested, but the 60 seconds waiting time still occurred twice:

(jupyter_env) maxloo@maxloolen:~$ ls -a
.   .bash_history  .cache  .config     .ipython  .keras    .local       .nv   .sudo_as_admin_successful  anaconda3
..  .bashrc        .conda  .gitconfig  .jupyter  .lesshst  .motd_shown  .ssh  .wsl-config                src
(jupyter_env) maxloo@maxloolen:~$ cat .wsl-config
### NOTE: This is a generated file. See the accompanying README file for more info.
### Comment the line to (1) use the default or (2) set to disabled.

## Timeout in seconds waiting for response. { 1...600} Default is 180.
#WGETTIMEOUTSECS=180

## Number of retry when there is no response. { 1...6 } Default is 1.
#WGETTRYNUM=1

## Use HTTP connection. Default is use HTTPS. Uncomment var for HTTP.
#WSNOSSL=true

## Optimized enumeration, required for WSENUMMAXELEM. Default is none specified (none optimized).
#WSENUMOPTIMIZE=true

## Max number of instances in a response. { 1...1048576 } Default is 512.
#WSENUMMAXELEM=512

## WSMAN operation timeout in seconds. Default is none specified.
#WSOPERATIONTIMEOUT=360

## WSMAN maximum SOAP envelope size the client is willing to accept. Default is none specified.
#WSMAXENVELOPESIZE=32767

## Schema prefix used for non-DMTF class. Default is "schemas.dell.com"
#WSDEFAULTSCHEMA="schemas.dell.com"

## Interactive level: 0=NoAsk, 1=AskIPAddress, 2=AskIPandCredential. Default is 0.
#IPINTERACTIVE=1

## Remember IP address and user credential. Default is keep history. Uncomment var to prevent history use.
#KEEPHISTORY=0

## Show history when asking for an environment variable input. Undefined or 0 = no show, 1 show. Default is no show.
#SHOWHISTORY=1

## Display date-time stamp. Default is disabled.
#DATETIMESTAMP=true

## Formatted display of response XML. Default is disabled.
#FORMATDISPLAY=true

## Output level: 0=NoOutput, 1=ResponseOnly, 2=AddRequest, 3=AddMore. Default is 1.
#OUTLEVEL=2

## Output directory. Default is current directory.
#OUTPREFIX=.

## Log filename. Default is log.txt
#LOGFILE="log.txt"

## Result XML filename. Default response.xml
#RETURNFILE="response.xml"

## Echo back the command to console for debug purpose. Default is disabled.
#ECHOCMD=true

## CURL has HTTP1.1 support while WGET is widely available. Default is CURL
#USEWGET=true

[wsl2]
gpuSupport=false

wsl --shutdown is run from powershell, but it has no effect:

(jupyter_env) maxloo@maxloolen:~$ wsl --shutdown
Command 'wsl' not found, but can be installed with:
sudo apt install wsl
(jupyter_env) maxloo@maxloolen:~$ exit
logout
PS C:\Users\maxlo> wsl --shutdown
PS C:\Users\maxlo>
PS C:\Users\maxlo> bash
maxloo@maxloolen:/mnt/c/Users/maxlo$ cd ~/src
maxloo@maxloolen:~/src$ source nb.bash
Environment 'jupyter_env' already exists. Activating it.
Requirement already satisfied: jupyter in /home/maxloo/anaconda3/envs/jupyter_env/lib/python3.10/site-packages (1.0.0)
Requirement already satisfied: notebook in /home/maxloo/anaconda3/envs/jupyter_env/lib/python3.10/site-packages (from jupyter) (7.0.6)
*** MOST INCONSEQUENTIAL OUTPUT REMOVED ***
# All requested packages already installed.
(jupyter_env) maxloo@maxloolen:~/src$ jupyter notebook
[I 2023-12-05 07:35:41.521 ServerApp] Package notebook took 0.0000s to import
[I 2023-12-05 07:35:41.531 ServerApp] Package jupyter_lsp took 0.0098s to import
[W 2023-12-05 07:35:41.531 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-12-05 07:35:41.536 ServerApp] Package jupyter_server_terminals took 0.0049s to import
[I 2023-12-05 07:35:41.537 ServerApp] Package jupyterlab took 0.0000s to import
[I 2023-12-05 07:35:41.765 ServerApp] Package notebook_shim took 0.0000s to import
[W 2023-12-05 07:35:41.765 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-12-05 07:35:41.766 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2023-12-05 07:35:41.770 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2023-12-05 07:35:41.772 ServerApp] jupyterlab | extension was successfully linked.
[I 2023-12-05 07:35:41.774 ServerApp] notebook | extension was successfully linked.
[I 2023-12-05 07:35:41.937 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-12-05 07:35:41.946 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-12-05 07:35:41.947 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2023-12-05 07:35:41.947 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2023-12-05 07:35:41.948 LabApp] JupyterLab extension loaded from /home/maxloo/anaconda3/envs/jupyter_env/lib/python3.10/site-packages/jupyterlab
[I 2023-12-05 07:35:41.948 LabApp] JupyterLab application directory is /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab
[I 2023-12-05 07:35:41.948 LabApp] Extension Manager is 'pypi'.
[I 2023-12-05 07:35:41.949 ServerApp] jupyterlab | extension was successfully loaded.
[I 2023-12-05 07:35:41.951 ServerApp] notebook | extension was successfully loaded.
[I 2023-12-05 07:35:41.951 ServerApp] Serving notebooks from local directory: /home/maxloo/src
[I 2023-12-05 07:35:41.951 ServerApp] Jupyter Server 2.11.1 is running at:
[I 2023-12-05 07:35:41.951 ServerApp] http://localhost:8888/tree?token=777e410ce04983ca1abdaf7dc739d588da357b4911122eed
[I 2023-12-05 07:35:41.951 ServerApp]     http://127.0.0.1:8888/tree?token=777e410ce04983ca1abdaf7dc739d588da357b4911122eed
[I 2023-12-05 07:35:41.951 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-12-05 07:35:44.253 ServerApp]

    To access the server, open this file in a browser:
        file:///home/maxloo/.local/share/jupyter/runtime/jpserver-1480-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/tree?token=777e410ce04983ca1abdaf7dc739d588da357b4911122eed
        http://127.0.0.1:8888/tree?token=777e410ce04983ca1abdaf7dc739d588da357b4911122eed
[I 2023-12-05 07:35:44.907 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
D3D12: Removing Device.
Segmentation fault
OneBlue commented 7 months ago

Ok thank you @maxloosmu. Can you share an strace of the command you're running with timestamps ? That should help us understand what's freezing:

strace -f -t <command>

maxloosmu commented 7 months ago

@OneBlue i've run strace -f -t jupyter notebook > log.txt 2>&1 to log all the errors, because strace provides just too much outputs. I've attached the file log.txt to this post.

log.txt

maxloosmu commented 7 months ago

@OneBlue I've tried searching for Removing Device and Segmentation Fault in log.txt, and going to the source of the errors, it seems to begin at this section:

[pid 16981] 12:27:22 write(71, "\0\0\0\316\200\4\225\303\0\0\0\0\0\0\0}\224(\214\6result\224C\254<?x"..., 210) = 210 [pid 16974] 12:27:22 <... read resumed>"\0\0\0\316", 4) = 4 [pid 16981] 12:27:22 read(71, <unfinished ...> [pid 16974] 12:27:22 futex(0x558ed0a6ec6c, FUTEX_WAIT_BITSET_PRIVATE, 0, {tv_sec=16346, tv_nsec=102859160}, FUTEX_BITSET_MATCH_ANY) = -1 ETIMEDOUT (Connection timed out) [pid 16974] 12:27:22 futex(0x558ed0a6ec70, FUTEX_WAKE_PRIVATE, 1) = 0 [pid 16974] 12:27:22 futex(0x558ed0a6ec6c, FUTEX_WAIT_BITSET_PRIVATE, 0, {tv_sec=16346, tv_nsec=108080714}, FUTEX_BITSET_MATCH_ANY) = -1 ETIMEDOUT (Connection timed out)

There's a very lengthy series of Connection timed out at pid 16974.

OneBlue commented 7 months ago

Thank you @maxloosmu. Looking at the strace it looks like the root cause is pid 16917 (/usr/bin/ebook-edit) which is crashing:

[pid 16917] 12:29:44 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x298} ---

Before the segfault, I can see that this process was writing to /dev/dxg:

[pid 16917] 12:27:20 openat(AT_FDCWD, "/dev/dxg", O_RDONLY|O_CLOEXEC) = 6
[...]
[pid 16917] 12:29:44 ioctl(6, _IOC(_IOC_READ|_IOC_WRITE, 0x47, 0x33, 0x60), 0x7fff3e52ddc0) = 0
[pid 16917] 12:29:44 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x298} ---

So this shows that the issue is related to gpu compute.

Looking back at your previous post I can see that you added:

[wsl2]
gpuSupport=false

To the wrong file.

Can you try adding this to %USERPROFILE%\.wslconfig (on the windows side), run wsl --shutdown, and see if that solves your issue ?

maxloosmu commented 7 months ago

@OneBlue Ok, I discovered some software conflicts?

(jupyter_env) maxloo@maxloolen:~/src$ jupyter notebook
[I 2023-12-06 22:35:00.277 ServerApp] Package notebook took 0.0000s to import
[I 2023-12-06 22:35:00.286 ServerApp] Package jupyter_lsp took 0.0091s to import
[W 2023-12-06 22:35:00.286 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-12-06 22:35:00.291 ServerApp] Package jupyter_server_terminals took 0.0043s to import
[I 2023-12-06 22:35:00.291 ServerApp] Package jupyterlab took 0.0000s to import
[I 2023-12-06 22:35:00.347 ServerApp] Package notebook_shim took 0.0000s to import
[W 2023-12-06 22:35:00.347 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-12-06 22:35:00.348 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2023-12-06 22:35:00.350 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2023-12-06 22:35:00.352 ServerApp] jupyterlab | extension was successfully linked.
[I 2023-12-06 22:35:00.353 ServerApp] notebook | extension was successfully linked.
[I 2023-12-06 22:35:00.513 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-12-06 22:35:00.522 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-12-06 22:35:00.523 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2023-12-06 22:35:00.523 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2023-12-06 22:35:00.524 LabApp] JupyterLab extension loaded from /home/maxloo/anaconda3/envs/jupyter_env/lib/python3.10/site-packages/jupyterlab
[I 2023-12-06 22:35:00.524 LabApp] JupyterLab application directory is /home/maxloo/anaconda3/envs/jupyter_env/share/jupyter/lab
[I 2023-12-06 22:35:00.524 LabApp] Extension Manager is 'pypi'.
[I 2023-12-06 22:35:00.526 ServerApp] jupyterlab | extension was successfully loaded.
[I 2023-12-06 22:35:00.527 ServerApp] notebook | extension was successfully loaded.
[I 2023-12-06 22:35:00.528 ServerApp] Serving notebooks from local directory: /home/maxloo/src
[I 2023-12-06 22:35:00.528 ServerApp] Jupyter Server 2.11.1 is running at:
[I 2023-12-06 22:35:00.528 ServerApp] http://localhost:8888/tree?token=e24e2f07769426fdd39b4f30f4407ff9680a271a307dbbe1
[I 2023-12-06 22:35:00.528 ServerApp]     http://127.0.0.1:8888/tree?token=e24e2f07769426fdd39b4f30f4407ff9680a271a307dbbe1
[I 2023-12-06 22:35:00.528 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-12-06 22:35:01.128 ServerApp]

    To access the server, open this file in a browser:
        file:///home/maxloo/.local/share/jupyter/runtime/jpserver-531-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/tree?token=e24e2f07769426fdd39b4f30f4407ff9680a271a307dbbe1
        http://127.0.0.1:8888/tree?token=e24e2f07769426fdd39b4f30f4407ff9680a271a307dbbe1
[I 2023-12-06 22:35:01.462 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[843:7:1206/223502.542144:ERROR:command_buffer_proxy_impl.cc(141)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
/usr/bin/xdg-open: 882: x-www-browser: not found
/usr/bin/xdg-open: 882: firefox: not found
/usr/bin/xdg-open: 882: iceweasel: not found
/usr/bin/xdg-open: 882: seamonkey: not found
/usr/bin/xdg-open: 882: mozilla: not found
/usr/bin/xdg-open: 882: epiphany: not found
/usr/bin/xdg-open: 882: konqueror: not found
/usr/bin/xdg-open: 882: chromium: not found
/usr/bin/xdg-open: 882: chromium-browser: not found
/usr/bin/xdg-open: 882: google-chrome: not found
/usr/bin/xdg-open: 882: www-browser: not found
/usr/bin/xdg-open: 882: links2: not found
/usr/bin/xdg-open: 882: elinks: not found
/usr/bin/xdg-open: 882: links: not found
/usr/bin/xdg-open: 882: lynx: not found
/usr/bin/xdg-open: 882: w3m: not found
xdg-open: no method available for opening 'https://manual.calibre-ebook.com/edit.html'
^C[I 2023-12-06 22:36:58.054 ServerApp] interrupted
[I 2023-12-06 22:36:58.054 ServerApp] Serving notebooks from local directory: /home/maxloo/src
    0 active kernels
    Jupyter Server 2.11.1 is running at:
    http://localhost:8888/tree?token=e24e2f07769426fdd39b4f30f4407ff9680a271a307dbbe1
        http://127.0.0.1:8888/tree?token=e24e2f07769426fdd39b4f30f4407ff9680a271a307dbbe1
Shutdown this Jupyter server (y/[n])? y
[C 2023-12-06 22:38:17.030 ServerApp] Shutdown confirmed
[I 2023-12-06 22:38:17.039 ServerApp] Shutting down 5 extensions

The reason why the not found statements start appearing, was because for some reason, the command jupyter notebook opened another window upon reaching this statement:

[843:7:1206/223502.542144:ERROR:command_buffer_proxy_impl.cc(141)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.

Then, I clicked the Help option and the User Manual sub-option on the window. See attached screenshot. I managed to close the window after that and the Jupyter notebook links can be accessed. The unusual window seems to be a calibre-ebook window, which I have installed it in the past to convert files to and from pdf, but is it problematic to leave it as it is or should I remove it?

Screenshot 2023-12-06 225051

OneBlue commented 7 months ago

I don't have any specific knowledge of that software so that would be a question for the maintainers. Did the above config change help with the issue ?

maxloosmu commented 7 months ago

@OneBlue Ok, I'll ask the maintainers of the jupyter and calibre software for more information about the problem. But could I ask, does this config prevent the usage of GPU on my PC? If it does, it will not solve my problem, because I want to use my PC's GPU.

[wsl2]
gpuSupport=false
OneBlue commented 7 months ago

@OneBlue Ok, I'll ask the maintainers of the jupyter and calibre software for more information about the problem. But could I ask, does this config prevent the usage of GPU on my PC? If it does, it will not solve my problem, because I want to use my PC's GPU.

It does prevent usage of the GPU inside WSL yes. Did it solve the issue ?

maxloosmu commented 7 months ago

@OneBlue Yes, there's no longer two 60 seconds delay when I start up jupyter notebook. Does this mean that we cannot use GPUs with WSL2? It will be helpful if you can direct me to some options I can try.. or do I need to create a new WSL Github issue to get the right answers?

OneBlue commented 7 months ago

Ok this proves that the issue is related to GPU. @iourit: Do you know what could cause this ?

iourit commented 7 months ago

@maxloosmu I think the GPU adapter is reset on the host. Could you take an ETW trace on the host for this scenario?

maxloosmu commented 7 months ago

@iourit ok, here it is. the ETL file is quite large. I'm barely able to upload this file here:

Filename.zip

tsteven4 commented 1 month ago

The gsbabel gui still fails in a similar manner (D3D12 Removing Device, Segmentation fault) if gpusupport=true. This occurs when using the mappreview feature which relies on QtWebEngine. I am testing on Ubuntu jammy with the ubuntu supplied Qt6 (6.2.4+dfsg-6ubuntu1).

QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0755 instead of 0700
qt.webenginecontext:

GLImplementation: desktop
Surface Type: OpenGL
Surface Profile: CompatibilityProfile
Surface Version: 4.1
Using Default SG Backend: yes
Using Software Dynamic GL: no
Using Angle: no

Init Parameters:
  *  application-name GPSBabel
  *  browser-subprocess-path /usr/lib/qt6/libexec/QtWebEngineProcess
  *  create-default-gl-context
  *  disable-features DnsOverHttpsUpgrade,ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture
  *  disable-setuid-sandbox
  *  disable-speech-api
  *  enable-features NetworkServiceInProcess,TracingServiceInProcess
  *  enable-threaded-compositing
  *  in-process-gpu
  *  use-gl desktop

D3D12: Removing Device.
D3D12: Removing Device.
[1223:1257:0610/052955.443597:ERROR:gles2_cmd_decoder.cc(2849)] [GroupMarkerNotSet(crbug.com/242999)!:28DF13AC187F0000]GL ERROR :GL_OUT_OF_MEMORY : BackFramebuffer::Create: <- error from previous GL command
[1223:1257:0610/052955.443953:ERROR:gles2_cmd_decoder.cc(5780)] GLES2DecoderImpl::ResizeOffscreenFramebuffer failed to allocate storage for offscreen target color texture.
[1223:1257:0610/052955.443972:ERROR:gles2_cmd_decoder.cc(4030)] ContextResult::kFatalFailure: Could not allocate offscreen buffer storage.
Segmentation fault