Skip to content

osrm-extract should error on invalid OSM data files #1596

@danpat

Description

@danpat

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions