nauful / LibUA

Open-source OPC UA client and server library
Apache License 2.0
262 stars 94 forks source link

Monitored item delivers errors in clients log #116

Closed stefanofraccaro closed 1 year ago

stefanofraccaro commented 1 year ago

When you monitor an item on UaExpert, many errors appears on Log window. The monitored value is refreshed correctly. I tried with UaExpert 1.5.1 and 1.6.3 : same result. LibUA is the latest version, downloaded today, NET trunk ( .NET Framework 4.8 ). The OS is Windows 10 22H2 LibUa_Ack_Error .

stefanofraccaro commented 1 year ago

LibUA-Log.log

stefanofraccaro commented 1 year ago

Maybe I have found the problem, but I don't remember to have never activated these settings. To reproduce the problem, go to Settings -> Configure UaExpert... and set Trace.StackTraceEnabled=true and Trace.SDKTraceEnabled=true If you revert these settings to its default value (=false) the communication seems fine.

nauful commented 1 year ago

Hello,

This is a known warning which I don't plan to fix because it doesn't impact functionality.

More details: acknowledgements and publish notifications are calculated asynchronously so their counts don't line up immediately. I could make this synchronous, which would fix that warning but performance would decrease significantly when publishing many monitored items to many different clients.