Open marip8 opened 3 years ago
If I had to hazard a guess, this issue may be caused by the couple of static variables in the BPMPD
interface library that get used by multiple functions
@Levi-Armstrong @mpowelson is there a reason that these variables are static and not a member of the class?
Nope, This was just how it was originally implemented. Change if needed.
I tried solving an optimization using the
BPMPD
solver in a multi-threaded context and encountered a segfault deep insideBPMPD
. Switching the solver to bothOSQP
andqpOASES
solves the issue, which seems to indicate that some aspect oftrajopt
with theBPMPD
solver is not thread safe. I'm not sure if this comes from the solver library itself or thetrajopt_sco
wrapper.I encounter this issue at this version of the repository.