UaExpert crashes when writing Value of Optional Field of own Type
Posted: 28 Mar 2023, 13:46
Hello all,
I created a structured data type which has two fields. One field is a mandatory scalar UInt16 and the other is an optional Scalar of the same type. The following picture shows the DataTypeDefinition Attribute as a reference
For testing I added a Variable with this data type and wrote some test data to it. The data shows as expected:
UaExpert crashes when I try to write to the Variable via double clicking on the Value in the GUI. The "Edit Value" window does not open, UaExpert crashes immediatly. I suspect that the handling of handling own type as an optional field is not correct/incomplete. The Version of UaExpert is 1.6.3 448.
~~~~~~~~~~~~
Update:
While opening the Variable the following warning (yellow text) in log appears. Maybe this helps. The NodeId is the DataType Node Id of the said own data type.
UaStructureField::setDataTypeId: not able to get BuiltInType for DataType ns=4;i=4711
UaStructureField::setDataTypeId: not able to get BuiltInType for DataType ns=4;i=4711
~~~~~~~~~~~~
If you need any further informations or help from my side, feel free to ask.
Healthy greetings,
Sebastian Schwinn
I created a structured data type which has two fields. One field is a mandatory scalar UInt16 and the other is an optional Scalar of the same type. The following picture shows the DataTypeDefinition Attribute as a reference
For testing I added a Variable with this data type and wrote some test data to it. The data shows as expected:
UaExpert crashes when I try to write to the Variable via double clicking on the Value in the GUI. The "Edit Value" window does not open, UaExpert crashes immediatly. I suspect that the handling of handling own type as an optional field is not correct/incomplete. The Version of UaExpert is 1.6.3 448.
~~~~~~~~~~~~
Update:
While opening the Variable the following warning (yellow text) in log appears. Maybe this helps. The NodeId is the DataType Node Id of the said own data type.
UaStructureField::setDataTypeId: not able to get BuiltInType for DataType ns=4;i=4711
UaStructureField::setDataTypeId: not able to get BuiltInType for DataType ns=4;i=4711
~~~~~~~~~~~~
If you need any further informations or help from my side, feel free to ask.
Healthy greetings,
Sebastian Schwinn