[PyQt] Segfault with 5.9 snapshot when connecting to destroyed signal
Phil Thompson
phil at riverbankcomputing.com
Tue Jun 6 15:34:12 BST 2017
On 5 Jun 2017, at 10:42 pm, Florian Bruhin <me at the-compiler.org> wrote:
>
> Hi,
>
> the attached script works fine with PyQt 5.8, but segfaults with the
> current 5.9 snapshot. This is a simplified version of pytest-qt's
> SignalBlocker: http://pytest-qt.readthedocs.io/en/latest/signals.html
>
> The "self.args = args" saves a reference to the to-be-destroyed object,
> which probably triggers this in some way - saving the arguments is done
> as a general thing here though. It's probably a bit unorthodox, but
> still shouldn't segfault I guess?
Should be fixed in tonight's PyQt snapshot.
Current snapshots have additional code to detect when certain objects get destroyed. This is deceptively difficult to get right (as you have found). I'd appreciate any testing you can do with the snapshots before the v5.9 release.
Thanks,
Phil
More information about the PyQt
mailing list