Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BadOutOfMemory when using UA_Server_new() in [Release] #5949

Open
bustecKliczko opened this issue Aug 16, 2023 · 0 comments
Open

BadOutOfMemory when using UA_Server_new() in [Release] #5949

bustecKliczko opened this issue Aug 16, 2023 · 0 comments

Comments

@bustecKliczko
Copy link

bustecKliczko commented Aug 16, 2023

Description

After succesfull compilation of the 1.3.6 open62541 library for both Debug and Release, only the Debug version can create a server and add nodes to it. The latter case faces a problem, issuing error:

AccessControl: Unconfigured AccessControl. Users have all permissions.
AccessControl: Anonymous login is enabled
AccessControl: x509 certificate user authentication is enabled
Username/Password Authentication configured, but no encrypting SecurityPolicy. This can leak credentials on the network.AcceptAll Certificate Verification. Any remote certificate will be accepted.
Configured standard server
SecureChannel 0 | Session "Administrator" | AddNode: Node could not create a node with error code BadOutOfMemory
SecureChannel 0 | Session "Administrator" | AddNode: Node could not create a node with error code BadOutOfMemory

The issue

Background Information / Reproduction Steps

To obtain the issue above, open62541-1.3.6 Release version of the library has been used with just:

this->server_		=				UA_Server_new();

where server_ is defined in the main class as follows:
class O62541Server : public QObject
{
Q_OBJECT
protected:
UA_Server* server_;
std::unique_ptr thread_;

public:
char* locale = nullptr;
uint namespaceId_ = 0;
UA_StatusCode isRunning_ = false;
.
.
.
}
and inherits QObject from QT library. The issue is not created when using Debug version.

Used CMake options:

  • UA_ARCHITECTURE - win32
  • UA_ENABLE_AMALGAMATION TRUE
  • UA_ENABLE_DA TRUE
  • UA_ENABLE_DISCOVERY
  • UA_ENABLE_SUBSCRIPTION TRUE
  • UA_ENABLE_SUBSCRIPTION_EVENTS TRUE
  • UA_MULTITHREADING 100
  • UA_NAMESPACE_ZERO REDUCED
  • CMAKE_BUILD_TYPE Release

Checklist

Please provide the following information:

  • [1.3.6] open62541 Version (release number or git tag):
  • [server] Other OPC UA SDKs used (client or server):
  • [Windows 11 64bit] Operating system:
  • [100 ] Logs (with UA_LOGLEVEL set as low as necessary) attached
  • [None] Wireshark network dump attached
  • [Yes] Self-contained code example attached
  • [True] Critical issue
Screenshot 2023-08-16 135606
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant