{"action":"closed","issue":{"url":"https://api.github.com/repos/valhalla/thor/issues/202","labels_url":"https://api.github.com/repos/valhalla/thor/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/valhalla/thor/issues/202/comments","events_url":"https://api.github.com/repos/valhalla/thor/issues/202/events","html_url":"https://github.com/valhalla/thor/issues/202","id":97336004,"number":202,"title":"PathAlgorithm crashes","user":{"login":"fsaric","id":1107374,"avatar_url":"https://avatars.githubusercontent.com/u/1107374?v=3","gravatar_id":"","url":"https://api.github.com/users/fsaric","html_url":"https://github.com/fsaric","followers_url":"https://api.github.com/users/fsaric/followers","following_url":"https://api.github.com/users/fsaric/following{/other_user}","gists_url":"https://api.github.com/users/fsaric/gists{/gist_id}","starred_url":"https://api.github.com/users/fsaric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsaric/subscriptions","organizations_url":"https://api.github.com/users/fsaric/orgs","repos_url":"https://api.github.com/users/fsaric/repos","events_url":"https://api.github.com/users/fsaric/events{/privacy}","received_events_url":"https://api.github.com/users/fsaric/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-26T17:31:52Z","updated_at":"2015-07-30T13:47:18Z","closed_at":"2015-07-30T13:47:18Z","body":"Steps to reproduce - get croatia-latest.osm.pbf, process it and run the following command:\r\n```\r\n./pathtest --config conf/valhalla.json -t auto -o 45.758620,16.241392 -d 45.758932,16.239999\r\n2015/07/26 17:20:12.696088 [INFO] routetype: auto\r\n2015/07/26 17:20:12.731379 [INFO] Location Processing took 34 ms\r\nterminate called after throwing an instance of 'std::runtime_error'\r\n  what():  GraphTile DirectedEdge id out of bounds\r\nAborted (core dumped)\r\n```\r\n\r\nThe problem is here:\r\nhttps://github.com/valhalla/thor/blob/5f075b7a164fad7d118366d8d5797c52445895f6/src/thor/pathalgorithm.cc#L413\r\n\r\n`tile->directededge(loop_edge_id)` assumes that `loop_edge_id` is in `tile`, but in this case it is in a different tile. The correct tile is fetched on line 410.\r\n"}}