We erroneously generated a .osm file that was missing <node> tags that were referred to by some <way>s.
Unfortunately, this took a little while to debug, because osrm-extract processed the file happily, but osrm-prepare segfaults partway through processing. With a debug build, osrm-prepare throws this assertion:
https://github.com/Project-OSRM/osrm-backend/blob/develop/algorithms/graph_compressor.cpp#L85
which is unsurprising, because there are a bunch of nodes missing.
We should catch this in the extractor and error out with a useful message if the original input graph is invalid.
We erroneously generated a
.osmfile that was missing<node>tags that were referred to by some<way>s.Unfortunately, this took a little while to debug, because
osrm-extractprocessed the file happily, butosrm-preparesegfaults partway through processing. With a debug build,osrm-preparethrows this assertion:https://github.com/Project-OSRM/osrm-backend/blob/develop/algorithms/graph_compressor.cpp#L85
which is unsurprising, because there are a bunch of nodes missing.
We should catch this in the extractor and error out with a useful message if the original input graph is invalid.