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

UA COM Interop ServerWrapper got a deadlock #345

Open
kevinjhang opened this issue Jun 23, 2022 · 0 comments
Open

UA COM Interop ServerWrapper got a deadlock #345

kevinjhang opened this issue Jun 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kevinjhang
Copy link

In ComClientNodeManager.cs

lock (Server.DiagnosticsLock)<-- lock (ServerInternalData.m_dataLock)
{
	// check if the server is running.
	if (!Server.IsRunning)
	{
		return;
	}

	// get the LocaleIdArray property.
	BaseVariableState localeArray = Server.DiagnosticsNodeManager.Find(<-- lock (CustomNodeManager2.m_lock)

The method DiagnosticsNodeManager.DoSample may have locked CustomNodeManager2.m_lock
before to lock ServerInternalData.m_dataLock, so the solution is to remove the first line above.

@mregen mregen added the bug Something isn't working label Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants