MotiveAPI 3.1.0 bug with multiple threads

Locked
vsm
Posts: 3
Joined: Sat Oct 11, 2025 1:42 am

MotiveAPI 3.1.0 bug with multiple threads

Post by vsm »

Hi,
I found a bug inside MotiveAPI DLL when performing MotiveAPI::Initialize()/MotiveAPI::Shutdown() from different threads.
You'll find attached a very simple program to reproduce the issue.
I guess there's a problem with thread context management inside DllMain (DLL_THREAD_ATTACH/DLL_THREAD_DETACH).
Best regards,
Vincent
steven.andrews
NaturalPoint Employee
NaturalPoint Employee
Posts: 721
Joined: Mon Jan 19, 2015 11:52 am

Re: MotiveAPI 3.1.0 bug with multiple threads

Post by steven.andrews »

Hi Vincent,

Thank you for sharing the details and for putting together a simple reproduction example. I see that you are already working with our support team on this, which is the best way to report and track a potential bug like this. We will also need you to confirm whether the same behavior occurs in the current version of Motive, since we are not making further updates to Motive 3.1.

Best regards,
Steven



Steven Andrews
Sr. Director, Support Engineering
OptiTrack
Locked