{"action":"opened","issue":{"url":"https://api.github.com/repos/Vector35/binaryninja-api/issues/1168","repository_url":"https://api.github.com/repos/Vector35/binaryninja-api","labels_url":"https://api.github.com/repos/Vector35/binaryninja-api/issues/1168/labels{/name}","comments_url":"https://api.github.com/repos/Vector35/binaryninja-api/issues/1168/comments","events_url":"https://api.github.com/repos/Vector35/binaryninja-api/issues/1168/events","html_url":"https://github.com/Vector35/binaryninja-api/issues/1168","id":369322162,"node_id":"MDU6SXNzdWUzNjkzMjIxNjI=","number":1168,"title":"GUI Doesn't Play Nicely with matplotlib on OS X","user":{"login":"ehennenfent","id":7294647,"node_id":"MDQ6VXNlcjcyOTQ2NDc=","avatar_url":"https://avatars0.githubusercontent.com/u/7294647?v=4","gravatar_id":"","url":"https://api.github.com/users/ehennenfent","html_url":"https://github.com/ehennenfent","followers_url":"https://api.github.com/users/ehennenfent/followers","following_url":"https://api.github.com/users/ehennenfent/following{/other_user}","gists_url":"https://api.github.com/users/ehennenfent/gists{/gist_id}","starred_url":"https://api.github.com/users/ehennenfent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehennenfent/subscriptions","organizations_url":"https://api.github.com/users/ehennenfent/orgs","repos_url":"https://api.github.com/users/ehennenfent/repos","events_url":"https://api.github.com/users/ehennenfent/events{/privacy}","received_events_url":"https://api.github.com/users/ehennenfent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-11T22:02:01Z","updated_at":"2018-10-11T22:02:01Z","closed_at":null,"author_association":"NONE","body":"When a plugin calls `show` on a matplotlib graph, Binary Ninja reopens any child windows (context menus, open file dialogs, etc) that have previously been clicked on, as described [on Slack on Oct 9 '18](https://binaryninja.slack.com/archives/C0CV88A83/p1539120469000100).\r\n\r\nThe following plugin is sufficient to reproduce the issue on OS X. I haven't tried it on other platforms. Note that this must be run from the plugins folder, as pasting it into the script console causes Binary Ninja to crash. \r\n\r\n```\r\nfrom binaryninja.plugin import PluginCommand\r\nimport matplotlib.pyplot as plt\r\n\r\ndef do_the_thing(*args):\r\n    plt.plot(1,1)\r\n    plt.show()\r\n\r\nPluginCommand.register_for_function(\"Bug out the GUI\", \"What it says\", do_the_thing)\r\n```"}}
{"actor":{"display_login":"ehennenfent"}}