CostmapPluginROS fails to start with null string error [closed]

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

madmax gravatar image

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

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.

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== 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/
==59282==    by 0x70BE845: ??? (in /usr/lib/x86_64-linux-gnu/
==59282==    by 0x70BE872: std::terminate() (in /usr/lib/x86_64-linux-gnu/
==59282==    by 0x70BE96D: __cxa_throw (in /usr/lib/x86_64-linux-gnu/
==59282==    by 0x706B786: std::__throw_logic_error(char const*) (in /usr/lib/x86_64-linux-gnu/
==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/
==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/
==59282==    by 0x52A2007: pluginlib::ClassLoader<costmap_2d::CostmapPluginROS>::determineAvailableClasses() (in /home/ros/navigation/costmap_2d/lib/
==59282==    by 0x529A689: costmap_2d::Costmap2DROS::Costmap2DROS(std::string, tf::TransformListener&) (in /home/ros/navigation/costmap_2d/lib/
==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


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

David Lu gravatar image David Lu  ( 2014-05-14 08:59:41 -0600 )edit

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

madmax gravatar image madmax  ( 2014-05-16 23:40:42 -0600 )edit