{"action":"created","issue":{"url":"https://api.github.com/repos/Behat/MinkZombieDriver/issues/120","labels_url":"https://api.github.com/repos/Behat/MinkZombieDriver/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/Behat/MinkZombieDriver/issues/120/comments","events_url":"https://api.github.com/repos/Behat/MinkZombieDriver/issues/120/events","html_url":"https://github.com/Behat/MinkZombieDriver/issues/120","id":53357779,"number":120,"title":"PHP fatal error in context file leads to node process stucking","user":{"login":"jazzfog","id":3300853,"avatar_url":"https://avatars.githubusercontent.com/u/3300853?v=3","gravatar_id":"","url":"https://api.github.com/users/jazzfog","html_url":"https://github.com/jazzfog","followers_url":"https://api.github.com/users/jazzfog/followers","following_url":"https://api.github.com/users/jazzfog/following{/other_user}","gists_url":"https://api.github.com/users/jazzfog/gists{/gist_id}","starred_url":"https://api.github.com/users/jazzfog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazzfog/subscriptions","organizations_url":"https://api.github.com/users/jazzfog/orgs","repos_url":"https://api.github.com/users/jazzfog/repos","events_url":"https://api.github.com/users/jazzfog/events{/privacy}","received_events_url":"https://api.github.com/users/jazzfog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-05T02:05:26Z","updated_at":"2015-01-05T09:47:42Z","closed_at":null,"body":"I have such case: PHP fatal error in context (like attempt to click not existing button `$this->getSession()->getPage()->findButton('NotExisting')->click();`) leads to `Node` process stucking - repeated `Behat` start fails because `Node` can not reuse port which is already in use.\r\n\r\nFirst start\r\n\r\n```\r\n# php ./composer/vendor/behat/behat/bin/behat\r\n\r\n...[feature description skipped]...\r\n\r\nPHP Fatal error:  Call to a member function click() on a non-object \r\nin /project/tests/behat/features/bootstrap/Search.php on line 17\r\n\r\nFatal error: Call to a member function click() on a non-object \r\nin /project/tests/behat/features/bootstrap/Search.php on line 17\r\n```\r\n\r\nSecond start and further\r\n\r\n```\r\n# php ../../composer/vendor/behat/behat/bin/behat\r\n\r\n...[feature description skipped]...\r\n\r\nServer process has been terminated: (8) [\r\nevents.js:72\r\n      throw er; // Unhandled 'error' event\r\n            ^\r\nError: listen EADDRINUSE\r\n  at errnoException (net.js:904:11)\r\n  at Server._listen2 (net.js:1042:14)\r\n  at listen (net.js:1064:10)\r\n  at net.js:1146:9\r\n  at Object._onImmediate (/usr/lib/node_modules/zombie/lib/zombie/dns_mask.js:69:16)\r\n  at processImmediate [as _immediateCallback] (timers.js:345:15)\r\n] (RuntimeException)\r\n```\r\n\r\nSo all my further calls will fail, and the only thing i can do here is to go to server, run `netstat -tulpn` and `kill <node PID>`.\r\n\r\nIs there anything you can do about it?"},"comment":{"url":"https://api.github.com/repos/Behat/MinkZombieDriver/issues/comments/68686550","html_url":"https://github.com/Behat/MinkZombieDriver/issues/120#issuecomment-68686550","issue_url":"https://api.github.com/repos/Behat/MinkZombieDriver/issues/120","id":68686550,"user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T09:47:42Z","updated_at":"2015-01-05T09:47:42Z","body":"I got that eventually and posted 2nd comment as you can see. If you can arrange a PR with a fix or at least explain the fixing concept to me (if you have no experience with NodeJS stuff fixing), then I would be glad to help."}}