Open tommybee-dev opened 3 weeks ago
Hi, Finally, I found the point where the access violation from since I am trying to dig the code in the restriction_graph.cpp.
// Also add any restric
// tions from suffix paths to the current node in the
// restriction graph.
for (const auto &restriction : rg.GetRestrictions(suffix_node))
{
insertRestriction(rg, cur_node, restriction);
}
I changed the original code in the next function above as followed:
// Also add any restric
// tions from suffix paths to the current node in the
// restriction graph.
RestrictionGraph::RestrictionRange range1 = rg.GetRestrictions(suffix_node);
for (int i = 0; i < range1.size(); i++)
{
const auto &restriction = range1[i];
insertRestriction(rg, cur_node, restriction);
}
I think the problem is clear that the range has the same memory begin and end. But I still don't know why this problem gonna happened.
Anyone can get me go further will be appreciated.
Thanks.
Discussed in https://github.com/Project-OSRM/osrm-backend/discussions/6932