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

assert(dot <= 0) failed #3

Open
barcode opened this issue Jul 5, 2019 · 0 comments
Open

assert(dot <= 0) failed #3

barcode opened this issue Jul 5, 2019 · 0 comments

Comments

@barcode
Copy link

barcode commented Jul 5, 2019

I encountered a pretty similar issue to #1.
I was able to narrow it down to eight elements (as soon as i remove any of those, the segfault does not occur ) and i am only using SO3.

Points (w, x, y, z):

0.662702f, 0.219097f, 0.211232f, 0.684254f
0.658478f, 0.256881f, 0.256784f, 0.659152f
0.658478f, 0.256881f, 0.256784f, 0.659152f
0.641592f, -0.290111f, 0.286126f, -0.649867f
0.644836f, -0.274049f, 0.267667f, -0.661391f
0.642503f, -0.279932f, 0.273478f, -0.658816f
0.642491f, -0.290219f, 0.287658f, -0.648252f
0.644836f, -0.27405f, 0.267667f, -0.661391f
0.642443f, -0.290327f, 0.287766f, -0.648203f

Example code:
https://gist.github.com/barcode/f417a76916cbfe0582fccde9238f2971

I compile with

 /usr/bin/g++-8  -I/tmp/nigh/src -I/usr/include/eigen3  -g   -std=c++2a -o nigh_segfault.cpp.o -c nigh_segfault.cpp

Compiler version:

g++-8 (Ubuntu 8.3.0-6ubuntu1~18.04.1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Error:

kdtree_batch/traversal_so3.hpp:171: unc::robotics::nigh::impl::kdtree_batch::Traversal<Tree, Key, unc::robotics::nigh::metric::SO3, Get>::Node* unc::robotics::nigh::impl::kdtree_batch::Traversal<Tree, Key, unc::robotics::nigh::metric::SO3, Get>::split(Tree&, const Space&, unc::robotics::nigh::impl::kdtree_batch::Traversal<Tree, Key, unc::robotics::nigh::metric::SO3, Get>::Leaf*, const Key&, unsigned int, Traversal&) [with Traversal = unc::robotics::nigh::impl::kdtree_batch::Traversal<unc::robotics::nigh::Nigh<long unsigned int, unc::robotics::nigh::metric::Space<Eigen::Quaternion<float>, unc::robotics::nigh::metric::SO3, void>, const test_ori()::<lambda(std::size_t)>, unc::robotics::nigh::NoThreadSafety, unc::robotics::nigh::KDTreeBatch<> >, Eigen::Quaternion<float>, unc::robotics::nigh::metric::SO3, unc::robotics::nigh::impl::RootGet>; Tree = unc::robotics::nigh::Nigh<long unsigned int, unc::robotics::nigh::metric::Space<Eigen::Quaternion<float>, unc::robotics::nigh::metric::SO3, void>, const test_ori()::<lambda(std::size_t)>, unc::robotics::nigh::NoThreadSafety, unc::robotics::nigh::KDTreeBatch<> >; Key = Eigen::Quaternion<float>; Get = unc::robotics::nigh::impl::RootGet; unc::robotics::nigh::impl::kdtree_batch::Traversal<Tree, Key, unc::robotics::nigh::metric::SO3, Get>::Node = unc::robotics::nigh::impl::kdtree_batch::Node<long unsigned int, unc::robotics::nigh::metric::Space<Eigen::Quaternion<float>, unc::robotics::nigh::metric::SO3, void>, unc::robotics::nigh::NoThreadSafety>; unc::robotics::nigh::impl::kdtree_batch::Traversal<Tree, Key, unc::robotics::nigh::metric::SO3, Get>::Space = unc::robotics::nigh::metric::Space<Eigen::Quaternion<float>, unc::robotics::nigh::metric::SO3, void>; unc::robotics::nigh::impl::kdtree_batch::Traversal<Tree, Key, unc::robotics::nigh::metric::SO3, Get>::Leaf = unc::robotics::nigh::impl::kdtree_batch::Leaf<long unsigned int, unc::robotics::nigh::metric::Space<Eigen::Quaternion<float>, unc::robotics::nigh::metric::SO3, void>, unc::robotics::nigh::NoThreadSafety, 8>]: Assertion `dot <= 0' failed.
Aborted (core dumped)
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

1 participant