control-toolbox icon indicating copy to clipboard operation
control-toolbox copied to clipboard

TermTaskSpaceCG segfaults when compiled with -DCMAKE_BUILD_TYPE=Debug

Open markusgft opened this issue 5 years ago • 1 comments

It works fine with -DCMAKE_BUILD_TYPE=Relwithdebinfo and Release.

  • probably coming from DerivativesJIT

markusgft avatar May 18 '19 06:05 markusgft

something like this would fail, for state-dim 12. See line 420 onwards Eigen::Matrix<CGScalar, 12, 1> test = x.head(STATE_DIM);

FixBaseIKTest: /usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:258: void Eigen::PlainObjectBase<Eigen::Matrix<CppAD::AD<CppAD::cg::CG<double> >, 12, 1, 0, 12, 1> >::resize(Index, Index) [Derived = Eigen::Matrix<CppAD::AD<CppAD::cg::CG<double> >, 12, 1, 0, 12, 1>]: Assertion `(!(RowsAtCompileTime!=Dynamic) || (rows==RowsAtCompileTime)) && (!(ColsAtCompileTime!=Dynamic) || (cols==ColsAtCompileTime)) && (!(RowsAtCompileTime==Dynamic && MaxRowsAtCompileTime!=Dynamic) || (rows<=MaxRowsAtCompileTime)) && (!(ColsAtCompileTime==Dynamic && MaxColsAtCompileTime!=Dynamic) || (cols<=MaxColsAtCompileTime)) && rows>=0 && cols>=0 && "Invalid sizes when resizing a matrix or array."' failed.
Aborted (core dumped)

markusgft avatar May 24 '19 16:05 markusgft