[UAExpertMobile] Crash when reading OPC UA Variables

Questions regarding the use of the UaExpert.

Moderator: uaexpert

Post Reply
cacamille3
Hero Member
Hero Member
Posts: 73
Joined: 15 Feb 2012, 21:43

[UAExpertMobile] Crash when reading OPC UA Variables

Post by cacamille3 »

Hello,

I am using UAExpertMobile v0.9.5

When I try to read a variable on UAExpert the App always crash.
However monitoring the same Node is working and reading Object too...

As far as I understand you send first a Read Request for the NodeId of the Node to Read
then another ReadRequest with the NodeId as the DataType NodeId returned in the previous ReadResponse.

I think the app crash because it could not handle StatusCode : OpcUa_BadAttributeIdInvalid
since it try to read among other things :
  • - DataType (shall only work for Variable/VariableType)
    - ValueRank ( Variable/VariableType )
    - ArrayDimensions (Variable/VariableType)
    - InverseName ( ReferenceType)
Is this problem well-known or is my server having problems ?

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

Re: [UAExpertMobile] Crash when reading OPC UA Variables

Post by Support Team »

Hello,

We couldn't reproduce the problem based on the given information. Can you give us a more detailed description of this case or maybe you could send us a wireshark recording?

Best rgeards
Support Team

cacamille3
Hero Member
Hero Member
Posts: 73
Joined: 15 Feb 2012, 21:43

Re: [UAExpertMobile] Crash when reading OPC UA Variables

Post by cacamille3 »

Hello,

Here is a tiny wireshark recording of a uaexpert mobile session connecting to my test server
then browsing to a node I need to read.
The last ReadRequest/ReadResponse lead to the crash of the app.

https://www.dropbox.com/s/tcvk2vhkdenie ... ile.pcapng

PS : I am using an emulated Android 2.3.

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

Re: [UAExpertMobile] Crash when reading OPC UA Variables

Post by Support Team »

The UaExpert Mobile crashes, if it get's an ArrayDimensions-Array wth a length of -1. We have to fix this. You can use the latest version, if you use a length of 0.

Best regards
Support Team

cacamille3
Hero Member
Hero Member
Posts: 73
Joined: 15 Feb 2012, 21:43

Re: [UAExpertMobile] Crash when reading OPC UA Variables

Post by cacamille3 »

Ok. I just forced my Server to send 0 in ArrayDimensions and it works.
There is also a problem with UTCTime in SourceTimestamp and ServerTimestamps (cf screenshots)
When requesting CreateSession, the app also send a ClientDescription without applicationUri, productUri neither ApplicationName...

Image Image

Post Reply