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

LUA API error on dev branch #1183

Closed
bjtaylor1 opened this issue Sep 14, 2014 · 5 comments
Closed

LUA API error on dev branch #1183

bjtaylor1 opened this issue Sep 14, 2014 · 5 comments

Comments

@bjtaylor1
Copy link
Contributor

Hi,
I am getting the following error running extract on the develop branch:

ben@ben-Ideapad-Z560:~/Project-OSRM$ ln -s profiles/car.lua profile.lua
ben@ben-Ideapad-Z560:~/Project-OSRM$ ./osrm-extract monaco-latest.osm.pbf
[info] Input file: monaco-latest.osm.pbf
[info] Profile: profile.lua
[info] Threads: 4
[info] Using script profile.lua
[STXXL-MSG] STXXL v1.3.1 (release)
[STXXL-ERRMSG] Warning: no config file found.
[STXXL-ERRMSG] Using default disk configuration.
[STXXL-MSG] 1 disks are allocated, total space: 1000 MiB
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
[STXXL-ERRMSG] Removing disk file created from default configuration: /var/tmp/stxxl

Running "lua -v" gives

ben@ben-Ideapad-Z560:~/Project-OSRM$ lua -v
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio

I had a look at #694 and #466 but the solution seemed to be to make sure profile.lua is a symlink to profiles/car.lua which it already is on mine.

Any help much appreciated.

Thanks
Ben

@DennisOSRM
Copy link
Collaborator

Did you make any changes to the profile? What does ./osrm-extract -v say?

@przemas75
Copy link

Small hint #1179
check libraries:
dpkg -l|grep lua
ii liblua5.1-0:amd64 5.1.5-7 amd64 Shared library for the Lua interpreter version 5.1
ii liblua5.1-0-dev:amd64 5.1.5-7 amd64 Development files for the Lua language version 5.1
ii liblua5.2-0:amd64 5.2.3-1 amd64 Shared library for the Lua interpreter version 5.2
ii liblua5.2-dev:amd64 5.2.3-1 amd64 Development files for the Lua language version 5.2
ii lua5.1 5.1.5-7 amd64 Simple, extensible, embeddable programming language
ii lua5.2 5.2.3-1 amd64 Simple, extensible, embeddable programming language

lua -v
Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio

@DennisOSRM
Copy link
Collaborator

Have you retried if the latest development branch does fix things?

@bjtaylor1
Copy link
Contributor Author

the latest development branch seems to fix it, thanks!
just out of interest dpkg -l | grep lua says:

ben@ben-Ideapad-Z560:~/Project-OSRM$ dpkg -l | grep lua
ii  liblua5.1-0:amd64                                     5.1.5-5ubuntu0.1                                    amd64        Shared library for the Lua interpreter version 5.1
ii  liblua5.1-0-dev:amd64                                 5.1.5-5ubuntu0.1                                    amd64        Development files for the Lua language version 5.1
ii  liblua5.2-0:amd64                                     5.2.3-1                                             amd64        Shared library for the Lua interpreter version 5.2
ii  liblua5.2-dev:amd64                                   5.2.3-1                                             amd64        Development files for the Lua language version 5.2
ii  libluabind-dev                                        0.9.1+dfsg-8                                        amd64        luabind c++ binding for lua: static library and headers
ii  libluabind0.9.1                                       0.9.1+dfsg-8                                        amd64        luabind c++ binding for lua: runtime library
ii  libluajit-5.1-2:amd64                                 2.0.2+dfsg-1                                        amd64        Just in time compiler for Lua - library version
ii  libluajit-5.1-common                                  2.0.2+dfsg-1                                        all          Just in time compiler for Lua - common files
ii  libluajit-5.1-dev:amd64                               2.0.2+dfsg-1                                        amd64        Just in time compiler for Lua - development files
ii  lua5.1                                                5.1.5-5ubuntu0.1                                    amd64        Simple, extensible, embeddable programming language
ii  luatex                                                0.76.0-3ubuntu1                                     amd64        next generation TeX engine
ii  texlive-luatex                                        2013.20140215-1                                     all          TeX Live: LuaTeX packages

ben@ben-Ideapad-Z560:~/Project-OSRM$ lua -v
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
ben@ben-Ideapad-Z560:~/Project-OSRM$ 

and

ben@ben-Ideapad-Z560:~/Project-OSRM$ ./osrm-extract -v
[info] v0.4.3-103-g36f3d8d

@DennisOSRM
Copy link
Collaborator

Thanks for the feedback. Happy to hear that things work fine.

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

No branches or pull requests

3 participants