<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi!</p>
    <p>I would like to use Bonnmotion's map-based models. However, I
      have run into some problems when setting up OSRM following the
      instructions in the documentation. I have tried with the
      recommended OSRM version (4.8.1) and also with the most recent one
      (5.11.0). I have not succeeded with any of them but the problems I
      encounter are different. I am using Ubuntu 17.04.</p>
    <ul>
      <li><b>With version 5.11.0</b> I encounter this error when I run .<i>/prepare_pbf.sh
          maps/Vigo_cut:</i></li>
    </ul>
    <blockquote>
      <p><i>[info] Using script
          ./cbf-routing-profiles-master/foot-city.lua<br>
          [info] Input file: Vigo_cut.osm.pbf<br>
          [info] Profile: foot-city.lua<br>
          [info] Threads: 4<br>
          [info] Parsing in progress..<br>
          [info] Using profile api version 0<br>
          [info] input file generated by 0.45<br>
          [info] timestamp: n/a<br>
          terminate called after throwing an instance of 'sol::error'<br>
            what():  lua: error: lua: error:
          ./cbf-routing-profiles-master/lib/barrier.lua:24: sol: attempt
          to index (set) nil value "bollard" on userdata (bad
          (misspelled?) key name or does not exist)<br>
          Abortado (rexistráronse os datos da memoria)</i></p>
    </blockquote>
    <ul>
      <li><i><b>With version 4.8.1: </b><br>
        </i></li>
    </ul>
    <blockquote><i>[info] Input file: Vigo_cut.osm.pbf</i><br>
      <i>[info] Profile: foot-city.lua</i><br>
      <i>[info] Threads: 4</i><br>
      <i>[info] Using script ./cbf-routing-profiles-master/foot-city.lua</i><br>
      <i>[STXXL-MSG] STXXL v1.4.1 (prerelease/Debug)</i><br>
      <i>[STXXL-ERRMSG] Warning: no config file found.</i><br>
      <i>[STXXL-ERRMSG] Using default disk configuration.</i><br>
      <i>[STXXL-MSG] Disk '/var/tmp/stxxl' is allocated, space: 1000
        MiB, I/O implementation: syscall autogrow delete_on_exit queue=0
        devid=0</i><br>
      <i>[info] Parsing in progress..</i><br>
      <i>[info] input file generated by 0.45</i><br>
      <i>[info] timestamp: n/a</i><br>
      <i>[info] Ignoring turn restrictions</i><br>
      <i>*** Error in `./osrm-extract': double free or corruption (out):
        0x08d58a08 ***</i><br>
      <i>======= Backtrace: =========</i><br>
      <i>/lib/i386-linux-gnu/libc.so.6(+0x67f4a)[0xb75b5f4a]</i><br>
      <i>/lib/i386-linux-gnu/libc.so.6(+0x6eb47)[0xb75bcb47]</i><br>
      <i>/lib/i386-linux-gnu/libc.so.6(+0x6f486)[0xb75bd486]</i><br>
      <i>/usr/lib/libluabind.so.0.9.1(_ZN7luabind6detail10object_repD1Ev+0x38)[0xb7340648]</i><br>
      <i>/usr/lib/libluabind.so.0.9.1(_ZN7luabind6detail16destroy_instanceEP9lua_State+0x7c)[0xb734078c]</i><br>
      <i>/usr/lib/i386-linux-gnu/liblua5.2.so.0(+0x928f)[0xb72fb28f]</i><br>
      <i>/usr/lib/i386-linux-gnu/liblua5.2.so.0(+0x95d6)[0xb72fb5d6]</i><br>
      <i>/usr/lib/i386-linux-gnu/liblua5.2.so.0(+0xaa98)[0xb72fca98]</i><br>
      <i>/usr/lib/i386-linux-gnu/liblua5.2.so.0(+0x8c1b)[0xb72fac1b]</i><br>
      <i>/usr/lib/i386-linux-gnu/liblua5.2.so.0(+0x9887)[0xb72fb887***
        Error in `./osrm-extract':
        /usr/lib/i386-linux-gnu/liblua5.2.so.0(+0xbf3f)[0xb72fdf3f]</i><br>
      <i>/usr/lib/i386-linux-gnu/liblua5.2.so.0./prepare_pbf.sh: liña
        11: 26421 Abortado                («core» xerado)
        LUA_PATH="$profiledir/lib/?.lua" ./osrm-extract -p
        $profiledir/foot-city.lua ${osmfile}.osm.pbf</i><br>
      <i>[info] Input file: Vigo_cut.osrm</i><br>
      <i>[info] Restrictions file: Vigo_cut.osrm.restrictions</i><br>
      <i>[info] Profile: foot-city.lua</i><br>
      <i>[info] Threads: 4</i><br>
      <i>[info] Generating edge-expanded graph representation</i><br>
      <i>[warn] [exception] osrm input file misses magic number. Check
        or reprocess the file</i></blockquote>
    <p><br>
    </p>
    <p>I have tried to run the instruction <i>./osrm-extract </i>plainly
      with the same osm.pbf file. It works fine for 5.11.0 version but
      it gives the same error in the 4.8.1 version.</p>
    <p>Thanks in advance!</p>
    <p>Best regards,<br>
    </p>
    <p>Fátima<br>
    </p>
    <p><i>    </i><br>
    </p>
    <p><i> <br>
      </i></p>
    <p><i><br>
      </i></p>
    <p><br>
    </p>
  </body>
</html>