Connect event: ERROR 0x80050000

Questions regarding the use of the ANSI C SDK for Server or Client development or integration into customer products ...

Moderator: uasdkc

Post Reply
nemethz
Sr. Member
Sr. Member
Posts: 10
Joined: 14 Mar 2017, 09:10

Connect event: ERROR 0x80050000

Post by nemethz »

Hi,

My app stopped with segmentation fault in libuastack.so.

The trace file:

07:42:27.879|D|E4307700* OpcUa_SecureStream_Read: end of buffer reached: 1 requested, 0 available in buffer; need to skip)!
07:42:27.879|I|E4307700* OpcUa_Channel_ResponseAvailable: ReadResponse
07:42:27.879|D|E4307700* OpcUa_Channel_ResponseAvailable: Calling Application Callback!
07:42:27.879|D|E4307700* UaClient_Session_WatchdogReadComplete: WatchdogRead succeeded
07:42:27.879|D|E4307700* OpcUa_Channel_ResponseAvailable: Calling Application Callback Done!
07:42:27.879|D|E4307700* OpcUa_AsyncCallState_Delete: 0x53c5a10
07:42:27.879|D|E4307700* * OpcUa_TcpConnection_SocketCallback: Event Handler returned.
07:42:27.879|D|E4307700* --> UaClient_Session_Action_StartWatchdogTimer
07:42:27.879|D|E4307700* <-- UaClient_Session_Action_StartWatchdogTimer
07:42:27.974|I|E4307700* OpcUa_Socket_HandleEvent: Exception at connect attempt 0.
07:42:27.974|I|E4307700* OpcUa_Socket_HandleEvent: Connect to all IP's failed. Giving up.
07:42:27.974|D|E4307700* * OpcUa_TcpConnection_SocketCallback: Socket(e60d0188), Port(33985), Data(87392480), Event(OPCUA_SOCKET_EXCEPT_EVENT)
07:42:27.975|D|E4307700* OpcUa_P_Socket_Shutdown: Shutting down socket 0xE60D0188!
07:42:27.975|D|E4307700* OpcUa_P_Socket_Shutdown: Could not shut down socket (0x80AF0000)! Closing.
07:42:27.975|D|E4307700* OpcUa_P_Socket_Delete: Closing socket 0xE60D0188!
07:42:27.975|D|E4307700* OpcUa_SecureConnection_OnNotify: SecureConnection 0x53a8c00 received event 1 with status 0x80050000!
07:42:27.975|E|E4307700* OpcUa_SecureConnection_OnNotify: Connect event: ERROR 0x80050000!

...and nore trace entries.

The trace file when error handled successfully:

08:58:02.663|E|34642700* OpcUa_SecureConnection_OnNotify: Connect event: ERROR 0x80050000!
08:58:02.663|D|34642700* OpcUa_TcpConnection_Disconnect: State 4, Socket (nil)
08:58:02.663|E|34642700* OpcUa_SecureConnection_OnNotify: Connect event: Notifying owner! 0x80050000
08:58:02.663|D|34642700* OpcUa_Channel_OnNotify: Underlying connection raised connect event with status 0x80050000!
08:58:02.663|D|34642700* OpcUa_Channel_OnNotify: Notifying application!

The Linux log:

[Fri Dec 15 05:59:56 2017] ocaqudanv.exe[15924]: segfault at 20 ip 00007fdde5e751be sp 00007fdde4306a50 error 4 in libuastack.so[7fdde5d99000+12a000]

Can we know what this can be?

Regards
Zoltan Nemeth

stanleylee
Jr. Member
Jr. Member
Posts: 2
Joined: 11 Dec 2017, 08:33

Re: Connect event: ERROR 0x80050000

Post by stanleylee »

In the source code, the error number 0x80050000 is following

/*============================================================================
* A low level communication error occurred.
*===========================================================================*/
#define OpcUa_BadCommunicationError 0x80050000

nemethz
Sr. Member
Sr. Member
Posts: 10
Joined: 14 Mar 2017, 09:10

Re: Connect event: ERROR 0x80050000

Post by nemethz »

I know, but the application randomly crashed in libuastack.so when this bad communication error occured.
Has anyone experienced such a thing?

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

Re: Connect event: ERROR 0x80050000

Post by Support Team »

Hello nemethz,

please use https://webdav.unifiedautomation.com/su ... _form.html to issue a support request containing your customer id. We will need more detailed information about the scenario which leads to the problem and the application using the AnsiC client SDK.
Best regards
Unified Automation Support Team

Post Reply