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 PANIC: unprotected error in call to Lua API (attempt to index a nil value) #694

Closed
cbaines opened this issue Aug 8, 2013 · 13 comments

Comments

@cbaines
Copy link

cbaines commented Aug 8, 2013

When I attempt to run the extractor, I get one or more of the above error message. I was testing on a clean installation of Debian Testing, with both v0.3.4 and master. The build log can be found here: http://paste.debian.net/23627/

@DennisOSRM
Copy link
Collaborator

How about posting a log of the actual error messages?

@cbaines
Copy link
Author

cbaines commented Aug 8, 2013

Ok, no problem. I am happy to run more tests if you think this would help.

chris@debian-testing:~$ wget http://download.geofabrik.de/europe/great-britain/england/hampshire-latest.osm.pbf
--2013-08-08 12:11:40--  http://download.geofabrik.de/europe/great-britain/england/hampshire-latest.osm.pbf
Resolving download.geofabrik.de (download.geofabrik.de)... 144.76.34.132, 144.76.4.22, 5.9.158.99
Connecting to download.geofabrik.de (download.geofabrik.de)|144.76.34.132|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17113506 (16M) [application/octet-stream]
Saving to: ‘hampshire-latest.osm.pbf’

100%[====================================================================================================================================================================================================>] 17,113,506  3.90MB/s   in 4.7s   

2013-08-08 12:11:44 (3.47 MB/s) - ‘hampshire-latest.osm.pbf’ saved [17113506/17113506]

chris@debian-testing:~$ Project-OSRM/build/osrm-extract hampshire-latest.osm.pbf Project-OSRM/profile.lua
[i /home/chris/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using script Project-OSRM/profile.lua
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
PANIC: unprotected error in call to Lua API (attempt to index a nil value)

@DennisOSRM
Copy link
Collaborator

Which profile are you using? A custom one?

@cbaines
Copy link
Author

cbaines commented Aug 8, 2013

Project-OSRM in the above log is a unaltered clone of the git repository, at master (ef1d75d). What I posted above was using profile.lua, but I get the same result with profiles/car.lua. Interestingly, running the command repeatedly, leads to differing results (differing number of PANIC's):

chris@debian-testing:~$ Project-OSRM/build/osrm-extract hampshire-latest.osm.pbf Project-OSRM/profile.lua 
[i /home/chris/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using script Project-OSRM/profile.lua
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
chris@debian-testing:~$ Project-OSRM/build/osrm-extract hampshire-latest.osm.pbf Project-OSRM/profile.lua 
[i /home/chris/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using script Project-OSRM/profile.lua
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
chris@debian-testing:~$ Project-OSRM/build/osrm-extract hampshire-latest.osm.pbf Project-OSRM/profile.lua 
[i /home/chris/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using script Project-OSRM/profile.lua
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
chris@debian-testing:~$ Project-OSRM/build/osrm-extract hampshire-latest.osm.pbf Project-OSRM/profile.lua 
[i /home/chris/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using script Project-OSRM/profile.lua
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
chris@debian-testing:~$ Project-OSRM/build/osrm-extract hampshire-latest.osm.pbf Project-OSRM/profile.lua 
[i /home/chris/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using script Project-OSRM/profile.lua
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
chris@debian-testing:~$ Project-OSRM/build/osrm-extract hampshire-latest.osm.pbf Project-OSRM/profile.lua 
[i /home/chris/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using script Project-OSRM/profile.lua
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
chris@debian-testing:~$ Project-OSRM/build/osrm-extract hampshire-latest.osm.pbf Project-OSRM/profile.lua 
[i /home/chris/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using script Project-OSRM/profile.lua
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
chris@debian-testing:~$ Project-OSRM/build/osrm-extract hampshire-latest.osm.pbf Project-OSRM/profile.lua 
[i /home/chris/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using script Project-OSRM/profile.lua
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
chris@debian-testing:~$ Project-OSRM/build/osrm-extract hampshire-latest.osm.pbf Project-OSRM/profile.lua 
[i /home/chris/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using script Project-OSRM/profile.lua
PANIC: unprotected error in call to Lua API (attempt to index a nil value)

@DennisOSRM
Copy link
Collaborator

try executing osrm-extract from the Project-OSRM directory.

@cbaines
Copy link
Author

cbaines commented Aug 8, 2013

Gives the same results.

chris@debian-testing:~/Project-OSRM$ build/osrm-extract hampshire-latest.osm.pbf profile.lua 
[i /home/chris/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using script profile.lua
PANIC: unprotected error in call to Lua API (attempt to index a nil value)

@DennisOSRM
Copy link
Collaborator

Try if you get same results on develop branch.

@cbaines
Copy link
Author

cbaines commented Aug 8, 2013

I do. I also tried installing the libluajit-5.1-dev package, which leads to a different error (on the develop branch):

chris@debian-testing:~/Project-OSRM$ build/osrm-extract hampshire-latest.osm.pbf profile.lua 
[i /home/chris/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using script profile.lua
terminate called without an active exception
Aborted

@svenpilz
Copy link

svenpilz commented Aug 9, 2013

I also have this problem with the extractor on Debian Testing.

.../build$ ./osrm-extract latest.osm.pbf profile.lua 
[i .../Extractor/ScriptingEnvironment.cpp:25] Using script profile.lua
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
PANIC: unprotected error in call to Lua API (attempt to index a nil value)

The strange thing is: I get the same error regardless of the parameters, as long as there is a “file name” given. So it seems it may be a problem with Lua itself.

@DennisOSRM
Copy link
Collaborator

Is it possible that one of you could give me access to your machines, so I can have a direct look at stuff? Public keys are at https://github.com/DennisOSRM.keys

@guibsou
Copy link

guibsou commented Aug 21, 2013

hi all, i have exactly the same probleme on debian wheezy. have you find a solution ?

@DennisOSRM
Copy link
Collaborator

See #466

@svenpilz
Copy link

Is there something new in Debian or OSRM? I don't think this is related to #466.

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

4 participants