{"action":"created","issue":{"url":"https://api.github.com/repos/shockone/black-screen/issues/298","repository_url":"https://api.github.com/repos/shockone/black-screen","labels_url":"https://api.github.com/repos/shockone/black-screen/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/shockone/black-screen/issues/298/comments","events_url":"https://api.github.com/repos/shockone/black-screen/issues/298/events","html_url":"https://github.com/shockone/black-screen/issues/298","id":152043187,"number":298,"title":"Uncaught (in promise) Error: EMFILE: too many open files","user":{"login":"harukaeru","id":5797788,"avatar_url":"https://avatars.githubusercontent.com/u/5797788?v=3","gravatar_id":"","url":"https://api.github.com/users/harukaeru","html_url":"https://github.com/harukaeru","followers_url":"https://api.github.com/users/harukaeru/followers","following_url":"https://api.github.com/users/harukaeru/following{/other_user}","gists_url":"https://api.github.com/users/harukaeru/gists{/gist_id}","starred_url":"https://api.github.com/users/harukaeru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harukaeru/subscriptions","organizations_url":"https://api.github.com/users/harukaeru/orgs","repos_url":"https://api.github.com/users/harukaeru/repos","events_url":"https://api.github.com/users/harukaeru/events{/privacy}","received_events_url":"https://api.github.com/users/harukaeru/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shockone/black-screen/labels/Bug","name":"Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-30T17:43:40Z","updated_at":"2016-05-26T12:17:54Z","closed_at":"2016-05-26T12:17:54Z","body":"Whenever I change to a directory that has the number of files such as `todomvc`,\r\nhttps://github.com/tastejs/todomvc\r\n\r\nI get this error on Black Screen Console(the stuff appears when pressed `⌘ + Alt + I`).\r\n```js\r\nevents.js:154 Uncaught Error: watch /Users/usrNeko/foo/todomvc/examples/rappidjs/app/TodoClass.js EMFILEexports._errnoException @ util.js:890FSWatcher.start @ fs.js:1323fs.watch @ fs.js:1351createFsWatchInstance @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:37setFsWatchListener @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:80NodeFsHandler._watchWithNodeFs @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:228NodeFsHandler._handleFile @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:255(anonymous function) @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:473(anonymous function) @ fs.js:82\r\nevents.js:154 Uncaught Error: watch /Users/usrNeko/foo/todomvc/examples/react/js/app.jsx EMFILEexports._errnoException @ util.js:890FSWatcher.start @ fs.js:1323fs.watch @ fs.js:1351createFsWatchInstance @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:37setFsWatchListener @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:80NodeFsHandler._watchWithNodeFs @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:228NodeFsHandler._handleFile @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:255(anonymous function) @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:473(anonymous function) @ fs.js:82\r\nevents.js:154 Uncaught Error: watch /Users/usrNeko/foo/todomvc/examples/react/js/footer.jsx EMFILEexports._errnoException @ util.js:890FSWatcher.start @ fs.js:1323fs.watch @ fs.js:1351createFsWatchInstance @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:37setFsWatchListener @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:80NodeFsHandler._watchWithNodeFs @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:228NodeFsHandler._handleFile @ /Users/usrNeko/black-screen/node_modules/chokidar/lib/nodefs-handler.js:255(anonymous function)\r\n ```\r\n\r\nAnd then, I input some shell command like `ls`, and raise the following error.\r\n```js\r\nUncaught (in promise) Error: EMFILE: too many open files, scandir '/Users/usrNeko/foo/todomvc/'(…)\r\nundefined:1 Uncaught (in promise) Error: EMFILE: too many open files, scandir '/Users/usrNeko/foo/todomvc/'(…)\r\n/Users/usrNeko/black-screen/compiled/src/Buffer.js:22 Uncaught (in promise) TypeError: value.charAt is not a function(…)\r\n```\r\n\r\nI assume it is caused by `fs` module in JS. However if I set `ulimit -n 65536`, it doesn't improve at all.\r\nAlthough I read a few lines of source codes of `black-screen`, I don't understand why it happened well so I've opened an issue.\r\n\r\nDo you have any solution?\r\n\r\nP.S.\r\nOh, and this is the most beautiful terminal I ever seen.\r\nI hope this will be a global standard terminal :)"},"comment":{"url":"https://api.github.com/repos/shockone/black-screen/issues/comments/221855044","html_url":"https://github.com/shockone/black-screen/issues/298#issuecomment-221855044","issue_url":"https://api.github.com/repos/shockone/black-screen/issues/298","id":221855044,"user":{"login":"shockone","id":188928,"avatar_url":"https://avatars.githubusercontent.com/u/188928?v=3","gravatar_id":"","url":"https://api.github.com/users/shockone","html_url":"https://github.com/shockone","followers_url":"https://api.github.com/users/shockone/followers","following_url":"https://api.github.com/users/shockone/following{/other_user}","gists_url":"https://api.github.com/users/shockone/gists{/gist_id}","starred_url":"https://api.github.com/users/shockone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockone/subscriptions","organizations_url":"https://api.github.com/users/shockone/orgs","repos_url":"https://api.github.com/users/shockone/repos","events_url":"https://api.github.com/users/shockone/events{/privacy}","received_events_url":"https://api.github.com/users/shockone/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T12:17:54Z","updated_at":"2016-05-26T12:17:54Z","body":"Fixed."}}
{"actor":{"display_login":"shockone"}}