Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
6.8.0.2, 6.8.2
-
-
0448857f4 (tqtc/dev), 97ab53936 (tqtc/6.8)
Description
RuntimeWarning: CopyCppToPython(): SbkConverter::copyToPython is null for "PySide6.QtOpcUa.QOpcUaWriteResult" occurs when the following signal is received: PySide6.QtOpcUa.QOpcUaClient.writeNodeAttributesFinished(results, serviceResult)
The warning only occurs in PySide, and a similar signal and slot connection in Qt in c++ doesn't show that warning.
To reproduce the the issue, run the attached pyside project ( an edited version of Qt OPC UA Viewer Example project) and connect to an OPC UA server.
In mainwindow.py, the following lines have been added:
@Slot(list, QOpcUa.UaStatusCode) def onWriteNodeAttributesFinished(self, results, serviceResult) # line 407 def onWriteNodeAttributes(self) # line 369 called in line 237 writeNodeAttributesFinished = Signal(list) # line 71 self._opcua_client.writeNodeAttributesFinished.connect(self.onWriteNodeAttributesFinished) #line 146
Steps to run an OPC UA server:
- Use Qt waterpump simulation server when listening on 43344
or
- git clone https://github.com/open62541/open62541
- Follow the steps mentioned in https://www.open62541.org/doc/1.0/installing.html to Install open62541 (ensure adding DUA_ENABLE_AMALGAMATION=ON flag when running cmake).
- Follow the steps in https://www.open62541.org/doc/1.0/tutorial_server_firststeps.html to build and run a simple server.
void QOpcUaClient::writeNodeAttributesFinished(QList<QOpcUaWriteResult> results, QOpcUa::UaStatusCode serviceResult)
Attachments
Issue Links
- relates to
-
PYSIDE-3004 [Roadmap 2025] shiboken6: Better handling of non-default constructible or other special value types
-
- Closed
-