I've written a C++ library that uses pthreads, and I suddenly started getting this error after running the app for a little while. the application is intensley graphical, and has lots of qt signals and pthread mutexes being used. this is what I get: Fatal Python error: PyEval_SaveThread: NULL tstate