Skip to content
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

Traceback when stopping a kernel execution #30

Open
manuelma opened this issue Feb 5, 2021 · 1 comment
Open

Traceback when stopping a kernel execution #30

manuelma opened this issue Feb 5, 2021 · 1 comment
Assignees

Comments

@manuelma
Copy link
Collaborator

manuelma commented Feb 5, 2021

Almost systematically

Exception in thread Thread-20:
Traceback (most recent call last):
  File "/home/manuelma/miniconda3/envs/spinetoolbox/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/home/manuelma/miniconda3/envs/spinetoolbox/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/manuelma/Codes/spine/engine/spine_engine/spine_engine.py", line 390, in _execute_item_filtered
    item_success = item.execute(filtered_forward_resources, filtered_backward_resources)
  File "/home/manuelma/Codes/spine/items/spine_items/tool/executable_item.py", line 410, in execute
    return_code = self._tool_instance.execute()
  File "/home/manuelma/Codes/spine/items/spine_items/tool/tool_instance.py", line 157, in execute
    return self._console_execute()
  File "/home/manuelma/Codes/spine/items/spine_items/tool/tool_instance.py", line 167, in _console_execute
    ret = self.exec_mngr.run_until_complete()
  File "/home/manuelma/Codes/spine/engine/spine_engine/execution_managers.py", line 177, in run_until_complete
    returncode = self._do_run()
  File "/home/manuelma/Codes/spine/engine/spine_engine/execution_managers.py", line 183, in _do_run
    self._kernel_client.wait_for_ready(timeout=self._startup_timeout)
  File "/home/manuelma/miniconda3/envs/spinetoolbox/lib/python3.7/site-packages/jupyter_client/blocking/client.py", line 96, in wait_for_ready
    msg = self.shell_channel.get_msg(block=True, timeout=1)
  File "/home/manuelma/miniconda3/envs/spinetoolbox/lib/python3.7/site-packages/jupyter_client/blocking/channels.py", line 47, in get_msg
    ready = self.socket.poll(timeout)
  File "/home/manuelma/.local/lib/python3.7/site-packages/zmq/sugar/socket.py", line 702, in poll
    evts = dict(p.poll(timeout))
  File "/home/manuelma/.local/lib/python3.7/site-packages/zmq/sugar/poll.py", line 99, in poll
    return zmq_poll(self.sockets, timeout=timeout)
  File "zmq/backend/cython/_poll.pyx", line 143, in zmq.backend.cython._poll.zmq_poll
  File "zmq/backend/cython/_poll.pyx", line 123, in zmq.backend.cython._poll.zmq_poll
  File "zmq/backend/cython/checkrc.pxd", line 26, in zmq.backend.cython.checkrc._check_rc
zmq.error.ZMQError: Socket operation on non-socket
@manuelma manuelma self-assigned this Feb 5, 2021
manuelma pushed a commit that referenced this issue Feb 5, 2021
Re #30

Stopping client channels doesn't work, because the kernel keeps sending
messages on a closed channel. This works a bit better but we
need to couple it with SpineConsoleWidget so it's not stuck
in an eternal restart loop.
@manuelma manuelma reopened this Sep 14, 2021
@manuelma
Copy link
Collaborator Author

This looks like it was solved by the above commit but the last sentence in that commit message makes me wonder. Let's keep it open until we have time to figure out things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant