{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/128","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/128/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/128/events","html_url":"https://github.com/chrsmith/bwapi/issues/128","id":58824222,"number":128,"title":"Crash in BWAPI when rightClicking from onSendText","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Priority-High","name":"Priority-High","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Type-Defect","name":"Type-Defect","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Usability","name":"Usability","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-24T23:31:43Z","updated_at":"2015-02-24T23:31:44Z","closed_at":"2015-02-24T23:31:43Z","body":"```\n-- What steps will reproduce the problem?\n1. call Unit::rightClick from onSendText\n\n-- What is the expected output? What do you see instead?\nExpected output is either:\n1) right-click on unit\n2) an error message saying this is forbidden\n\nInstead starcraft crashes.\n\n-- What version of the product are you using? On what operating system?\nBWAPI Beta2.2 on XP SP3\n\n-- Please provide any additional information below.\n\nThe actual crash probably occurs in BW::selectUnits (which rightClick \neventually calls)\nIt probably doesn't expect to be called in the context of onSendText.\n\nWhile it can be solved with a commands buffer, a simple informative error \nmessage should be fine.\n\nNote: This report is probably valid for many other methods as well (such as \nunit::attackMove, etc.) .\n```\n\n-----\nOriginal issue reported on code.google.com by `erez27` on 22 Nov 2009 at 8:58"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75872652","html_url":"https://github.com/chrsmith/bwapi/issues/128#issuecomment-75872652","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/128","id":75872652,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T23:31:44Z","updated_at":"2015-02-24T23:31:44Z","body":"\n\n-----\nOriginal comment by `AHeinerm` on 28 Nov 2009 at 5:49\n* Added labels: **Priority-High**, **Usability**\n* Removed labels: **Priority-Medium**"}}