Page 1 of 1

MotiveAPI 3.1.0 bug with multiple threads

Posted: Fri Oct 17, 2025 7:29 am
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

Re: MotiveAPI 3.1.0 bug with multiple threads

Posted: Fri Oct 24, 2025 9:53 am
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