{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/14820","repository_url":"https://api.github.com/repos/OpenRA/OpenRA","labels_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/14820/labels{/name}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/14820/comments","events_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/14820/events","html_url":"https://github.com/OpenRA/OpenRA/issues/14820","id":297020498,"number":14820,"title":"Game crash (KeyNotFoundException)","user":{"login":"Alberthaff","id":3864165,"avatar_url":"https://avatars3.githubusercontent.com/u/3864165?v=4","gravatar_id":"","url":"https://api.github.com/users/Alberthaff","html_url":"https://github.com/Alberthaff","followers_url":"https://api.github.com/users/Alberthaff/followers","following_url":"https://api.github.com/users/Alberthaff/following{/other_user}","gists_url":"https://api.github.com/users/Alberthaff/gists{/gist_id}","starred_url":"https://api.github.com/users/Alberthaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alberthaff/subscriptions","organizations_url":"https://api.github.com/users/Alberthaff/orgs","repos_url":"https://api.github.com/users/Alberthaff/repos","events_url":"https://api.github.com/users/Alberthaff/events{/privacy}","received_events_url":"https://api.github.com/users/Alberthaff/received_events","type":"User","site_admin":false},"labels":[{"id":6382357,"url":"https://api.github.com/repos/OpenRA/OpenRA/labels/Crash","name":"Crash","color":"e10c02","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-14T09:07:25Z","updated_at":"2018-02-20T12:42:10Z","closed_at":null,"author_association":"NONE","body":"The game crashes after about 20-30 minutes of gameplay.\r\nI have tested on both Mac and Windows with the same result.\r\n\r\nGame version: bb801e5\r\nGame mode: ts\r\n\r\nException.log:\r\n```\r\nOpenRA engine version {DEV_VERSION}\r\nTiberian Sun mod version {DEV_VERSION}\r\non map dfb5ba8fa06f863637168b2fe168f5c778c14b66 (Forest Fires by Westwood Studios).\r\nDate: 2018-02-14 08:52:08Z\r\nOperating System: Windows (Microsoft Windows NT 6.2.9200.0)\r\nRuntime Version: .NET CLR 4.0.30319.42000\r\nException of type `System.Collections.Generic.KeyNotFoundException`: The given key was not present in the dictionary.\r\n   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)\r\n   at OpenRA.Mods.Common.Pathfinder.PathGraph.set_Item(CPos pos, CellInfo value) in d:\\OpenRA-bleed\\OpenRA.Mods.Common\\Pathfinder\\PathGraph.cs:line 224\r\n   at OpenRA.Mods.Common.Pathfinder.PathSearch.AddInitialCell(CPos location) in d:\\OpenRA-bleed\\OpenRA.Mods.Common\\Pathfinder\\PathSearch.cs:line 100\r\n   at OpenRA.Mods.Common.Pathfinder.PathSearch.FromPoint(World world, MobileInfo mi, Actor self, CPos from, CPos target, Boolean checkForBlocked) in d:\\OpenRA-bleed\\OpenRA.Mods.Common\\Pathfinder\\PathSearch.cs:line 72\r\n   at OpenRA.Mods.Common.Traits.PathFinder.FindUnitPath(CPos source, CPos target, Actor self, Actor ignoreActor) in d:\\OpenRA-bleed\\OpenRA.Mods.Common\\Traits\\World\\PathFinder.cs:line 77\r\n   at OpenRA.Mods.Common.Pathfinder.PathFinderUnitPathCacheDecorator.FindUnitPath(CPos source, CPos target, Actor self, Actor ignoreActor) in d:\\OpenRA-bleed\\OpenRA.Mods.Common\\Pathfinder\\PathFinderUnitPathCacheDecorator.cs:line 43\r\n   at OpenRA.Mods.Common.Activities.Move.<>c__DisplayClass6.<.ctor>b__4() in d:\\OpenRA-bleed\\OpenRA.Mods.Common\\Activities\\Move\\Move.cs:line 72\r\n   at OpenRA.Mods.Common.Activities.Move.EvalPath() in d:\\OpenRA-bleed\\OpenRA.Mods.Common\\Activities\\Move\\Move.cs:line 133\r\n   at OpenRA.Mods.Common.Activities.Move.Tick(Actor self) in d:\\OpenRA-bleed\\OpenRA.Mods.Common\\Activities\\Move\\Move.cs:line 207\r\n   at OpenRA.Activities.Activity.TickOuter(Actor self) in d:\\OpenRA-bleed\\OpenRA.Game\\Activities\\Activity.cs:line 174\r\n   at OpenRA.Traits.ActivityUtils.RunActivity(Actor self, Activity act) in d:\\OpenRA-bleed\\OpenRA.Game\\Traits\\ActivityUtils.cs:line 37\r\n   at OpenRA.Mods.Common.Activities.AttackMoveActivity.Tick(Actor self) in d:\\OpenRA-bleed\\OpenRA.Mods.Common\\Activities\\Move\\AttackMoveActivity.cs:line 44\r\n   at OpenRA.Activities.Activity.TickOuter(Actor self) in d:\\OpenRA-bleed\\OpenRA.Game\\Activities\\Activity.cs:line 174\r\n   at OpenRA.Traits.ActivityUtils.RunActivity(Actor self, Activity act) in d:\\OpenRA-bleed\\OpenRA.Game\\Traits\\ActivityUtils.cs:line 37\r\n   at OpenRA.Actor.Tick() in d:\\OpenRA-bleed\\OpenRA.Game\\Actor.cs:line 128\r\n   at OpenRA.World.Tick() in d:\\OpenRA-bleed\\OpenRA.Game\\World.cs:line 351\r\n   at OpenRA.Game.InnerLogicTick(OrderManager orderManager) in d:\\OpenRA-bleed\\OpenRA.Game\\Game.cs:line 605\r\n   at OpenRA.Game.LogicTick() in d:\\OpenRA-bleed\\OpenRA.Game\\Game.cs:line 629\r\n   at OpenRA.Game.Loop() in d:\\OpenRA-bleed\\OpenRA.Game\\Game.cs:line 759\r\n   at OpenRA.Game.Run() in d:\\OpenRA-bleed\\OpenRA.Game\\Game.cs:line 799\r\n   at OpenRA.Game.InitializeAndRun(String[] args) in d:\\OpenRA-bleed\\OpenRA.Game\\Game.cs:line 253\r\n   at OpenRA.Program.Main(String[] args) in d:\\OpenRA-bleed\\OpenRA.Game\\Support\\Program.cs:line 37\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/comments/366965631","html_url":"https://github.com/OpenRA/OpenRA/issues/14820#issuecomment-366965631","issue_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/14820","id":366965631,"user":{"login":"MunWolf","id":3696546,"avatar_url":"https://avatars0.githubusercontent.com/u/3696546?v=4","gravatar_id":"","url":"https://api.github.com/users/MunWolf","html_url":"https://github.com/MunWolf","followers_url":"https://api.github.com/users/MunWolf/followers","following_url":"https://api.github.com/users/MunWolf/following{/other_user}","gists_url":"https://api.github.com/users/MunWolf/gists{/gist_id}","starred_url":"https://api.github.com/users/MunWolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MunWolf/subscriptions","organizations_url":"https://api.github.com/users/MunWolf/orgs","repos_url":"https://api.github.com/users/MunWolf/repos","events_url":"https://api.github.com/users/MunWolf/events{/privacy}","received_events_url":"https://api.github.com/users/MunWolf/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T12:42:10Z","updated_at":"2018-02-20T12:42:10Z","author_association":"CONTRIBUTOR","body":"I haven't tested this in code yet but this seems to have something to do with an invalid layer value.\r\nThe exception happens in line 224 of PathGraph\r\n```\r\nset { (pos.Layer == 0 ? groundInfo : customLayerInfo[pos.Layer].Second)[pos] = value; }\r\n```\r\nwhere this call fails\r\n```\r\ncustomLayerInfo[pos.Layer]\r\n```\r\nSo either pos.Layer is invalid or a specific layer is missing in customLayerInfo."}}
{"actor":{"display_login":"MunWolf"}}