[PyKDE] Problems with QWidgetFactory

Fredrik Juhlin laz at strakt.com
Mon Jul 5 18:00:02 BST 2004


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




More information about the PyQt mailing list