Page 1 of 1

UaExpert crashes when writing Value of Optional Field of own Type

Posted: 28 Mar 2023, 13:46
by sschwinn
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

Image

For testing I added a Variable with this data type and wrote some test data to it. The data shows as expected:

Image

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

Re: UaExpert crashes when writing Value of Optional Field of own Type

Posted: 29 Mar 2023, 14:36
by Support Team
Hello Sebastian,

We are able to reproduce the issue but we think it only shows up when the server does not provide a DataType Dictionary with the DataType.

There are two options to expose the description of a structure DataType
* DataType Dictionary (old way that provides a XML descripiton of all DataTypes in a namespace)
* DataTypeDefinition attribute on the DataType

What you have shown in the report was the DataTypeDefinition attribute.

Can you please verify if the server exposes also a Dictionary that containes the DataType?
Can be found below Types > DataTypes > OPC Binary

Re: UaExpert crashes when writing Value of Optional Field of own Type

Posted: 30 Mar 2023, 07:23
by Support Team
Hello Sebastian,

We think we found also a way to reproduce the issue for the case with DataTypeDictionary.

We can provide you a test version to verify if the problem is also fixed with your test setup.
Please create a support ticket here for UaExpert:
https://webdav.unifiedautomation.com/support/support_form.html
Unified Automation > Support > Submitt Support Ticket
and request a test version for this issue.

Re: UaExpert crashes when writing Value of Optional Field of own Type

Posted: 03 Apr 2023, 11:59
by sschwinn
Hello all,
Currently only the DataTypeDefinition attribute is provided by the server. The DataType Dictionary with its BSD contents is not privded by the server. In the embedded context it uses too much memory.

Thanks for your help, I will do as suggested.

Greetings,
Sebastian Schwinn