ADVRHumanoids / CartesianInterface

Package for generic cartesian control of floating base robots. It includes a ROS-based front end, as well as a programmatic API that can be used inside a real-time loop.
GNU General Public License v3.0
20 stars 1 forks source link

Cartesian Interface Solver segmentation fault #74

Closed lia2790 closed 2 years ago

lia2790 commented 2 years ago

Hi @liesrock @alaurenzi ,

I have updated all my Linux to ubuntu 20.04 from scratch and re-install all.

Now, I occur a segmentation fault in a point on the code which did not happen before. In particular, when I call

https://github.com/ADVRHumanoids/VariableImpedanceModulation/blob/3658daa515208d9f7dca29c30ba12593068d507c/utils/cartesio.cpp#L137

I also run the code with gdb and I obtain


Thread 3 "nrt_control" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff3efd700 (LWP 36665)]
0x00007ffff1842078 in std::_Hashtable<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, XBot::VariableBuffer>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, XBot::VariableBuffer> >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::_M_find_before_node(unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long) const () from /usr/local/lib/libmatlogger2.so.1.0.1
(gdb) 

How could I fix it?

thank you!

lia2790 commented 2 years ago

So, here I have wrongly installed libmatlogger2. I had two versions on my pc, the one installed automatically with xbot2 and one installed through the binaries where the last one installed the library inside the directory /usr/local/lib/ which actually originated that issue.

Then, thanks a lot to @liesrock we fixed all removing the version installed through the binaries and everything worked as the same.

Thank you again.

Solved.