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

IKFast and QPOases Incompatibility #437

Open
Levi-Armstrong opened this issue Feb 7, 2024 · 3 comments
Open

IKFast and QPOases Incompatibility #437

Levi-Armstrong opened this issue Feb 7, 2024 · 3 comments

Comments

@Levi-Armstrong
Copy link
Contributor

It looks like for some reason when qpoases is installed from source from trajopt_ext when dynamically loading ikfast kinematics plugins it uses the build/qpoases-src/src/BLASReplacement.cpp causing the planning server to crash with memory alignment issues.

[Switching to Thread 0x7fffbf7fe700 (LWP 95468)]
__memset_avx2_erms () at ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:151
151 ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: No such file or directory.
(gdb) bt
#0  __memset_avx2_erms () at ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:151
#1  0x00007fffe9906ac1 in dgemm_(char const*, char const*, la_uint_t const*, la_uint_t const*, la_uint_t const*, double const*, double const*, la_uint_t const*, double const*, la_uint_t const*, double const*, double*, la_uint_t const*)
    (TRANSA=0x7fff68f4ad19 "N", TRANSB=<optimized out>, M=0x7fffbf7f0e48, N=<optimized out>, K=0x7fffbf7f0968, ALPHA=0x7fff68f4da28, A=<optimized out>, LDA=0x7fffbf7f0e48, B=0x7fffbf7f5730, LDB=0x7fffbf7f0e48, BETA=0x7fff68f4da20, C=0x7fffbf7f92b0, LDC=0x7fffbf7f0e48)
    at <workspace>/build/qpoases-src/src/BLASReplacement.cpp:49
#2  0x00007fff68c582b5 in dtrevc3_ () at /lib/x86_64-linux-gnu/liblapack.so.3
#3  0x00007fff68b1bf12 in dgeev_ () at /lib/x86_64-linux-gnu/liblapack.so.3
#4  0x00007fff7079c67d in IKSolver::solvedialyticpoly8qep(double const*, double*, int&)
    (matcoeffs=0x7fffbf7fa350, rawroots=0x7fffbf7fa1d0, numroots=@0x7fffbf7f9b00: 0)
    at ...robot_ikfast.hpp:7282
#5  0x0000000000000000 in  ()
@rjoomen
Copy link
Contributor

rjoomen commented Feb 7, 2024

@Levi-Armstrong
Copy link
Contributor Author

It has been confirmed that if you delete the qpoases directory from trajopt_ext and clean rebuild the issue goes away.

@rjoomen
Copy link
Contributor

rjoomen commented Feb 19, 2024

For reference: qpOASES is properly linked as private here.

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

2 participants