You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Excellent catch! You're absolutely right and #364 has been opened to fix this.
Luckily these serialized nav graphs were only being transmitted to the nav graph visualizer, so the serialized entry/exit events were never being used and weren't risking any misbehavior except for this crash. On the other hand, the lack of misbehavior is why this went for so long without being noticed.
Before proceeding, is there an existing issue or discussion for this?
OS and version
Ubuntu 22.04
Open-RMF installation type
Source build
Other Open-RMF installation methods
No response
Open-RMF version or commit hash
main
ROS distribution
Humble
ROS installation type
Source build
Other ROS installation methods
No response
Package or library, if applicable
No response
Description of the bug
There is a typo/bug at convert_Graph.cpp line 909 : entry_event->execute(factory);
The entry_event here should be exit_event.
It crashed when entry_event is nullptr.
Steps to reproduce the bug
const YAML::Node& lanes = level.second["lanes"];
for (const auto& lane : lanes)
{
std::size_t begin = lane[0].as<std::size_t>();
std::size_t end = lane[1].as<std::size_t>();
rmf_utils::clone_ptr<Event> entry_event;
rmf_utils::clone_ptr<Event> exit_event;
exit_event = Event::make(Lane::Dock(dock_name, duration));
graph.add_lane( {begin, entry_event}, {end, exit_event});
}
fleet adapter will crash at convert_Graph.cpp at line 909
It crashed because the entry_event is nullptr.
So, the entry_event here should be exit_event.
Expected behavior
No response
Actual behavior
No response
Additional information or screenshots
No response
The text was updated successfully, but these errors were encountered: