> Fatal Python error: PyEval_RestoreThread: NULL tstate
This error happened to me when I used Python embedded into a C app as
it's script engine. The thread state is a global variable, pointing to
a thread state object. Something, very literally is causing a change of
Python thread-state. Abuse of the global interpreter lock could cause
this, as could sloppily written code, the most common case is when
something returns (on error condition) and doesn't restore everything to
the way it was supposed to be on exit of the function. I suspect your
CXX extensions may be having some kindo f error or exception, and
something is returning without having properly unlocked or released
something.... Sorry to be so vague.
Warren
|