ndt_scan_matcher sometimes crashes when performing dynamic_map_loading #5973
Labels
component:localization
Vehicle's position determination in its environment. (auto-assigned)
status:stale
Inactive or outdated issues. (auto-assigned)
type:bug
Software flaws or errors.
Checklist
Description
The ndt_scan_matcher occasionally crashes when performing dynamic_map_loading. This seems to be related to memory corruption caused by a data race, leading to intermittent and varied error messages.
Typical Error Log:
Since this is caused by memory corruption due to a data race, it may fall as a different error.
Expected behavior
The ndt_scan_matcher should operate without crashing.
Actual behavior
The ndt_scan_matcher crashes with low probability.
Steps to reproduce
This problem is more likely to occur when dynamic map loading and pose estimation by NDT are performed at the same time.
Therefore, the config example to reproduce is
This will make it easier to reproduce.
Versions
Possible causes
See #5951
Additional context
This issue has been fixed in the pull request below.
#5951
However, there is a problem that the mutex locking time is long (about 20msec to 40msec) when loading a dynamic map, so we plan to improve it in the future.
The text was updated successfully, but these errors were encountered: