Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.34k stars 3.36k forks source link

foot.lua runtime error on latest develop branch #617

Closed elpaso closed 9 years ago

elpaso commented 11 years ago

Hi,

I'm working on italy-latest.osm.pbf from grofabrik, I checked out osrm develop branch yesterday and it fails with:

[info Extractor/BaseParser.cpp:40] Ignoring turn restrictions [info Extractor/BaseParser.cpp:53] Found 1 exceptions to turn restriction [info Extractor/BaseParser.cpp:55] foot [info extractor.cpp:107] Parsing in progress.. -- ...ia/public_html/Project-OSRM/custom_profiles/foot.lua:133: attempt to perform arithmetic on global 'numberOfNodesInWay' (a nil value) [error Extractor/BaseParser.cpp:93] lua runtime error [info createHierarchy.cpp:78] Using restrictions from file: italy.osrm.restrictions

commenting out the offending division by zero solves the problem (I don't need ferries right now ;) .

emiltin commented 11 years ago

the foot profile could use more attention

DennisOSRM commented 9 years ago

should be fixed by now as the walking profile is deployed in production (not on the demo site).