For anyone coming across this problem, I have found it usually happens when I have a Python script within the xpresso, which is not working. It is really hard to debug Python code in xpresso, I find, so it might not be obvious that it’s Python that’s the problem. I wish both xpresso and Python would provide better error messages.