ANYbotics / grid_map

Universal grid map library for mobile robotic mapping
BSD 3-Clause "New" or "Revised" License
2.54k stars 795 forks source link

Segmentation fault on ARM due to oversized Eigen matrix #100

Open MariusHuber opened 7 years ago

MariusHuber commented 7 years ago

Elevation mapping throws std::bad_alloc() as soon as the map is supposed to be moved. Adding point clouds to a map fixed in position works.

The underlying problem is probably in grid_maps, namely in EllipseIterator.cpp:32.

See https://github.com/ethz-asl/elevation_mapping/issues/42 for details.

tombrodie commented 7 years ago

I have managed to solve this problem by going through the grid_map_core package and initialising any variable of type Index (I also did it for uninitialised variables of type Position just in case), for example:

Index submapStartIndex; submapStartIndex.setZero();

This exists in files outside the EllipseIterator.cpp although I could not say if other uninitialised declarations were the cuplrit.