-
Notifications
You must be signed in to change notification settings - Fork 284
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
Client hangs with version 7.2.2 #771
Comments
We're also seeing something similar in Spyder, i.e. some errors coming from zmq. |
Can either of you please point me to some reproduction code so I can make a test here and fix the bug? |
I haven't been able to reliably reproduce yet. I've seen it happen maybe 0.5% percent of the time, but with several different kernels. |
In our case, please see issue spyder-ide/spyder#17615. @mrclary (one of our core devs) found it. Perhaps he can share more details. |
I found the following issue with
Upon quitting jupyter_client 7.2.1 errorERROR:asyncio:Exception in callback BaseAsyncIOLoop._handle_events(34, 1)
handle: <Handle BaseAsyncIOLoop._handle_events(34, 1)>
Traceback (most recent call last):
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/tornado/platform/asyncio.py", line 189, in _handle_events
handler_func(fileobj, events)
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 445, in _handle_events
zmq_events = self.socket.EVENTS
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/zmq/sugar/attrsettr.py", line 51, in __getattr__
return self._get_attr_opt(upper_key, opt)
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/zmq/sugar/attrsettr.py", line 63, in _get_attr_opt
return self.get(opt)
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/zmq/_future.py", line 215, in get
result = super(_AsyncSocket, self).get(key)
File "zmq/backend/cython/socket.pyx", line 464, in zmq.backend.cython.socket.Socket.get
File "zmq/backend/cython/socket.pyx", line 135, in zmq.backend.cython.socket._check_closed
zmq.error.ZMQError: Socket operation on non-socket
ERROR:asyncio:Exception in callback BaseAsyncIOLoop._handle_events(36, 1)
handle: <Handle BaseAsyncIOLoop._handle_events(36, 1)>
Traceback (most recent call last):
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/tornado/platform/asyncio.py", line 189, in _handle_events
handler_func(fileobj, events)
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 445, in _handle_events
zmq_events = self.socket.EVENTS
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/zmq/sugar/attrsettr.py", line 51, in __getattr__
return self._get_attr_opt(upper_key, opt)
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/zmq/sugar/attrsettr.py", line 63, in _get_attr_opt
return self.get(opt)
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/zmq/_future.py", line 215, in get
result = super(_AsyncSocket, self).get(key)
File "zmq/backend/cython/socket.pyx", line 464, in zmq.backend.cython.socket.Socket.get
File "zmq/backend/cython/socket.pyx", line 135, in zmq.backend.cython.socket._check_closed
zmq.error.ZMQError: Socket operation on non-socket
ERROR:asyncio:Exception in callback BaseAsyncIOLoop._handle_events(36, 1)
handle: <Handle BaseAsyncIOLoop._handle_events(36, 1)>
Traceback (most recent call last):
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/tornado/platform/asyncio.py", line 189, in _handle_events
handler_func(fileobj, events)
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/zmq/eventloop/zmqstream.py", line 445, in _handle_events
zmq_events = self.socket.EVENTS
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/zmq/sugar/attrsettr.py", line 51, in __getattr__
return self._get_attr_opt(upper_key, opt)
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/zmq/sugar/attrsettr.py", line 63, in _get_attr_opt
return self.get(opt)
File "/Users/rclary/opt/miniconda3/envs/jup721/lib/python3.9/site-packages/zmq/_future.py", line 215, in get
result = super(_AsyncSocket, self).get(key)
File "zmq/backend/cython/socket.pyx", line 464, in zmq.backend.cython.socket.Socket.get
File "zmq/backend/cython/socket.pyx", line 135, in zmq.backend.cython.socket._check_closed
zmq.error.ZMQError: Socket operation on non-socket jup721 environment
The following produces no errors when quitting qtconsole.
jup720 environment
Both environments are identical except for I get the same error for |
Great, thanks everyone. I'll take a closer look tomorrow. |
It appears the week got away from me 😄. I'll return to this next week. |
We've seen occasional client hangs on shutdown with version 7.2.2 and nbclient that i suspect is caused by 1219c7e
Trace looks like this
The text was updated successfully, but these errors were encountered: