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
UaExpert crashes when writing Value of Optional Field of own Type
Moderator: uaexpert
-
- Full Member
- Posts: 6
- Joined: 06 Oct 2021, 08:17
- Support Team
- Hero Member
- Posts: 3078
- Joined: 18 Mar 2011, 15:09
Re: UaExpert crashes when writing Value of Optional Field of own Type
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
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
Unified Automation Support Team
- Support Team
- Hero Member
- Posts: 3078
- Joined: 18 Mar 2011, 15:09
Re: UaExpert crashes when writing Value of Optional Field of own Type
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.
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
Unified Automation Support Team
-
- Full Member
- Posts: 6
- Joined: 06 Oct 2021, 08:17
Re: UaExpert crashes when writing Value of Optional Field of own Type
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
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