{"action":"created","issue":{"url":"https://api.github.com/repos/QCoDeS/Qcodes/issues/411","repository_url":"https://api.github.com/repos/QCoDeS/Qcodes","labels_url":"https://api.github.com/repos/QCoDeS/Qcodes/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/QCoDeS/Qcodes/issues/411/comments","events_url":"https://api.github.com/repos/QCoDeS/Qcodes/issues/411/events","html_url":"https://github.com/QCoDeS/Qcodes/issues/411","id":194567039,"number":411,"title":"Leaking sockets?","user":{"login":"jenshnielsen","id":548266,"avatar_url":"https://avatars.githubusercontent.com/u/548266?v=3","gravatar_id":"","url":"https://api.github.com/users/jenshnielsen","html_url":"https://github.com/jenshnielsen","followers_url":"https://api.github.com/users/jenshnielsen/followers","following_url":"https://api.github.com/users/jenshnielsen/following{/other_user}","gists_url":"https://api.github.com/users/jenshnielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jenshnielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenshnielsen/subscriptions","organizations_url":"https://api.github.com/users/jenshnielsen/orgs","repos_url":"https://api.github.com/users/jenshnielsen/repos","events_url":"https://api.github.com/users/jenshnielsen/events{/privacy}","received_events_url":"https://api.github.com/users/jenshnielsen/received_events","type":"User","site_admin":false},"labels":[{"id":222346529,"url":"https://api.github.com/repos/QCoDeS/Qcodes/labels/bug","name":"bug","color":"fc2929","default":true},{"id":414286649,"url":"https://api.github.com/repos/QCoDeS/Qcodes/labels/mulitprocessing","name":"mulitprocessing","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":{"login":"jenshnielsen","id":548266,"avatar_url":"https://avatars.githubusercontent.com/u/548266?v=3","gravatar_id":"","url":"https://api.github.com/users/jenshnielsen","html_url":"https://github.com/jenshnielsen","followers_url":"https://api.github.com/users/jenshnielsen/followers","following_url":"https://api.github.com/users/jenshnielsen/following{/other_user}","gists_url":"https://api.github.com/users/jenshnielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jenshnielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenshnielsen/subscriptions","organizations_url":"https://api.github.com/users/jenshnielsen/orgs","repos_url":"https://api.github.com/users/jenshnielsen/repos","events_url":"https://api.github.com/users/jenshnielsen/events{/privacy}","received_events_url":"https://api.github.com/users/jenshnielsen/received_events","type":"User","site_admin":false},"assignees":[{"login":"jenshnielsen","id":548266,"avatar_url":"https://avatars.githubusercontent.com/u/548266?v=3","gravatar_id":"","url":"https://api.github.com/users/jenshnielsen","html_url":"https://github.com/jenshnielsen","followers_url":"https://api.github.com/users/jenshnielsen/followers","following_url":"https://api.github.com/users/jenshnielsen/following{/other_user}","gists_url":"https://api.github.com/users/jenshnielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jenshnielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenshnielsen/subscriptions","organizations_url":"https://api.github.com/users/jenshnielsen/orgs","repos_url":"https://api.github.com/users/jenshnielsen/repos","events_url":"https://api.github.com/users/jenshnielsen/events{/privacy}","received_events_url":"https://api.github.com/users/jenshnielsen/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-12-09T10:52:27Z","updated_at":"2017-01-25T11:54:59Z","closed_at":null,"body":"If you encounter a bug use the following template.\r\nIf you have a feature request feel free to freestyle.\r\n### Steps to reproduce\r\n1.  Run code for some time on windows including possible shutdown and restart of notebook and instrument communication.\r\n\r\n### Expected behaviour\r\nThings should keep working\r\n### Actual behaviour\r\n\r\nNotebook fails with socket related connection issues from Tornado and ZMQ.\r\n\r\n```\r\n      File \"c:\\users\\triton2acq\\anaconda3\\envs\\qcodes-master\\lib\\site-packages\\j\r\nupyter_client\\multikernelmanager.py\", line 33, in wrapped\r\n        r = method(*args, **kwargs)\r\n      File \"c:\\users\\triton2acq\\anaconda3\\envs\\qcodes-master\\lib\\site-packages\\j\r\nupyter_client\\ioloop\\manager.py\", line 33, in wrapped\r\n        socket = f(self, *args, **kwargs)\r\n      File \"c:\\users\\triton2acq\\anaconda3\\envs\\qcodes-master\\lib\\site-packages\\j\r\nupyter_client\\connect.py\", line 492, in connect_shell\r\n        return self._create_connected_socket('shell', identity=identity)\r\n      File \"c:\\users\\triton2acq\\anaconda3\\envs\\qcodes-master\\lib\\site-packages\\j\r\nupyter_client\\connect.py\", line 476, in _create_connected_socket\r\n        sock = self.context.socket(socket_type)\r\n      File \"c:\\users\\triton2acq\\anaconda3\\envs\\qcodes-master\\lib\\site-packages\\z\r\nmq\\sugar\\context.py\", line 146, in socket\r\n        s = self._socket_class(self, socket_type, **kwargs)\r\n      File \"zmq\\backend\\cython\\socket.pyx\", line 285, in zmq.backend.cython.sock\r\net.Socket.__cinit__ (zmq\\backend\\cython\\socket.c:3861)\r\n    zmq.error.ZMQError: No buffer space available\r\n\r\n    \r\n 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\r\n```\r\n\r\nRegular internet (browsing etc) is flaky too\r\n\r\nWe suspect that sockets are leaked and not cleaned up. This may be in the VISA driver of \r\nnetwork instruments such as ZNMB20 VNA \r\n\r\n### System\r\n**operating system**\r\nWindows\r\n**qcodes branch**\r\nmaster\r\n**qcodes commit**\r\n?"},"comment":{"url":"https://api.github.com/repos/QCoDeS/Qcodes/issues/comments/275089518","html_url":"https://github.com/QCoDeS/Qcodes/issues/411#issuecomment-275089518","issue_url":"https://api.github.com/repos/QCoDeS/Qcodes/issues/411","id":275089518,"user":{"login":"jenshnielsen","id":548266,"avatar_url":"https://avatars.githubusercontent.com/u/548266?v=3","gravatar_id":"","url":"https://api.github.com/users/jenshnielsen","html_url":"https://github.com/jenshnielsen","followers_url":"https://api.github.com/users/jenshnielsen/followers","following_url":"https://api.github.com/users/jenshnielsen/following{/other_user}","gists_url":"https://api.github.com/users/jenshnielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jenshnielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenshnielsen/subscriptions","organizations_url":"https://api.github.com/users/jenshnielsen/orgs","repos_url":"https://api.github.com/users/jenshnielsen/repos","events_url":"https://api.github.com/users/jenshnielsen/events{/privacy}","received_events_url":"https://api.github.com/users/jenshnielsen/received_events","type":"User","site_admin":false},"created_at":"2017-01-25T11:54:58Z","updated_at":"2017-01-25T11:54:58Z","body":"A bit more investigation. This can be shortened to \r\n\r\n```\r\n%gui qt5\r\nfrom toymodel import AModel\r\nmodel = AModel()\r\n```\r\n\r\nThe Mock model starts a server process so using the multiprocessing so thats probably where the issue is"}}
{"actor":{"display_login":"jenshnielsen"}}