valhalla / docker

docker
MIT License
17 stars 22 forks source link

incorrect size for type - 21gb file size #33

Open benpetsch opened 6 years ago

benpetsch commented 6 years ago

Tried to parse 21gb europe.osm.pbf

ends with error:

2018/02/23 13:22:21.742922 [WARN] Non-empty /data/valhalla/2 will be purged of tiles
2018/02/23 13:22:22.961088 [INFO] Parsing files: d
2018/02/23 15:44:04.893466 [INFO] Finished with 51415903 routable ways containing 514
2018/02/23 15:59:05.821170 [INFO] Finished with 51415903 routable ways containing 514441587 nodes
2018/02/23 15:59:05.821202 [INFO] Sorting
2018/02/23 16:14:29.174705 [INFO] Finished with 440142 simple restrictions
2018/02/23
2018/02/23 16:29:51.573276 [INFO] Finished with 440142 simple restrictions
2018/02/23 16:29:51.573367 [INFO] Finished with 4 lane connections
2018/02/23 16:29:51.581615 [INFO] Sorting complex restrictions by from id...
2018/02/23 16:29:51.594421 [INFO] Sorting osm way node references by node id...
terminate called after throwing an instance of 'std::runtime_error'
  what():  This file has an incorrect size for type
kevinkreiser commented 6 years ago

did you run out of space on the device? that error happens you try to memory map a file and the files size doesnt match the size of the objects that should be in the file (ie the size isnt a multple of the objects that should be in there).

aparnagottumukkala commented 4 years ago

how to pass custom osm.pbf file from github, valhalla.json(newly generated is not giving the output so i have custom json for the pbf file) to this dockerfile