[PyQt] Segfault instantiating QJsonValue

Phil Thompson phil at riverbankcomputing.com
Sun Mar 15 05:53:19 GMT 2020


On 15/03/2020 03:00, Bryce Beagle wrote:
> Hi,
> 
> Creating a QJsonValue using another QJsonValue currently segfaults for 
> me
> in v5.14.1. Here's a quick snippet that reproduces the problem.
> 
> from PyQt5.QtCore import QJsonValue
> 
> # These segfault
> QJsonValue(QJsonValue(5))
> QJsonValue({"test": QJsonValue(5)})
> 
> # These work fine
> QJsonValue(5)
> QJsonValue({"test2": 5})

Should be fixed in the next snapshot.

Thanks,
Phil


More information about the PyQt mailing list