Skip to content

Leaking sockets? #411

@jenshnielsen

Description

@jenshnielsen

Steps to reproduce

  1. Run code for some time on windows including possible shutdown and restart of notebook and instrument communication.

Expected behaviour

Things should keep working

Actual behaviour

Notebook fails with socket related connection issues from Tornado and ZMQ.

      File "c:\users\triton2acq\anaconda3\envs\qcodes-master\lib\site-packages\j
upyter_client\multikernelmanager.py", line 33, in wrapped
        r = method(*args, **kwargs)
      File "c:\users\triton2acq\anaconda3\envs\qcodes-master\lib\site-packages\j
upyter_client\ioloop\manager.py", line 33, in wrapped
        socket = f(self, *args, **kwargs)
      File "c:\users\triton2acq\anaconda3\envs\qcodes-master\lib\site-packages\j
upyter_client\connect.py", line 492, in connect_shell
        return self._create_connected_socket('shell', identity=identity)
      File "c:\users\triton2acq\anaconda3\envs\qcodes-master\lib\site-packages\j
upyter_client\connect.py", line 476, in _create_connected_socket
        sock = self.context.socket(socket_type)
      File "c:\users\triton2acq\anaconda3\envs\qcodes-master\lib\site-packages\z
mq\sugar\context.py", line 146, in socket
        s = self._socket_class(self, socket_type, **kwargs)
      File "zmq\backend\cython\socket.pyx", line 285, in zmq.backend.cython.sock
et.Socket.__cinit__ (zmq\backend\cython\socket.c:3861)
    zmq.error.ZMQError: No buffer space available

    
 OSError: [WinError 10055] An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full

Regular internet (browsing etc) is flaky too

We suspect that sockets are leaked and not cleaned up. This may be in the VISA driver of
network instruments such as ZNMB20 VNA

System

operating system
Windows
qcodes branch
master
qcodes commit
?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions