{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/405","labels_url":"https://api.github.com/repos/segmentio/nightmare/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/nightmare/issues/405/comments","events_url":"https://api.github.com/repos/segmentio/nightmare/issues/405/events","html_url":"https://github.com/segmentio/nightmare/issues/405","id":123639580,"number":405,"title":"Crashing with no useful information","user":{"login":"contra","id":425716,"avatar_url":"https://avatars.githubusercontent.com/u/425716?v=3","gravatar_id":"","url":"https://api.github.com/users/contra","html_url":"https://github.com/contra","followers_url":"https://api.github.com/users/contra/followers","following_url":"https://api.github.com/users/contra/following{/other_user}","gists_url":"https://api.github.com/users/contra/gists{/gist_id}","starred_url":"https://api.github.com/users/contra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contra/subscriptions","organizations_url":"https://api.github.com/users/contra/orgs","repos_url":"https://api.github.com/users/contra/repos","events_url":"https://api.github.com/users/contra/events{/privacy}","received_events_url":"https://api.github.com/users/contra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-23T10:59:03Z","updated_at":"2015-12-23T20:48:47Z","closed_at":null,"body":"After opening one instance then in series loading 10,000 pages (sometimes it happens even lower, around 1000) this happens:\r\n\r\n```\r\nNightmare runner error:\r\n\r\n\tError: Uncaught, unspecified \"error\" event. ([object Object])\r\n\t    at EventEmitter.emit (events.js:144:17)\r\n\t    at EventEmitter.<anonymous> (/Users/contra/Projects/college-scrapers/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/atom.asar/browser/api/lib/web-contents.js:85:27)\r\n\t    at emitTwo (events.js:87:13)\r\n\t    at EventEmitter.emit (events.js:172:7)\r\n```\r\n\r\nand the process crashes"},"comment":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/comments/166987614","html_url":"https://github.com/segmentio/nightmare/issues/405#issuecomment-166987614","issue_url":"https://api.github.com/repos/segmentio/nightmare/issues/405","id":166987614,"user":{"login":"contra","id":425716,"avatar_url":"https://avatars.githubusercontent.com/u/425716?v=3","gravatar_id":"","url":"https://api.github.com/users/contra","html_url":"https://github.com/contra","followers_url":"https://api.github.com/users/contra/followers","following_url":"https://api.github.com/users/contra/following{/other_user}","gists_url":"https://api.github.com/users/contra/gists{/gist_id}","starred_url":"https://api.github.com/users/contra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contra/subscriptions","organizations_url":"https://api.github.com/users/contra/orgs","repos_url":"https://api.github.com/users/contra/repos","events_url":"https://api.github.com/users/contra/events{/privacy}","received_events_url":"https://api.github.com/users/contra/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T20:48:47Z","updated_at":"2015-12-23T20:48:47Z","body":"Solved the problem by reusing a new nightmare instance for each request, but the overhead on this is making everything quite a bit slower. I think this demonstrates that it's a leak in the nightmare instance that was loading 10K pages and not a leak in any of the other application code."}}