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

Rviz 1.10.3 crashes when displaying nav_msgs::GridCells #675

Closed
mikegao88 opened this issue Aug 22, 2013 · 2 comments
Closed

Rviz 1.10.3 crashes when displaying nav_msgs::GridCells #675

mikegao88 opened this issue Aug 22, 2013 · 2 comments

Comments

@mikegao88
Copy link

I use ros hydro and ubuntu 12.04 32bit. I have tested with rviz 1.10.2, and everything is right. The test codes are:

{

nav_msgs::GridCells histogram_cells;

histogram_cells.cell_width = 0.1;

histogram_cells.cell_height = 0.1;

histogram_cells.header.frame_id = robot_base_frame;

histogram_cells.header.stamp = ros::Time::now();

histogram_cells.cells.clear();

for(int i = -5; i <= 5; i++){
for(int j = -5; j <= 5; j++){
geometry_msgs::Point point;
point.x = (float)i;
point.y = (float)j;
point.z = 0;
histogram_cells.cells.push_back(point);
}
}

cellspub_.publish(histogram_cells);

}

The backtrace records of the core dump file with the debug information are:

Program terminated with signal 11, Segmentation fault.
#0 0xb75e5daa in rviz::PointCloud::addPoints (this=0xacf78798, points=0x9a72340, num_points=121) at /home/gao_ming/Workspace/catkin_ws/src/rviz/src/rviz/ogre_helpers/point_cloud.cpp:577

577 *fptr++ = x;
(gdb) bt
#0 0xb75e5daa in rviz::PointCloud::addPoints (this=0xacf78798, points=0x9a72340, num_points=121) at /home/gao_ming/Workspace/catkin_ws/src/rviz/src/rviz/ogre_helpers/point_cloud.cpp:577
#1 0xa737fdf6 in rviz::GridCellsDisplay::incomingMessage (this=0x9755e88, msg=...) at /home/gao_ming/Workspace/catkin_ws/src/rviz/src/rviz/default_plugin/grid_cells_display.cpp:240
#2 0xa738d7ad in boost::_mfi::mf1<void, rviz::GridCellsDisplay, boost::shared_ptr<nav_msgs::GridCells_std::allocator const> const&>::operator() (this=0x989f64c, p=0x9755e88, a1=...)

at /usr/include/boost/bind/mem_fn_template.hpp:165

#3 0xa738c21a in boost::_bi::list2boost::_bi::value<rviz::GridCellsDisplay*, boost::arg<1> >::operator()<boost::_mfi::mf1<void, rviz::GridCellsDisplay, boost::shared_ptr<nav_msgs::GridCells_std::allocator const> const&>, boost::_bi::list1<boost::shared_ptr<nav_msgs::GridCells_std::allocator const> const&> > (this=0x989f654, f=..., a=...) at /usr/include/boost/bind/bind.hpp:313
#4 0xa738b01f in boost::_bi::bind_t<void, boost::_mfi::mf1<void, rviz::GridCellsDisplay, boost::shared_ptr<nav_msgs::GridCells_std::allocator const> const&>, boost::_bi::list2boost::_bi::value<rviz::GridCellsDisplay*, boost::arg<1> > >::operator()<boost::shared_ptr<nav_msgs::GridCells_std::allocator const> > (this=0x989f64c, a1=...) at /usr/include/boost/bind/bind_template.hpp:47
#5 0xa7389973 in boost::detail::function::void_function_obj_invoker1<boost::_bi::bind_t<void, boost::mfi::mf1<void, rviz::GridCellsDisplay, boost::shared_ptr<nav_msgs::GridCells<std::allocator > const> const&>, boost::_bi::list2boost::_bi::value<rviz::GridCellsDisplay*, boost::arg<1> > >, void, boost::shared_ptr<nav_msgs::GridCells_std::allocator const> const&>::invoke (

function_obj_ptr=..., a0=...) at /usr/include/boost/function/function_template.hpp:153

#6 0xa738c336 in boost::function1<void, boost::shared_ptr<nav_msgs::GridCells_<std::allocator > const> const&>::operator() (this=0x989f648, a0=...)

at /usr/include/boost/function/function_template.hpp:1013

#7 0xa738b118 in boost::detail::function::void_function_obj_invoker1<boost::function<void (boost::shared_ptr<nav_msgs::GridCells_<std::allocator > const> const&)>, void, boost::shared_ptr<nav_msgs::GridCells_<std::allocator > const> >::invoke(boost::detail::function::function_buffer&, boost::shared_ptr<nav_msgs::GridCells_<std::allocator > const>) (function_obj_ptr=..., a0=...)

at /usr/include/boost/function/function_template.hpp:153

#8 0xa7390cb4 in boost::function1<void, boost::shared_ptr<nav_msgs::GridCells_<std::allocator > const> >::operator() (this=0x989f634, a0=...)

at /usr/include/boost/function/function_template.hpp:1013

#9 0xa73906bf in message_filters::CallbackHelper1Tboost::shared_ptr<nav_msgs::GridCells_<std::allocator const> const&, nav_msgs::GridCells_std::allocator >::call (this=0x989f630,

event=..., nonconst_force_copy=true) at /opt/ros/hydro/include/message_filters/signal1.h:76

#10 0xa7388bbe in message_filters::Signal1<nav_msgs::GridCells_<std::allocator > >::call (this=0x9a9acf4, event=...) at /opt/ros/hydro/include/message_filters/signal1.h:119
#11 0xa738563a in message_filters::SimpleFilter<nav_msgs::GridCells_<std::allocator > >::signalMessage (this=0x9a9acf4, event=...) at /opt/ros/hydro/include/message_filters/simple_filter.h:135
#12 0xa7387983 in tf::MessageFilter<nav_msgs::GridCells_<std::allocator > >::testMessage (this=0x9a9acf0, evt=...) at /opt/ros/hydro/include/tf/message_filter.h:403
#13 0xa73864b3 in tf::MessageFilter<nav_msgs::GridCells_<std::allocator > >::testMessages (this=0x9a9acf0) at /opt/ros/hydro/include/tf/message_filter.h:427
#14 0xa73841f9 in tf::MessageFilter<nav_msgs::GridCells_<std::allocator > >::add (this=0x9a9acf0, evt=...) at /opt/ros/hydro/include/tf/message_filter.h:252
#15 0xa73823d4 in tf::MessageFilter<nav_msgs::GridCells_<std::allocator > >::incomingMessage (this=0x9a9acf0, evt=...) at /opt/ros/hydro/include/tf/message_filter.h:456
#16 0xa738ecff in boost::mfi::mf1<void, tf::MessageFilter<nav_msgs::GridCells_std::allocator >, ros::MessageEvent<nav_msgs::GridCells<std::allocator > const> const&>::operator() (

this=0x9756160, p=0x9a9acf0, a1=...) at /usr/include/boost/bind/mem_fn_template.hpp:165

#17 0xa738d576 in boost::_bi::list2<boost::bi::value<tf::MessageFilter<nav_msgs::GridCells_std::allocator >*>, boost::arg<1> >::operator()<boost::mfi::mf1<void, tf::MessageFilter<nav_msgs::GridCells<std::allocator > >, ros::MessageEvent<nav_msgs::GridCells<std::allocator > const> const&>, boost::_bi::list1<ros::MessageEvent<nav_msgs::GridCells_std::allocator const> const&> > (this=0x9756168, f=..., a=...) at /usr/include/boost/bind/bind.hpp:313
#18 0xa738c0e9 in boost::_bi::bind_t<void, boost::mfi::mf1<void, tf::MessageFilter<nav_msgs::GridCells_std::allocator >, ros::MessageEvent<nav_msgs::GridCells<std::allocator > const> const&>, boost::_bi::list2<boost::bi::value<tf::MessageFilter<nav_msgs::GridCells_std::allocator >*>, boost::arg<1> > >::operator()ros::MessageEvent<nav_msgs::GridCells<std::allocator const> > (this=0x9756160, a1=...) at /usr/include/boost/bind/bind_template.hpp:47
#19 0xa738ae55 in boost::detail::function::void_function_obj_invoker1<boost::bi::bind_t<void, boost::mfi::mf1<void, tf::MessageFilter<nav_msgs::GridCells<std::allocator > >, ros::MessageEvent<nav_msgs::GridCells<std::allocator > const> const&>, boost::bi::list2<boost::bi::value<tf::MessageFilter<nav_msgs::GridCells_std::allocator >*>, boost::arg<1> > >, void, ros::MessageEvent<nav_msgs::GridCells<std::allocator > const> const&>::invoke (function_obj_ptr=..., a0=...) at /usr/include/boost/function/function_template.hpp:153
#20 0xa739095c in boost::function1<void, ros::MessageEvent<nav_msgs::GridCells
<std::allocator > const> const&>::operator() (this=0x975615c, a0=...)

at /usr/include/boost/function/function_template.hpp:1013

Thanks!

@dgossow
Copy link
Member

dgossow commented Aug 27, 2013

Probably a regression caused by 2405303

@dgossow
Copy link
Member

dgossow commented Sep 5, 2013

This should be fixed. See #676

@dgossow dgossow closed this as completed Sep 5, 2013
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

2 participants