{"action":"created","issue":{"url":"https://api.github.com/repos/macvim-dev/macvim/issues/402","repository_url":"https://api.github.com/repos/macvim-dev/macvim","labels_url":"https://api.github.com/repos/macvim-dev/macvim/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/macvim-dev/macvim/issues/402/comments","events_url":"https://api.github.com/repos/macvim-dev/macvim/issues/402/events","html_url":"https://github.com/macvim-dev/macvim/issues/402","id":188112111,"number":402,"title":"channels throw exceptions when given sufficiently large files repeatedly","user":{"login":"w0rp","id":3518142,"avatar_url":"https://avatars.githubusercontent.com/u/3518142?v=3","gravatar_id":"","url":"https://api.github.com/users/w0rp","html_url":"https://github.com/w0rp","followers_url":"https://api.github.com/users/w0rp/followers","following_url":"https://api.github.com/users/w0rp/following{/other_user}","gists_url":"https://api.github.com/users/w0rp/gists{/gist_id}","starred_url":"https://api.github.com/users/w0rp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w0rp/subscriptions","organizations_url":"https://api.github.com/users/w0rp/orgs","repos_url":"https://api.github.com/users/w0rp/repos","events_url":"https://api.github.com/users/w0rp/events{/privacy}","received_events_url":"https://api.github.com/users/w0rp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-08T21:45:31Z","updated_at":"2016-11-10T06:03:44Z","closed_at":"2016-11-10T06:03:44Z","body":"I have written a Vim plugin which feeds file buffer data via stdin to programs for linting code as you type in Vim. For a few months now, I've been receiving reports from MacVim users that my plugin doesn't work. All attempts to fix this bug have failed. I am now reasonably convinced that the problem actually lies internally in MacVim. The issue reported for my plugin is here: https://github.com/w0rp/ale/issues/39\r\n\r\nFor whatever reason, when sufficiently large files are fed to jobs using the `in_buf` and `\"in_io\": \"buffer\"` options for `job_start`, MacVim throws an exception saying the buffer cannot be written to: `E631: write_buf_line()(): write failed` I don't have a Mac I can personally use to create an isolated test case for this issue, but it can probably be repeated by feeding large files to programs from MacVim after a short delay with timers with an `autocmd` for the `TextChangedI` event. This is pretty much what my plugin does.\r\n\r\nI would appreciate it if someone could have a look at this. I would be happy to be wrong and for there to be some way for me to fix this in my plugin. If this is a MacVim bug, I would be happy to see a patch which fixes it, so I can tell my user to update their version of MacVim. I have tried some versions of Vim on Mac OSX when I was able to grab a machine, and I couldn't repeat the issue myself, so there might be a specific version needed to be able to see the error."},"comment":{"url":"https://api.github.com/repos/macvim-dev/macvim/issues/comments/259608800","html_url":"https://github.com/macvim-dev/macvim/issues/402#issuecomment-259608800","issue_url":"https://api.github.com/repos/macvim-dev/macvim/issues/402","id":259608800,"user":{"login":"splhack","id":81904,"avatar_url":"https://avatars.githubusercontent.com/u/81904?v=3","gravatar_id":"","url":"https://api.github.com/users/splhack","html_url":"https://github.com/splhack","followers_url":"https://api.github.com/users/splhack/followers","following_url":"https://api.github.com/users/splhack/following{/other_user}","gists_url":"https://api.github.com/users/splhack/gists{/gist_id}","starred_url":"https://api.github.com/users/splhack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splhack/subscriptions","organizations_url":"https://api.github.com/users/splhack/orgs","repos_url":"https://api.github.com/users/splhack/repos","events_url":"https://api.github.com/users/splhack/events{/privacy}","received_events_url":"https://api.github.com/users/splhack/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T06:03:44Z","updated_at":"2016-11-10T06:03:44Z","body":"Ok, I don't think it's MacVim specific issue. More likely, channel.c select/write issue on OS X. You can repro it with Vim. So select syscall returns the file descriptor is writable, but write syscall fails with EPIPE. I recommend you to repro it with the latest Vim and report it in https://github.com/vim/vim/issues."}}
{"actor":{"display_login":"splhack"}}