OPC UA gateway based on open62541 to subscribe to servers implementing umati endorsed companion specification and publish via MQTT to the broker for https://umati.app
Mozilla Public License 2.0
18
stars
9
forks
source link
Crashes possibly related to dynamic ResultManagement nodes #788
2024-06-07 14:30:39,808 [DashboardOpcUaClient] INFO void __cdecl Umati::OpcUa::Converter::UaDataValueToJsonValue::setValueFromScalarVariant(UA_Variant &,class nlohmann::json_abi_v3_11_3::basic_json<class std::map,class std::vector,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool,__int64,unsigned __int64,double,class std::allocator,struct nlohmann::json_abi_v3_11_3::adl_serializer,class std::vector<unsigned char,class std::allocator<unsigned char> >,void> *,bool):196 Known conversion from OpcUaType_ExtensionObject with DataTypeEncodingType: ns=10016; i=7058208
Additional context
The node with index 125591 corresponds to a node in the folder Machine/ResultManagement/Results; there are about 100 dynamic nodes in this folder with custom datatypes.
The namespace 10016 and index 7058208 are garbage.
Describe the bug
Gateway crashes with many lines similar to this in the log:
Log
2024-06-07 14:30:39,702 [DashboardOpcUaClient] INFO class std::shared_ptr<class Umati::Dashboard::IDashboardDataClient::ValueSubscriptionHandle> __cdecl Umati::OpcUa::Subscription::Subscribe(struct UA_Client *,struct ModelOpcUa::NodeId_t,class std::function<void __cdecl(class nlohmann::json_abi_v3_11_3::basic_json<class std::map,class std::vector,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool,__int64,unsigned __int64,double,class std::allocator,struct nlohmann::json_abi_v3_11_3::adl_serializer,class std::vector<unsigned char,class std::allocator<unsigned char> >,void>)>):159 Subscribe request for nodeId http://www.AAA.com/BBB/GMS/146522;i=125591
And this last one before crash:
2024-06-07 14:30:39,808 [DashboardOpcUaClient] INFO void __cdecl Umati::OpcUa::Converter::UaDataValueToJsonValue::setValueFromScalarVariant(UA_Variant &,class nlohmann::json_abi_v3_11_3::basic_json<class std::map,class std::vector,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool,__int64,unsigned __int64,double,class std::allocator,struct nlohmann::json_abi_v3_11_3::adl_serializer,class std::vector<unsigned char,class std::allocator<unsigned char> >,void> *,bool):196 Known conversion from OpcUaType_ExtensionObject with DataTypeEncodingType: ns=10016; i=7058208
Additional context
The node with index 125591 corresponds to a node in the folder Machine/ResultManagement/Results; there are about 100 dynamic nodes in this folder with custom datatypes.
The namespace 10016 and index 7058208 are garbage.