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

Error not handled well during connection table recompile #12

Open
philipstarkey opened this issue Sep 21, 2015 · 5 comments
Open

Error not handled well during connection table recompile #12

philipstarkey opened this issue Sep 21, 2015 · 5 comments
Labels
bug Something isn't working major

Comments

@philipstarkey
Copy link
Member

Original report (archived issue) by Shaun Johnstone (Bitbucket: shjohnst, GitHub: shjohnst).


Today when attempting to have BLACS recompile my connection table I had a ZMQ timeout error. After this, the popup window was unresponsive, with the three buttons at the bottom greyed out, and the [x] button in the corner of the window not doing anything.

The error, as displayed in the output window, is:

#!python

Traceback (most recent call last):
  File "C:\pythonlib\runmanager\batch_compiler.py", line 19, in <module>
    import labscript
  File "C:\pythonlib\labscript\__init__.py", line 14, in <module>
    from labscript import *
  File "C:\pythonlib\labscript\labscript.py", line 22, in <module>
    import runmanager
  File "C:\pythonlib\runmanager\__init__.py", line 25, in <module>
    import labscript_utils.h5_lock
  File "C:\pythonlib\labscript_utils\h5_lock.py", line 98, in <module>
    connect_to_zlock_server()
  File "C:\pythonlib\labscript_utils\h5_lock.py", line 91, in connect_to_zlock_server
    zprocess.locking.connect(host, port)
  File "C:\Python27\lib\site-packages\zprocess-1.1.6-py2.7.egg\zprocess\locking\__init__.py", line 373, in connect
    ping(timeout)
  File "C:\Python27\lib\site-packages\zprocess-1.1.6-py2.7.egg\zprocess\locking\__init__.py", line 337, in ping
    return _zmq_lock_client.say_hello(timeout)
  File "C:\Python27\lib\site-packages\zprocess-1.1.6-py2.7.egg\zprocess\locking\__init__.py", line 114, in say_hello
    raise zmq.ZMQError('No response from zlock server: timed out')
zmq.error.ZMQError: No response from zlock server: timed out

The line above the output window still says "Recompiling connection table"

@philipstarkey
Copy link
Member Author

Original comment by Shaun Johnstone (Bitbucket: shjohnst, GitHub: shjohnst).


  • changed assignee_account_id from "557058:2f99420c-1dbd-4837-952c-82c421b8fbdd" to "557058:cbf1bc43-1dc2-477b-9e25-1a8f40fd7ee3"
  • changed assignee from "philipstarkey (Bitbucket: philipstarkey, GitHub: philipstarkey)" to "cbillington (Bitbucket: cbillington, GitHub: chrisjbillington)"

Looks like this is actually a bug in the runmanager API

@philipstarkey
Copy link
Member Author

Original comment by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).


Further details: The asynchronous compilation functions of the runmanager API need to catch exceptions in the worker processes and call done_callback(False)

@philipstarkey
Copy link
Member Author

@philipstarkey
Copy link
Member Author

Original comment by Shaun Johnstone (Bitbucket: shjohnst, GitHub: shjohnst).


This is still an issue, I just came across it again (seems as though matplotlib is being loaded by labscript which is loaded by runmanager, but matplotlib is trying to use a Qt5 backend on a Qt4 install)

@philipstarkey
Copy link
Member Author

Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).


I encountered this too - the workaround was to just open another compile-and-restart window :p.

Anyway, should be able to fix this pretty easily, I'll give it a go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant