-
Notifications
You must be signed in to change notification settings - Fork 121
PhantomJS was not killed in 2000 ms, sending SIGKILL #27
Comments
Also on Windows 8.1, x64 |
i have the same problem windows 8, x64 |
This might be related to karma-runner/karma#946 |
I found the cause. On Windows If I change
Then is works perfectly.
Now, I need a suggestion for how to fix this. One way is that |
Now returns the node.exe process that runs phantom instead of the phantomjs.cmd process Closes karma-runner#27
Thanks @sylvain-hamel ! Stupid Windows, this should kill all children processes too. Besides, I don't understand how it is possible that it worked in 0.10 and does not work in 0.12. Anyway, I can't think of any better solution than your hack. Isn't there any way to tell Windows to kill child processes when killing a batch process? I mean, even the node process starts another process (phantom.exe) and that one apparently works fine. |
@vojtajina, It did not work w/ 0.10 either. I'll send a PR for my hack then. |
Now returns the node.exe process that runs phantom instead of the phantomjs.cmd process Closes karma-runner#27
I have to do this to solve a similiar problem in my protractor tests. The command I use is: taskkill /T /F /PID <process id> /T: Terminates the specified process and any child processes which were started by it. This often for me throws up an error trying to terminate some of the child processes (possibly because the parent already killed it?), but it does the job. I don't know if there's a better way. |
I was having the same problem, except the "fix" I changed the platform check to: and now everything works fine. Definitely YMMV |
@shovemedia the fix that you are refering to was changed a few days later. See #33. Have you tried this version? |
I'm encountering this with 1.0.4, I wonder what is the go to solution these days. |
I've noticed this only fails when passing the |
We are facing same issue even we are not passing |
@priyankabmohite and anyone else still following this. Our solution to this and other phantomjs related issues (including it using a very dated webkit engine) was pretty blunt in the end; we moved to ChromeHeadless and have had zero problems since. Update: I've just noticed the PhantomJS project is now archived, so jumping ship seems especially prudent. |
Hi,
On our machines
karma-phantomjs-launcher
is not able stop PhantomJS when usingsingleRun: true
.The output is:
PhantomJS was not killed in 2000 ms, sending SIGKILL
I have to
CTRL+C
to stop it.Tested on:
Thanks
The text was updated successfully, but these errors were encountered: