rviz crash: Duration is out of dual 32-bit range

asked 2018-01-15 06:29:54 -0600

Markus Bader gravatar image

updated 2021-10-21 10:12:20 -0600

lucasw gravatar image

Hi

I have two computers connect via ethernet one is publishing sensor_msgs/LaserScan and the other one views the data using rviz. But rviz crashes (not always) if I try to visualize the laser scan data with the following msg.

terminate called after throwing an instance of 'std::runtime_error' what(): Duration is out of dual 32-bit range

On the publisher I am filling the header time by using ros::Time::now(). It doesn't matter which computer runns the roscore.

edit retag flag offensive close merge delete

Comments

Quick check: are clocks synchronised between both machines?

gvdhoorn gravatar image gvdhoorn  ( 2018-01-15 06:38:27 -0600 )edit

I syncronized now both computers running on the one with the roscore an ntp server and on the other an ntp client with the same result. It seams to work more often but still with crashes on some startups

Markus Bader gravatar image Markus Bader  ( 2018-01-16 07:45:45 -0600 )edit

It was just something to check, not necessarily the cause of things.

Recommended tool is chrony btw (see: Timing issues, TF complaining about extrapolation into the future?.

gvdhoorn gravatar image gvdhoorn  ( 2018-01-16 07:47:38 -0600 )edit