[PyQt] SIP exception translation results in internal error
arve.knudsen at gmail.com
Wed Jun 4 09:08:56 BST 2008
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.
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
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10240 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080604/91186fa8/tst.tar
More information about the PyQt