UaExpert crashes when writing Value of Optional Field of own Type

Questions regarding the use of the UaExpert.

Moderator: uaexpert

Post Reply
sschwinn
Full Member
Full Member
Posts: 6
Joined: 06 Oct 2021, 08:17

UaExpert crashes when writing Value of Optional Field of own Type

Post 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

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

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

Post 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
Best regards
Unified Automation Support Team

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

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

Post 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.
Best regards
Unified Automation Support Team

sschwinn
Full Member
Full Member
Posts: 6
Joined: 06 Oct 2021, 08:17

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

Post 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

Post Reply