CostmapPluginROS fails to start with null string error [closed]

asked 2014-03-12 00:28:11 -0500

madmax gravatar image

updated 2016-10-24 08:36:20 -0500

ngrennan gravatar image

I am having trouble starting the layered costmaps.
When starting the constructor of Costmap2DROS, execution fails at this plugin_loader_("costmap_2d", "costmap_2d::CostmapPluginROS") point.

loader:
pluginlib::ClassLoader<CostmapPluginROS> plugin_loader_;

In the valgrind log it says a string is null?
But there is no other string than the ones of the plugin_loader_.

I am on ROS Fuerte, 12.04

How can this happen? And how can I debug this?

--59282-- REDIR: 0x7abb610 (realloc) redirected to 0x4c2b730 (realloc)
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid
==59282==
==59282== Process terminating with default action of signal 6 (SIGABRT)
==59282==    at 0x7A6E425: raise (raise.c:64)
==59282==    by 0x7A71B8A: abort (abort.c:91)
==59282==    by 0x70C069C: __gnu_cxx::__verbose_terminate_handler() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
==59282==    by 0x70BE845: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
==59282==    by 0x70BE872: std::terminate() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
==59282==    by 0x70BE96D: __cxa_throw (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
==59282==    by 0x706B786: std::__throw_logic_error(char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
==59282==    by 0x70A9508: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_
iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
==59282==    by 0x70A95E2: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<
char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
==59282==    by 0x52A2007: pluginlib::ClassLoader<costmap_2d::CostmapPluginROS>::determineAvailableClasses() (in /home/ros/navigation/costmap_2d/lib/libcostmap_2d.so)
==59282==    by 0x529A689: costmap_2d::Costmap2DROS::Costmap2DROS(std::string, tf::TransformListener&) (in /home/ros/navigation/costmap_2d/lib/libcostmap_2d.so)
==59282==    by 0x53706A: move_base::MoveBase::MoveBase(std::string, tf::TransformListener&) (move_base.cpp:129)
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by David Lu
close date 2014-05-17 11:40:58

Comments

What branch of the code are you running? Are you still having this problem?

David Lu gravatar imageDavid Lu ( 2014-05-14 08:59:41 -0500 )edit

No, I solved the problem. Think it was a wrong branch.

madmax gravatar imagemadmax ( 2014-05-16 23:40:42 -0500 )edit