developmentseed / developmentseed/moz-datapipeline
OSRM contract failing with (Error: Unknown error. Code: 139)
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
osrm-contract fails when running for the upgraded ways, if the speed is set to a low value. A value of `2.5` will cause it to fail without much information:
```
[info] Input file: /data/.tmp/workdir/eaul-work-21926/osrm-flood-10/roadnetwork.osrm
[info] Threads: 4
[info] Reading node weights.
[info] Done reading node weights.
[info] Loading edge-expanded graph representation
[info] Loaded /data/.tmp/workdir/eaul-work-21926/speed-10.csv with 573690values
[info] In total loaded 1 file(s) with a total of 573690 unique values
[warn] Clamping segment weight 13028925 to 4194302
[warn] Clamping segment weight 6128872 to 4194302
[warn] Clamping segment weight 5741849 to 4194302
[warn] Clamping segment weight 13028925 to 4194302
[warn] Clamping segment weight 6128872 to 4194302
[warn] Clamping segment weight 5741849 to 4194302
[info] Used 4035426 speeds from LUA profile or input map
[info] Used 573690 speeds from /data/.tmp/workdir/eaul-work-21926/speed-10.csv
[warn] Speed values were used to update 573690 segments for 'ruc' profile
[info] Updating segment data took 445.327ms.
[info] In total loaded 0 file(s) with a total of 0 unique values
[info] Done reading edges in 946.921ms.
[info] merged 8 edges out of 5482
[info] initializing node priorities... ok.
[info] preprocessing 1668 (100%) nodes...
[info] . 10% . 20% .
```
This doesn't happen if the speed value is higher.
When the actual `ruc` calculation is implemented check if the error persists. If it does a solution would be to use a multiplier which would then be removed when we get the value back.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.