You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
We encounter a random error which occurs from time to time on our shared jupyterhub instance.
After some time of running many jupyterlab notebooks, the kernel tends the crash always at the same cell of a notebook(which changes from a crash occurrence to another). Note that the same cell works in other runs, and that the error does not occur on the same cell or cell content after the jupyterhub is restarted and the error happens again.
Here is the stacktrace we get:
Traceback (most recent call last):
File "/srv/envs/mambaforge/envs/experiments-2024-06-03/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/srv/envs/mambaforge/envs/experiments-2024-06-03/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/srv/envs/mambaforge/envs/experiments-2024-06-03/lib/python3.9/site-packages/ipykernel_launcher.py", line 18, in <module>
app.launch_new_instance()
File "/srv/envs/mambaforge/envs/experiments-2024-06-03/lib/python3.9/site-packages/traitlets/config/application.py", line 1075, in launch_instance
app.start()
File "/srv/envs/mambaforge/envs/experiments-2024-06-03/lib/python3.9/site-packages/ipykernel/kernelapp.py", line 739, in start
self.io_loop.start()
File "/srv/envs/mambaforge/envs/experiments-2024-06-03/lib/python3.9/site-packages/tornado/platform/asyncio.py", line 205, in start
self.asyncio_loop.run_forever()
File "/srv/envs/mambaforge/envs/experiments-2024-06-03/lib/python3.9/asyncio/base_events.py", line 601, in run_forever
self._run_once()
File "/srv/envs/mambaforge/envs/experiments-2024-06-03/lib/python3.9/asyncio/base_events.py", line 1890, in _run_once
handle = self._ready.popleft()
IndexError: pop from an empty deque
To overcome the error, we need to restart the jupyterhub instance thus interrupting everybody's work.
Reproduce
Open a notebook
Run a series of cells
A popup appears telling that the kernel has crashed and need to be restarted
Expected behavior
The kernel does not crash and all cells are run successfully.
Context
Operating System and version: Debian 11 (bullseye)
Browser and version: Chrome 125, firefox 125
JupyterLab version: 4.1.2
For reference, here are all jupyter-related packages that are used to build our jupyterhub instance
Since this is an error in asyncio in the standard library and your Python is a few years out of date, I wonder if it may have been fixed already. If it's possible for you to try an environment with a more recent Python, that would be the first thing I would try. This same error has been reported on other libraries, such as Rapptz/discord.py#9487 and erdewit/nest_asyncio#11 so I'm not sure it's anything we are doing or can fix. If it is, it may relate to using nest_asyncio (if it's being used) or perhaps something involving threads.
Description
Hello,
We encounter a random error which occurs from time to time on our shared jupyterhub instance.
After some time of running many jupyterlab notebooks, the kernel tends the crash always at the same cell of a notebook(which changes from a crash occurrence to another). Note that the same cell works in other runs, and that the error does not occur on the same cell or cell content after the jupyterhub is restarted and the error happens again.
Here is the stacktrace we get:
To overcome the error, we need to restart the jupyterhub instance thus interrupting everybody's work.
Reproduce
Expected behavior
The kernel does not crash and all cells are run successfully.
Context
For reference, here are all jupyter-related packages that are used to build our jupyterhub instance
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: