protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Protractor hangs with (n) instances of webdriver still running

Open dborin opened this issue 12 years ago • 25 comments

Shutting down selenium standalone server. [launcher] 1 instance(s) of WebDriver still running Shutting down selenium standalone server. [launcher] 1 instance(s) of WebDriver still running

This sat on our Jenkins slave for 11 hours (overnight). You can clearly see where it indicates it there is one instance, it is "Shutting down..." but then there is still one instance.

Thoughts on how I can fix this so I can utilize the excellent sharding feature?

dborin avatar Jul 30 '14 15:07 dborin

Thanks spikey, for assisting on this.

i have few questions from other timeouts you mean? allScriptsTimeout: , getPageTimeout: and defaultTimeoutInterval:

i would like to understand what you mean by?

the process running grunt

amitojduggal avatar Feb 23 '16 05:02 amitojduggal

yes i mean allscriptsTimeout and defaultTimeoutInterval. We run grunt on windows by starting a process (.net) and this allows for a process timeout which was timing out before the tests completed, so however you run grunt, just make sure that you don't have any timeout is all i am saying.

Mike-Hardy avatar Feb 23 '16 11:02 Mike-Hardy

Alright, so it seems like timeout can be one of the factors to it. the only observation i can make about timeouts is that on the CI Jenkins environment, the suites run quicker as compared to on my machine. does that mean i should be reducing allscriptsTimeout and defaultTimeoutInterval. its like if suite 1 finishes in 500 second on my machine, it finishes in 300 in CI.

trying to play around with both times on my CI box, but cudnt work through yet...

amitojduggal avatar Feb 23 '16 19:02 amitojduggal

no success still with the settings, i somehow think its the same issue as reported with Chrome having issues with xvfb settings on Linux. i am not sure how to use the tullman's scripts with grunt. (from another thread" https://github.com/angular/protractor/issues/2419

amitojduggal avatar Mar 10 '16 12:03 amitojduggal

Seems like running chrome headless doesn't hang, Id recommend running headless anyway.

MrFrankel avatar Aug 03 '17 06:08 MrFrankel