Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osrm-extract hangs on generating edge-expanded edges #2927

Closed
sandra-thieme opened this issue Sep 16, 2016 · 5 comments
Closed

osrm-extract hangs on generating edge-expanded edges #2927

sandra-thieme opened this issue Sep 16, 2016 · 5 comments
Assignees
Milestone

Comments

@sandra-thieme
Copy link
Contributor

We're currently trying to use osrm-extract on the following map: http://download.geofabrik.net/europe-latest.osm.pbf.

However, osrm-extract seems to stop on the generating edge-expanded edges step:

...
[extractor] writing street name index ... ok, after 0.537011s
[info] Writing turn lane masks...
[info] done (0.000127)
[info] extraction finished after 4976.04s
[info] Generating edge-expanded graph representation
[info]  - 341223 restrictions.
[info] Importing n = 382120223 nodes 
[info]  - 1094928 bollard nodes, 294824 traffic lights
[info]  and 402322465 edges 
[info] Graph loaded ok and has 402322465 edges
. 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
[info] Node compression ratio: 0.17176
[info] Edge compression ratio: 0.213348
. 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
[info] Generated 402321631 nodes in edge-expanded graph
[info] generating edge-expanded edges

It's been like this for several hours now, usually it completes within one to two hours. It also doesn't seem to do much: load avergae is 1.00, only one CPU seems to be used.

This happens with a current master build (commit aa5f8dc), stxxl v1.3.1 on a CentOS 7.2.1511 box.

This was fine with the build we used before this one (master d3a6b5a)

Might be related to #2852?

@daniel-j-h
Copy link
Member

Thanks for reporting.

Looks related to turn analysis being stuck in a loop. @MoKob can you have a look on Monday?

@rkcpi what you already can do is attach gdb to the running process and manually do some sampling: break and note the function you're in. I guess this works best with debug symbols:

cmake .. -DCMAKE_BUILD_TYPE=Debug

This way you should be able to localize where the loop is happening exactly.

@daniel-j-h daniel-j-h added this to the 5.4.0 milestone Sep 16, 2016
@MoKob
Copy link

MoKob commented Sep 19, 2016

I will look into it. Just on a side-note: the "[info] generating edge-expanded edges" is sequential, so having only one CPU at work is expected.

@MoKob
Copy link

MoKob commented Sep 19, 2016

We just merged a fix that should, hopefully solve the hang you are expecting. Can you report back and close here, if the newest master solves your problem?

@djschilling
Copy link

Thanks for the fast fix. We will test and report if this fixes the issue for us.

@djschilling
Copy link

djschilling commented Sep 19, 2016

I just successfully preprocessed the europe map(http://download.geofabrik.net/europe-latest.osm.pbf) with the current master version.

Thanks for fixing the bug. The issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants