[PyKDE] Python/pystate.c:441: failed assertion `autoInterpreterState'

Patrick Stinson patrickkidd.lists at gmail.com
Tue Apr 11 01:04:43 BST 2006


I assume this is fixed, considering the age of the following post, but
I got it again. What is the likelyhood that this is cause by some
other c++ extension than PyQt4. (latest snapshots)

On Monday 05 July 2004 16.54, Phil Thompson wrote:
> On Monday 05 July 2004 3:09 pm, Fredrik Juhlin wrote:
> > The only outstanding issue we have right now is a segfault when exiting
> > the application. Running the app with a debug-compiled python reveals a
> > "python: Python/pystate.c:423: PyGILState_Ensure: Assertion
> > `autoInterpreterState' failed.". I'm not sure what could be causing it,
> > but I'm compiling a PyQt with debugging turned on as I speak, hoping gdb
> > will give me a clue (despite my feeble C/C++ skills.)
>
> This usually happens when C++ is still "running", ie. C++ virtuals and
> dtors are still being executed after the Python interpreter has been
> finalised. The sip module is supposed to guard against it, but there may be
> one place where it's not happening. Can you try the attached patch to see
> if it makes a difference?
That fixed it! That took care of our last immediate issue.

Again, thanks a lot!

//Fredrik

--
Patrick Kidd Stinson
http://www.patrickkidd.com/
http://pkaudio.sourceforge.net/
http://pksampler.sourceforge.net/




More information about the PyQt mailing list