[PyQt] Crash when sending None in a str signal

Florian Bruhin me at the-compiler.org
Mon Jun 20 09:43:49 BST 2016


* Julien Duponchelle <julien at gns3.net> [2016-06-20 08:35:25 +0000]:
> Hi,
> 
> If you send None instead of a str to a signal the application will
> segfault.

I think this is the same as this which will be fixed in
PyQt 5.6.1/5.7:

https://www.riverbankcomputing.com/pipermail/pyqt/2016-April/037375.html
https://www.riverbankcomputing.com/pipermail/pyqt/2016-April/037399.html

> I know the error is from me but due to the fact it's a segfault it's hard
> to locate the issue. It would be easier if a Python exception was raised.

It's not an error I believe, as there's a difference on the Qt side
between an empty and a null QString.

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160620/02d604cd/attachment.sig>


More information about the PyQt mailing list