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

New websocket unable to communicate with kernel paused in debugging #622

Closed
kycutler opened this issue Nov 30, 2021 · 2 comments · Fixed by #628
Closed

New websocket unable to communicate with kernel paused in debugging #622

kycutler opened this issue Nov 30, 2021 · 2 comments · Fixed by #628
Labels

Comments

@kycutler
Copy link

Description

When establishing a new websocket connection to a kernel whose execution is paused due to debugging (e.g. paused on a breakpoint), messages sent over the websocket get no reply -- including debug requests.

Reproduce

  1. Connect to a kernel that supports debugging (e.g. IPyKernel >= 6)
  2. Set a breakpoint in the kernel (e.g. using JupyterLab) and run the code so that execution is paused
  3. Open a new websocket connection to the kernel
  4. Notice that the websocket gets no responses, even from messages over the control channel.

Seems to be causing jupyterlab/jupyterlab#10174.

Tested against different versions of jupyter_server and traced the issue back to version 1.1.2 (the issue does not repro in 1.1.1). This correlates with #361. While in this "frozen" state the console also shows that the server is nudging the kernel repeatedly, so it makes sense if this is the cause.

Expected behavior

The kernel should still be able to communicate, at least over the control channel so that frontends can continue the debugger and unblock the shell.

@kycutler kycutler added the bug label Nov 30, 2021
@welcome
Copy link

welcome bot commented Nov 30, 2021

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@JohanMabille
Copy link
Contributor

Fixing this requires to modify the protocol, I'm going to open a JEP for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants