-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Launcher: handle spawn error, when binary does not exist #452
Comments
I can confirm that setting env varible (User variable) CHROME_BIN to equal C:\Program Files\Google\Chrome\Application\chrome.exe resolves the problem well. |
I'm facing this one on WinXP. Chrome was earlier installed in a user dir, pointing there failed. I then created a copy as per vict-shevchenko and set the CHROME_BIN var to point there, but that resulted in the same error. Do I need to create a web-server.js for this? Sorry, I'm new to Angular / Git / Karma (just 2 hours old) |
On linux, this bug puts the process in a bad state - you can't ctrl-c (terminate) it, I had to background it (ctrl-z) and use |
@gfxmonk yep, we need to handle this exception and this will be fine. |
If the binary does not exists: - handle the error (Node 0.10+ throws unhandled error events) - show nicer message - do not retry Closes #452
Running Karma 0.8.0 on Windows 7, if my karma configuration has a single browser (and the binary does not exist), Karma hangs indefinitely. I see the following: INFO [karma]: Karma server started at http://localhost:9876/ If there is more than one browser in my configuration then I get the message about not being able to invoke kill() on undefined. NB I've worked-around the issue by throwing an error if self._process.pid == 0 after the spawn(). Don't think this is the NodeJS way to do it, but it works for me. this._execCommand = function(cmd, args) {
}; |
Should have mentioned I'm running Node v0.10.5 |
same here |
Guys, can you please update and check if it's fixed with 0.8.6 ? Even if the binary is not set correctly, it should fail, but not hang indefinitely. |
Yep, looks good to me on 0.8.6. |
It looks like node 0.10 has changed behavior of child_process.spawn to throw an exception when the binary does not exist:
From #400
We should handle that and display proper error message (can't find launcher binary, set env variable).
The text was updated successfully, but these errors were encountered: