{"action":"created","issue":{"url":"https://api.github.com/repos/valhalla/loki/issues/80","labels_url":"https://api.github.com/repos/valhalla/loki/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/valhalla/loki/issues/80/comments","events_url":"https://api.github.com/repos/valhalla/loki/issues/80/events","html_url":"https://github.com/valhalla/loki/pull/80","id":115921896,"number":80,"title":"fix seg fault","user":{"login":"kdiluca","id":12497844,"avatar_url":"https://avatars.githubusercontent.com/u/12497844?v=3","gravatar_id":"","url":"https://api.github.com/users/kdiluca","html_url":"https://github.com/kdiluca","followers_url":"https://api.github.com/users/kdiluca/followers","following_url":"https://api.github.com/users/kdiluca/following{/other_user}","gists_url":"https://api.github.com/users/kdiluca/gists{/gist_id}","starred_url":"https://api.github.com/users/kdiluca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdiluca/subscriptions","organizations_url":"https://api.github.com/users/kdiluca/orgs","repos_url":"https://api.github.com/users/kdiluca/repos","events_url":"https://api.github.com/users/kdiluca/events{/privacy}","received_events_url":"https://api.github.com/users/kdiluca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-09T17:09:41Z","updated_at":"2015-11-09T17:18:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/valhalla/loki/pulls/80","html_url":"https://github.com/valhalla/loki/pull/80","diff_url":"https://github.com/valhalla/loki/pull/80.diff","patch_url":"https://github.com/valhalla/loki/pull/80.patch"},"body":"Need to loop matrix types separately to add to max locations and max distance maps to fix seg fault.\r\n\r\n Also, I put a break point right after thor gets matrix response from backend and where I believe I'm getting weird distance:\r\nRequest:  \r\n http://valhalla.dev.mapzen.com/one_to_many?json={\"locations\"%3A[{\"lat\"%3A39.983841%2C\"lon\"%3A-76.735741%2C\"street\"%3A\"US+30\"}%2C{\"lat\"%3A39.937859%2C\"lon\"%3A-76.686249%2C\"street\"%3A\"Springwood+Road\"}]%2C\"costing\"%3A\"auto\"%2C\"directions_options\"%3A{\"units\"%3A\"kilometers\"}}&api_key=valhalla-t_16n1c\r\n\r\nBreakpoint 1, (anonymous namespace)::serialize_one_to_many (correlated=std::vector of length 2, capacity 2 = {...}, \r\n    tds=std::vector of length 2, capacity 2 = {...}, units=\"km\", distance_scale=0.001) at src/thor/service.cc:99\r\n99\t      {\"one_to_many\", json::array({serialize_row(correlated, tds, 0, 0, 0, tds.size(), distance_scale)})},\r\n(gdb) p tds\r\n$1 = std::vector of length 2, capacity 2 = {{time = 0, dist = 0}, {time = 564, dist = 4294967114}}\r\n"},"comment":{"url":"https://api.github.com/repos/valhalla/loki/issues/comments/155129967","html_url":"https://github.com/valhalla/loki/pull/80#issuecomment-155129967","issue_url":"https://api.github.com/repos/valhalla/loki/issues/80","id":155129967,"user":{"login":"dnesbitt61","id":1838768,"avatar_url":"https://avatars.githubusercontent.com/u/1838768?v=3","gravatar_id":"","url":"https://api.github.com/users/dnesbitt61","html_url":"https://github.com/dnesbitt61","followers_url":"https://api.github.com/users/dnesbitt61/followers","following_url":"https://api.github.com/users/dnesbitt61/following{/other_user}","gists_url":"https://api.github.com/users/dnesbitt61/gists{/gist_id}","starred_url":"https://api.github.com/users/dnesbitt61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnesbitt61/subscriptions","organizations_url":"https://api.github.com/users/dnesbitt61/orgs","repos_url":"https://api.github.com/users/dnesbitt61/repos","events_url":"https://api.github.com/users/dnesbitt61/events{/privacy}","received_events_url":"https://api.github.com/users/dnesbitt61/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T17:18:34Z","updated_at":"2015-11-09T17:18:34Z","body":"yea, assigning 0 - n to an unsigned int might do that"}}