<div dir="ltr">No Problem, here is a simple hello world test script:<br><br>import sys<br><br>from PyQt6.QtWidgets import QApplication, QLabel<br>from PyQt6.QtQml import QQmlListProperty<br>from PyQt6.QtCore import QObject<br>#from pyupdater.client import Client<br><br>from config import CLIENT_CONFIG<br>from config import UpdatePyUpdaterClientConfig<br><br>clientConfig=None<br>UpdatePyUpdaterClientConfig(clientConfig)<br>app = QApplication(sys.argv)<br><br>#this is the troublesome statment:<br>QQmlListProperty(QObject, QObject(), [])<br><br>#label = QLabel("Hello World!")<br>label = QLabel("<font color=red size=40>Hello World!</font>")<br><br>label.show()<br><br>app.exec()<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 26, 2022 at 9:18 AM Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 11/02/2022 20:44, Jared Jones wrote:<br>
> Hi everyone,<br>
> <br>
> Recently I upgraded an Application in my organization from PyQt 5.5 to <br>
> PyQt<br>
> 6.2.3. I noticed that after upgrading my application, it would cause a<br>
> windows access violation everytime I closed my application. I <br>
> eventually<br>
> tracked the issue down to the QQmlListProperty() objects in my program.<br>
> When the application closes, the underlying QQmlListProperty() objects <br>
> (at<br>
> the C++ level) do not seem to be deleted, which causes the access<br>
> violation. When I removed all QQmlListProperty() objects, my program no<br>
> longer throws an Access violation. Even when I have no <br>
> QQmlListProperty()<br>
> objects in my program, if I drop into pdb, and create a basic<br>
> QQmlListProperty() object using the syntax "QQmlListProperty(QObject,<br>
> QObject(), [])", and do not assign this object to any python variable,<br>
> simply continuing execution after doing this (and then ultimately <br>
> closing<br>
> my app). will cause an access violation.<br>
> <br>
> As of right now, there is no way around this bug, except for not using<br>
> QQmlListProperty() entirely. QQmlListProperty() cannot be deleted with<br>
> sip.delete(), so once the object is created, an access violation WILL<br>
> happen when your application closes.There doesn't seem to be any way to<br>
> delete an underlying QQmlListProperty() object<br>
> <br>
> Hopefully, this issue can be resolved in a future release.<br>
<br>
The next PyQt6 snapshot fixes a bug triggered by...<br>
<br>
QQmlListProperty(QObject, QObject(), [])<br>
<br>
...but the bug is also present in PyQt5 so is unlikely to be the <br>
underlying problem. A simple test script would help.<br>
<br>
Phil<br>
</blockquote></div>