segmentation fault while preparing
While running osrm-prepare I get a core dump.
Running in debug gives me the following
/osrm/osrm7/BIKING$ osrm-prepare full.osrm -p /home/ubuntu/osm-tools/osrm/profiles/bicycle.lua [info] Input file: full.osrm [info] Restrictions file: full.osrm.restrictions [info] Profile: bicycle.lua [info] Threads: 16 [debug] traffic_signal_penalty: 50 [info] Importing n = 383735439 nodes [info] and 419012844 edges [info] Graph loaded ok and has 418560253 edges [info] 0 restrictions, 188357 bollard nodes, 399407 traffic lights [info] Generating edge-expanded graph representation [info] merged 0 edges out of 806319922 [info] Removing graph geometry while preserving topology osrm-prepare: /home/ubuntu/osm-tools/osrm/contractor/edge_based_graph_factory.cpp:382: void EdgeBasedGraphFactory::CompressGeometry(): Assertion `m_node_based_graph->GetEdgeData(forward_e1).nameID == m_node_based_graph->GetEdgeData(reverse_e1).nameID' failed. Aborted (core dumped)
full.osrm was created by downloading about 50 pbf maps from geofabrik; converting them to .o5m; merging them with osm-convert and converting the result to pbf again. osrm-extract run without error.
Using the car and foot profile works fine.
This is on version 4.6.1
Any suggestions on how to solve this?
Thx!
Can you try 4.7.0?
383735439 nodes is a lot. what size is the input file?
I’m currently re-running with 4.7.0. It will take some time since the previous version cracked after 6 hours of processing
Thx
On 29 Jun 2015, at 09:21, Patrick Niklaus [email protected] wrote:
Can you try 4.7.0?
— Reply to this email directly or view it on GitHub https://github.com/Project-OSRM/osrm-backend/issues/1552#issuecomment-116493229.
The pbf where I started from is about 15GB. It’s a merge of about 50 countries/states downloaded from geofabrik The osrm-extract ran fine. osrm file is also about 15GB
The machine has 128GB of mem, 16 cores and 100GB swap.
On 29 Jun 2015, at 15:07, Emil Tin [email protected] wrote:
383735439 nodes is a lot. what size is the input file?
— Reply to this email directly or view it on GitHub https://github.com/Project-OSRM/osrm-backend/issues/1552#issuecomment-116652996.
The osrm-prepare has been running for over 30 hours on 4.7.0 with cpu usage maxed out. Last output message received is:
'initializing elimination PQ'
which was over 20 hours ago.
Nothing has been written to disk since
Would starting from a planet file instead of my own merge of the countries/states needed work better?
Thx!
I have the same problem on 4.7.1 with Russia's map from here - http://gis-lab.info/projects/osm_dump/.
[asko@Centos-31 4.7.1-test]# ./osrm-prepare RU.osrm -p profile.lua [info] Input file: RU.osrm [info] Restrictions file: RU.osrm.restrictions [info] Profile: profile.lua [info] Threads: 2 [info] Generating edge-expanded graph representation [info] - 37250 restrictions. [info] Importing n = 18594256 nodes [info] - 16140 bollard nodes, 27727 traffic lights [info] and 19828794 edges [info] Graph loaded ok and has 19828794 edges [info] Removing graph geometry while preserving topology Segmentation fault
Map file is about 1.6GB, server has 12 GB RAM, plenty of space on hard disk. Though outdated, 0.3.5 works perfectly fine with this map.
Maybe i should try 4.6.1 or even older versions?
Thanks for help!
I have this problem with RU.osrm file too.
osrm-prepare compiled without debug prints: [info] Removing graph geometry while preserving topology Segmentation fault
with debug: [info] Graph loaded ok and has 19834077 edges [warn] Could not find reverse edge osrm-prepare: /home/xxx/osrm/osrm-backend/contractor/edge_based_graph_factory.cpp:332: void EdgeBasedGraphFactory::CompressGeometry(): Assertion `SPECIAL_EDGEID != forward_e1' failed.
I have the same problem in a small extract from brazil (only 86mb). Download link: http://www.filedropper.com/alhighways
OSRM Version: 4.7.1
[info] Input file: al-highways.osrm [info] Restrictions file: al-highways.osrm.restrictions [info] Profile: profile.lua [info] Threads: 2 [info] Generating edge-expanded graph representation [info] - 0 restrictions. [info] Importing n = 337895 nodes [info] - 1 bollard nodes, 182 traffic lights [info] and 368266 edges [info] Graph loaded ok and has 368266 edges [info] Removing graph geometry while preserving topology Segmentation fault
Ubuntu version
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty
@marcioaguiar can you please try the current version from the develop branch? Thanks!
Could be related to invalid node references due to broken clipping algorithms in most extract tools.
Just ran this, there are indeed a lot of missing nodes, but it should not segfault because of that. Investigating.
@TheMarex almost the same; just got a segmentation fault earlier now
[info] Input file: al-highways.osrm [info] Restrictions file: al-highways.osrm.restrictions [info] Profile: profile.lua [info] Threads: 4 [info] Generating edge-expanded graph representation [info] - 0 restrictions. [info] Importing n = 337895 nodes [info] - 1 bollard nodes, 182 traffic lights [info] and 368266 edges [info] Graph loaded ok and has 368266 edges Segmentation fault
same, tried master and v4.7.1 (RU.osrm, gis-lab.info)
[info] Graph loaded ok and has 19911747 edges
[info] Removing graph geometry while preserving topology
Segmentation fault
This should be fixed now in develop.
Tested and it works. Thanks!!
Didn't work (develop branch)
# ./osrm-extract ./RU.osm.pbf
[info] Input file: RU.osm.pbf
[info] Profile: profile.lua
[info] Threads: 8
[info] Using script profile.lua
[STXXL-MSG] STXXL v1.4.0 (prerelease/Debug)
[STXXL-ERRMSG] Warning: no config file found.
[STXXL-ERRMSG] Using default disk configuration.
[STXXL-MSG] Disk '/var/tmp/stxxl' is allocated, space: 1000 MiB, I/O implementation: syscall autogrow delete_on_exit queue=0
[info] Parsing in progress..
[info] input file generated by 0.41-44-g988e1a9
[info] timestamp: n/a
[info] Using turn restrictions
[info] Found 3 exceptions to turn restrictions:
[info] motorcar
[info] motor_vehicle
[info] vehicle
[info] Parsing finished after 222.51 seconds
[info] Raw input contains 195060336 nodes, 17259435 ways, and 454943 relations, and 0 unknown entities
[extractor] Sorting used nodes ... ok, after 2.8634s
[extractor] Erasing duplicate nodes ... ok, after 2.09852s
[extractor] Building node id map ... ok, after 3.75603s
[extractor] Sorting all nodes ... ok, after 85.127s
[extractor] Confirming/Writing used nodes ... ok, after 25.196s
[extractor] setting number of nodes ... ok
[info] Processed 18672258 nodes
[extractor] Sorting edges by start ... ok, after 16.8623s
[extractor] Setting start coords ... ok, after 59.7141s
[extractor] Sorting edges by target ... ok, after 14.549s
[extractor] Computing edge weights ... ok, after 62.8444s
[extractor] Sorting edges by renumbered start ... ok, after 16.1281s
[extractor] Writing used egdes ... ok, after 9.78844s
[extractor] setting number of edges ... ok
[info] Processed 19911746 edges
[extractor] Sorting used ways ... ok, after 1.71324s
[extractor] Sorting 39401 restriction. by from... ok, after 0.019883s
[extractor] Fixing restriction starts ... ok, after 0.80002s
[extractor] Sorting restrictions. by to ... ok, after 0.095186s
[extractor] Fixing restriction ends ... ok, after 0.056063s
[info] usable restrictions: 38235
[extractor] writing street name index ... ok, after 0.011011s
[info] extraction finished after 540.438s
[info] To prepare the data for routing, run: ./osrm-prepare ./RU.osrm
[STXXL-ERRMSG] Removing disk file: /var/tmp/stxxl
# ./osrm-prepare ./RU.osrm
[info] Input file: RU.osrm
[info] Restrictions file: RU.osrm.restrictions
[info] Profile: profile.lua
[info] Threads: 8
[info] Generating edge-expanded graph representation
[info] - 38235 restrictions.
[info] Importing n = 18672258 nodes
[info] - 16358 bollard nodes, 27813 traffic lights
[info] and 19911746 edges
[info] Graph loaded ok and has 19911746 edges
[info] Removing graph geometry while preserving topology
Segmentation fault