Open vfdev-5 opened 2 days ago
Can you please attach additional details like env and error stack.
May be generic debugging tips for JupyterLab can be helpful. https://stackoverflow.com/questions/74154123/how-to-debug-jupyter-kernel-crashes
Env info:
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"
JupyterLab console shows the following before the crash:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/opt/conda/lib/python3.11/site-packages/ipykernel_launcher.py", line 18, in <module>
app.launch_new_instance()
File "/opt/conda/lib/python3.11/site-packages/traitlets/config/application.py", line 1075, in launch_instance
app.start()
File "/opt/conda/lib/python3.11/site-packages/ipykernel/kernelapp.py", line 739, in start
self.io_loop.start()
File "/opt/conda/lib/python3.11/site-packages/tornado/platform/asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "/opt/conda/lib/python3.11/asyncio/base_events.py", line 608, in run_forever
self._run_once()
File "/opt/conda/lib/python3.11/asyncio/base_events.py", line 1921, in _run_once
handle = self._ready.popleft()
^^^^^^^^^^^^^^^^^^^^^
IndexError: pop from an empty deque
Hope this helps.
PS: few observations about the issue:
repro code in the single cell does not crash (at least I've never seen)
Just to be clear, here by cell
you meant the notebook cell. Correct?
repro code in the single cell does not crash (at least I've never seen)
Just to be clear, here by
cell
you meant the notebook cell. Correct?
Yes, if I merge all notebook code cells into a single cell, I can't repro the crash. When the code is distributed into multiple cells as in the ipynb, than I can get notebook kernel crash rather frequently.
The following code in multiple cells in the JupyterLab crashes randomly when executed:
Here is the ipynb to reproduce the crash: https://gist.github.com/vfdev-5/da7f01b9c0c2948046b227a32db2cb2b