OPC UA Client Shutdown, System.AccessViolation.Exception|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
OPC UA Client Shutdown, System.AccessViolation.Exception
Avatar
David Perchard
New Member
Members
Forum Posts: 1
Member Since:
05/09/2017
sp_UserOfflineSmall Offline
1
01/27/2020 - 02:40
sp_Permalink sp_Print

Hello,

I have an issue with my applications using OPC UA. Those are developped through the french IDE Windev.

The main issue is that they randomly crash (often after a few hours of waiting) and as the problem seems to happen on the .Net level, I’m unable to handle the exception.

Here’s what I can observe on the Windows Event Viewer:

Informations sur l’exception : System.AccessViolationException
à <Module>.CAccesVM.bExecuteDelegate(CAccesVM*, UInt32, UInt32)
à WLangage.Runtime.CWDDelegateWL.ExecuteDelegate(System.Type)
à WL.CWLDelegate_void_KeepAliveEventHandler_Opc_Ua_Client_Session_Opc_Ua_Client_KeepAliveEventArgs.fWLDelegate(Opc.Ua.Client.Session, Opc.Ua.Client.KeepAliveEventArgs)
à Opc.Ua.Client.Session.OnKeepAlive(Opc.Ua.ServerState, System.DateTime)
à Opc.Ua.Client.Session.OnKeepAliveComplete(System.IAsyncResult)
à Opc.Ua.Bindings.TcpAsyncOperation`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCallback(System.Object)
à System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
à System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
à System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
à System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
à System.Threading.ThreadPoolWorkQueue.Dispatch()
à System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Sorry for the french words (I thouhgt it would be better to leave it as is, but if you need translation don’t hesitate to ask).

I’m guessing there is some kind of timeouts involved, especially around the KeepAlive event but I don’t get how to properly fix this.

If anyone could put me on the right tracks it would be great.

Thanks in advance,

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOnlineSmall Online
2
01/29/2020 - 05:27
sp_Permalink sp_Print

There is an unhandled exception in the function: CAccesVM.bExecuteDelegate()

This code is not part of the .NET codebase.

You can also add an UnhandledException handler to your AppDomain to prevent a process crash:

https://docs.microsoft.com/en-…..mework-4.8

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Randy Armstrong
Guest(s) 55
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1445
Posts: 4889