Project-OSRM / osrm-backend

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

NodeJS binding start error on Windows #6946

Open csotiMatyas opened 3 weeks ago

csotiMatyas commented 3 weeks ago

Because the fragmentation experienced in my other bug report : https://github.com/Project-OSRM/osrm-backend/issues/6942 ; I wanted to try out the NodeJS binding, on windows 10, on a bigger scale than a single country. But after merging uk and france-latest, when starting an OSRM instance, im getting the following error:

TypeError: I/O error occurred: ./data/merged-uk-france.osrm.cell_metrics : /mld/metrics/routability/exclude/3/weights (possible cause: "Invalid argument") (at include\storage/tar.hpp:53)
    at Object.<anonymous> (C:\Users\Gizi\Desktop\web_dev\Test\OSRM\index.js:4:17)
    at Module._compile (node:internal/modules/cjs/loader:1196:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
    at Module.load (node:internal/modules/cjs/loader:1074:32)
    at Function.Module._load (node:internal/modules/cjs/loader:909:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:22:47
PS C:\Users\Gizi\Desktop\web_dev\Test\OSRM>

This only happens with merged countries, I tried uk,france,romania-latest, and separately they work as expected. I used osmium on Mac to merge, osmosis on windows, then osmium on windows for the 3rd merge. Question: is that normal that all 3 had different size?

Im going to try the CH algorithm as well, will be back with a response.

The same thing happens with CH algorithm as well. ( extract -> contract )

DennisOSRM commented 3 weeks ago

Looks like the resulting OSM file is somehow inconsistent

csotiMatyas commented 3 weeks ago

@DennisOSRM I extracted the file, im looking at what is inside but superficially looks OK, and the same the as parts, every file is the same size, every meta file is the same size, can I inspect this weights file and diff with the uk and france latests weights ?

csotiMatyas commented 3 weeks ago

I merged romania and hungary, it works as expected. What could be the problem with merging france and uk ?