DennisOSRM/Project-OSRM — Issue #88: problems using simple .osm test file
Author: emiltin
Created: 2012-01-22 13:40:19+00:00
State: open

i'm trying to get osrm to work with a small manually created .osm file, with the purpose of bulding a test suite based on a small, well-known dataset.

but sometimes the extractor fails with a seg fault 11, and routed hangs when handling requests.

1. manually create a small .osm file

2. use osmosis to convert it from .osm to .osm.pbf:
osmosis --read-xml test.osm --write-pbf test.osm.pbf omitmetadata=true

3. extract:
osrm-extract test.osm.pbf

4. prepare:
osrm-prepare test.osrm test.osrm.restrictions #this step sometimes fails with segfault 11

5. request a route:
http://localhost:5000/viaroute&start=55.5,12,5&dest=55.52,12,5&output=json&geomformat=cmp #routed hangs here

this is what my .osm file looks like. i created it manaully using a text editor. it consists of 3 nodes, connected by two ways. it opens and looks fine on JOSM: