{"action":"created","issue":{"url":"https://api.github.com/repos/leizongmin/node-lei-stream/issues/1","labels_url":"https://api.github.com/repos/leizongmin/node-lei-stream/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/leizongmin/node-lei-stream/issues/1/comments","events_url":"https://api.github.com/repos/leizongmin/node-lei-stream/issues/1/events","html_url":"https://github.com/leizongmin/node-lei-stream/issues/1","id":121983104,"number":1,"title":"autoNext = false 且文件行数过多时报错","user":{"login":"sjfkai","id":7581901,"avatar_url":"https://avatars.githubusercontent.com/u/7581901?v=3","gravatar_id":"","url":"https://api.github.com/users/sjfkai","html_url":"https://github.com/sjfkai","followers_url":"https://api.github.com/users/sjfkai/followers","following_url":"https://api.github.com/users/sjfkai/following{/other_user}","gists_url":"https://api.github.com/users/sjfkai/gists{/gist_id}","starred_url":"https://api.github.com/users/sjfkai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjfkai/subscriptions","organizations_url":"https://api.github.com/users/sjfkai/orgs","repos_url":"https://api.github.com/users/sjfkai/repos","events_url":"https://api.github.com/users/sjfkai/events{/privacy}","received_events_url":"https://api.github.com/users/sjfkai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-14T06:33:29Z","updated_at":"2015-12-14T08:07:55Z","closed_at":null,"body":"`autoNext: false` 文件行数为 `20000+`\r\n```\r\nRangeError: Maximum call stack size exceeded\r\n    at new TickObject (node.js:482:24)\r\n    at process.nextTick (node.js:500:26)\r\n    at ReadLineStream.next (C:\\Git\\programming-pearls\\chapter1\\node_modules\\lei-stream\\lib\\readline.js:74:13)\r\n    at ReadLineStream.<anonymous> (C:\\Git\\programming-pearls\\chapter1\\index.js:31:10)\r\n    at emitOne (events.js:77:13)\r\n    at ReadLineStream.emit (events.js:169:7)\r\n    at ReadLineStream.next (C:\\Git\\programming-pearls\\chapter1\\node_modules\\lei-stream\\lib\\readline.js:107:8)\r\n    at ReadLineStream.<anonymous> (C:\\Git\\programming-pearls\\chapter1\\index.js:31:10)\r\n    at emitOne (events.js:77:13)\r\n    at ReadLineStream.emit (events.js:169:7)\r\n```\r\n\r\n\r\n暂时的解决方法:\r\n\r\n```\r\n// 读取到一行数据时触发data事件 \r\ns.on('data', function (line) {\r\n\tconsole.log(line);\r\n\tprocess.nextTick(function () {\r\n\t\ts.next();\r\n\t});\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/leizongmin/node-lei-stream/issues/comments/164373574","html_url":"https://github.com/leizongmin/node-lei-stream/issues/1#issuecomment-164373574","issue_url":"https://api.github.com/repos/leizongmin/node-lei-stream/issues/1","id":164373574,"user":{"login":"sjfkai","id":7581901,"avatar_url":"https://avatars.githubusercontent.com/u/7581901?v=3","gravatar_id":"","url":"https://api.github.com/users/sjfkai","html_url":"https://github.com/sjfkai","followers_url":"https://api.github.com/users/sjfkai/followers","following_url":"https://api.github.com/users/sjfkai/following{/other_user}","gists_url":"https://api.github.com/users/sjfkai/gists{/gist_id}","starred_url":"https://api.github.com/users/sjfkai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjfkai/subscriptions","organizations_url":"https://api.github.com/users/sjfkai/orgs","repos_url":"https://api.github.com/users/sjfkai/repos","events_url":"https://api.github.com/users/sjfkai/events{/privacy}","received_events_url":"https://api.github.com/users/sjfkai/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T08:07:55Z","updated_at":"2015-12-14T08:07:55Z","body":"文件内为7位纯数字一行时，20,000行左右就会报错。但我将`test/file/json_big.txt`复制到了200,000行也并没有报错。目前搞不懂是为什么。"}}