{"action":"created","issue":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/2102","repository_url":"https://api.github.com/repos/xonsh/xonsh","labels_url":"https://api.github.com/repos/xonsh/xonsh/issues/2102/labels{/name}","comments_url":"https://api.github.com/repos/xonsh/xonsh/issues/2102/comments","events_url":"https://api.github.com/repos/xonsh/xonsh/issues/2102/events","html_url":"https://github.com/xonsh/xonsh/issues/2102","id":202003905,"number":2102,"title":"BlockingIOError: [Errno 35] write could not complete without blocking","user":{"login":"jquast","id":972584,"avatar_url":"https://avatars.githubusercontent.com/u/972584?v=3","gravatar_id":"","url":"https://api.github.com/users/jquast","html_url":"https://github.com/jquast","followers_url":"https://api.github.com/users/jquast/followers","following_url":"https://api.github.com/users/jquast/following{/other_user}","gists_url":"https://api.github.com/users/jquast/gists{/gist_id}","starred_url":"https://api.github.com/users/jquast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquast/subscriptions","organizations_url":"https://api.github.com/users/jquast/orgs","repos_url":"https://api.github.com/users/jquast/repos","events_url":"https://api.github.com/users/jquast/events{/privacy}","received_events_url":"https://api.github.com/users/jquast/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-19T23:15:51Z","updated_at":"2017-01-19T23:26:42Z","closed_at":null,"body":"```\r\n+------------------+---------------------+\r\n| xonsh            | 0.5.2               |\r\n| Git SHA          | f1f19f7             |\r\n| Commit Date      | Jan 4 17:47:31 2017 |\r\n| Python           | 3.6.0               |\r\n| PLY              | 3.9                 |\r\n| have readline    | True                |\r\n| prompt toolkit   | None                |\r\n| shell type       | readline            |\r\n| pygments         | None                |\r\n| on posix         | True                |\r\n| on linux         | False               |\r\n| on darwin        | True                |\r\n| on windows       | False               |\r\n| on cygwin        | False               |\r\n| is superuser     | False               |\r\n| default encoding | utf-8               |\r\n| xonsh encoding   | utf-8               |\r\n| encoding errors  | surrogateescape     |\r\n+------------------+---------------------+\r\n```\r\n\r\nTo cause a `BlockingIOError` exception, I telnet to host `nethack.alt.org`, login, and play a game. On the first game screen/dungeon display, this exception occurs most times, but not every time. Full exception:\r\n\r\n```\r\nException in thread Thread-10: Traceback (most recent call last):\r\nFile \"/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py\", line 916, in _bootstrap_inner\r\n            self.run()\r\nFile \"/usr/local/lib/python3.6/site-packages/xonsh/__amalgam__.py\", line 9834, in run\r\n                i = self._read_write(procout, stdout, sys.__stdout__)\r\nFile \"/usr/local/lib/python3.6/site-packages/xonsh/__amalgam__.py\", line 9877, in _read_write\r\n                                                                       stdbuf.flush()\r\nBlockingIOError: [Errno 35] write could not complete without blocking\r\n```\r\n\r\nI tried to make a tty recording, but I can't properly do that because xonsh crashes, and I think there is some more serious problem with tty settings propagating across pseudo terminals."},"comment":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/comments/273931244","html_url":"https://github.com/xonsh/xonsh/issues/2102#issuecomment-273931244","issue_url":"https://api.github.com/repos/xonsh/xonsh/issues/2102","id":273931244,"user":{"login":"astronouth7303","id":401438,"avatar_url":"https://avatars.githubusercontent.com/u/401438?v=3","gravatar_id":"","url":"https://api.github.com/users/astronouth7303","html_url":"https://github.com/astronouth7303","followers_url":"https://api.github.com/users/astronouth7303/followers","following_url":"https://api.github.com/users/astronouth7303/following{/other_user}","gists_url":"https://api.github.com/users/astronouth7303/gists{/gist_id}","starred_url":"https://api.github.com/users/astronouth7303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astronouth7303/subscriptions","organizations_url":"https://api.github.com/users/astronouth7303/orgs","repos_url":"https://api.github.com/users/astronouth7303/repos","events_url":"https://api.github.com/users/astronouth7303/events{/privacy}","received_events_url":"https://api.github.com/users/astronouth7303/received_events","type":"User","site_admin":false},"created_at":"2017-01-19T23:26:42Z","updated_at":"2017-01-19T23:26:42Z","body":"A missed unthreadable program. Just needs to be added to `default_threadable_predictors()`.\r\n\r\nThere's a line to do it from `.xonshrc`, but I don't know it off-hand."}}
{"actor":{"display_login":"astronouth7303"}}