UaExpert crashs when accessing structured datatypes

Questions regarding the use of the UaExpert.

Moderator: uaexpert

Post Reply
isophur
Jr. Member
Jr. Member
Posts: 4
Joined: 31 Jan 2022, 08:23

UaExpert crashs when accessing structured datatypes

Post by isophur »

I am using latest UaExpert 1.6.1 424

When I connect to an OPC Server and click on an object node with a structured data type the UaExpert application crashs and closes immediately without any message.

The trace shows following entries before crashing:
09:00:46.192Z|2|4E48* [uastack] UaStructureField::setDataTypeId: not able to get BuiltInType for valueType
09:00:46.192Z|6|4B90* [uastack] * OpcUa_TcpConnection_SocketCallback: Event Handler returned.
Windows Eventlog gives following information:
System

[ Name] Application Error

- EventID 1000

[ Qualifiers] 0

Version 0

Level 2

Task 100

Opcode 0

Keywords 0x80000000000000

- TimeCreated

[ SystemTime] 2022-01-28T14:11:40.5915930Z

EventRecordID 2923

- Execution

[ ProcessID] 0
[ ThreadID] 0

- EventData

uaexpert.exe
1.6.1.424
61c05229
MSVCR90.dll
9.0.30729.9625
5db2747f
c0000005
00025e37
6110
01d8143d767f9d3c
C:\Program Files (x86)\UnifiedAutomation\UaExpert\bin\uaexpert.exe
C:\WINDOWS\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9625_none_508ef7e4bcbbe589\MSVCR90.dll
14098f7a-0d44-4be6-a68e-6f9e5b311c2a
Is there a configuration on UaExpert side or something on OPC server side I can do to prevent this error from happening?

Thank you

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

Re: UaExpert crashs when accessing structured datatypes

Post by Support Team »

Hi,

we can not see any issue in the UaExpert, there is a default handling when the type is unknown, but of course it should not crash. We need more information on what exactly you try to do.

1) what is the OPC UA Server you are using, manufacturer, version?
2) the structure you try to read/browse contains what value types exactly?
3) does the server support dictionary or type attribute or both?
Best regards
Unified Automation Support Team

isophur
Jr. Member
Jr. Member
Posts: 4
Joined: 31 Jan 2022, 08:23

Re: UaExpert crashs when accessing structured datatypes

Post by isophur »

Dear Support,

the problem could be solved.
The problem was that the server supports both, DataTypeDefintion Attributes and DataType Dictionary, however the Dictionary was missing in the nodeset file and therefore not published! After fixing the nodeset file, UA Expert can show the structures without crashing.

Thank you

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

Re: UaExpert crashs when accessing structured datatypes

Post by Support Team »

Hi,

We are still very much interested in getting more details to be able to identify the reason for the crash.
Even if there is was an issue in the server, UaExpert should not crash.

Is there a way to provide us the server with the configuration that causes the problem?
Maybe there is a stand-alone version you can send us.

If not, can you turn on the UaExpert trace and send us the trace file?
http://documentation.unified-automation.com/uaexpert/1.5.1/html/gui.html#configuration
Trace.SDKTraceEnabled = true
Trace.SDKTraceLevel = Data
Trace.StackTraceEnabled = true
Trace.StackTraceLevel = ALL
Best regards
Unified Automation Support Team

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

Re: UaExpert crashs when accessing structured datatypes

Post by Support Team »

Hi, thank you for reporting back.

Even though being a bug in the Server, we also will be looking into the UaExpert (UaExpert should not crash, no matter what the server is responding). However, we did not manage to create a buggy server like yours with our Modeler/SDKs, hence we can not reproduce.

Can you provide the buggy server to us?

Please create Support Ticket here:
https://webdav.unifiedautomation.com/support/support_form.html
Best regards
Unified Automation Support Team

isophur
Jr. Member
Jr. Member
Posts: 4
Joined: 31 Jan 2022, 08:23

Re: UaExpert crashs when accessing structured datatypes

Post by isophur »

Trace file and additional information is provided in request ID #21540

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

Re: UaExpert crashs when accessing structured datatypes

Post by Support Team »

Thank you for providing the additional information.

We identified and fixed the issue in UaExpert.
The fix will be contained in the upcoming UaExpert version 1.6.2
Best regards
Unified Automation Support Team

isophur
Jr. Member
Jr. Member
Posts: 4
Joined: 31 Jan 2022, 08:23

Re: UaExpert crashs when accessing structured datatypes

Post by isophur »

Thanks for excellent support!

Post Reply