docker icon indicating copy to clipboard operation
docker copied to clipboard

incorrect size for type - 21gb file size

Open benpetsch opened this issue 7 years ago • 2 comments

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

benpetsch avatar Feb 23 '18 17:02 benpetsch

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).

kevinkreiser avatar Feb 23 '18 18:02 kevinkreiser

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

aparnagottumukkala avatar Mar 06 '20 03:03 aparnagottumukkala