You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something about the (17GB) EU extract linked in #2832 that I'm using is causing one of the parameters to trimLaneString to be nil (I think), and luabind is not finding a matching function call (it's expecting to find a string,int,int function, and because Lua has no types, nil is neither string or int).
Without digging too deep here, I tried applying this change:
diff --git a/profiles/lib/guidance.lua b/profiles/lib/guidance.lua
index 3a4106e..d39d438 100644
--- a/profiles/lib/guidance.lua
+++ b/profiles/lib/guidance.lua
@@ -95,7 +95,7 @@ local function process_lanes(turn_lane,vehicle_lane,first_count,second_count)
if turn_lane and turn_lane ~= "" then
if vehicle_lane and vehicle_lane ~= "" then
turn_lane = applyAccessTokens(turn_lane,vehicle_lane)
- elseif fw_count ~= 0 or bw_count ~= 0 then
+ elseif first_count ~= 0 or second_count ~= 0 then
turn_lane = trimLaneString(turn_lane, first_count, second_count)
end
end
but that wasn't sufficient, the same error is still being thrown.
While trying to replicate #2832, I'm hitting this error using the current
master
(bb244e2):It looks like the problem might lie here:
https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/lib/guidance.lua#L99
Something about the (17GB) EU extract linked in #2832 that I'm using is causing one of the parameters to
trimLaneString
to benil
(I think), andluabind
is not finding a matching function call (it's expecting to find astring,int,int
function, and because Lua has no types,nil
is neitherstring
orint
).Without digging too deep here, I tried applying this change:
but that wasn't sufficient, the same error is still being thrown.
/cc @MoKob @daniel-j-h
The text was updated successfully, but these errors were encountered: