[PyQt] SIP exception translation results in internal error

Phil Thompson phil at riverbankcomputing.com
Sat Jun 7 15:08:35 BST 2008


On Wednesday 04 June 2008 9:08:56 am Arve Knudsen wrote:
> I was able to reproduce the error now, without embedding actually,
> using the latest sip snapshot (06-03). I've attached a test module and
> script which should trigger the crash.
>
> Arve
>
> On Tue, Jun 3, 2008 at 12:53 PM, Arve Knudsen <arve.knudsen at gmail.com> 
wrote:
> > On Tue, Jun 3, 2008 at 11:09 AM, Arve Knudsen <arve.knudsen at gmail.com> 
wrote:
> >> On 6/3/08, Phil Thompson <phil at riverbankcomputing.com> wrote:
> >>> On Tuesday 03 June 2008 9:38:24 am Arve Knudsen wrote:
> >>>  > Hi
> >>>  >
> >>>  > I tried to play with SIP's support for automatic exception
> >>>  > translation (the "-e" option), in our application which embeds
> >>>  > Python/PyQt. The platform is Ubuntu 7.10 32bit. It doesn't seem to
> >>>  > quite work however, since an internal error is encountered in
> >>>  > PyEval_SaveThread: Fatal Python error: PyEval_SaveThread: NULL
> >>>  > tstate. The gdb traceback shows that the call to PyEval_SaveThread
> >>>  > happens in QtCore.so. A bug in SIP or PyQt?
> >>>
> >>> Do you have a test case?
> >>
> >> Not at the moment at least, since this is in a larger application
> >> which embeds Python. I can try to reproduce the error in a smaller
> >> program, however. Could be that the error has to do with Python being
> >> embeddd.
> >
> > So far I've tried a simple non-embedded test case, and it works. So
> > it's not unlikely my initial hunch was correct. I'll see if I can get
> > around to writing a case for this.
> >
> > Arve

Should be fixed in tonight's SIP snapshot.

Thanks,
Phil


More information about the PyQt mailing list