-
Notifications
You must be signed in to change notification settings - Fork 200
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
Chrome driver keeps crashing when i run wct #3229
Comments
Bump |
Filled this upstream here https://bugs.chromium.org/p/chromedriver/issues/detail?id=2190&can=2&start=0&num=100&q=&colspec=ID%20Status%20Pri%20Owner%20Summary&groupby=&sort= Seems this problem is related to chrome supporting headless mode. Seems a bug was introduced that means that UI less os's will have to use headless mode otherwise chrome wont work for them. |
Thanks for the info. We'll work on supporting headless. |
Thanks :). |
Not sure if this will solve the problem, but if you |
@justinfagnani i've copy parts of wct-headless over here Polymer/wct-local#71 |
@paladox I've updated + "wct-local": "paladox/wct-local#patch-3",
+ "web-component-tester": "6.4.2" But somehow wct can not find the
Update: I'm obviously too dumb for |
You need to also do 'plugins': { |
@hastebrot did you install that globally? Needs to be installed globally. |
Thanks. I'll add a |
Oh sorry got the configuration wrong, it’s this 'plugins': {
'local': {
'skipSeleniumInstall': true,
'disabled': false,
'browsers': [
'chrome'
],
'browsersOptions': {
'chrome': [
'start-maximized',
'headless',
'disable-gpu',
'no-sandbox'
]
}
}
} |
Great. It worked with your However I had to use Update: I have to double check, Travis seems to have only used firefox for tests... This is strange, because I'm telling it explicitly in the call to use both browsers: Update update: Ok, now it runs on chrome and twice on firefox (which is also strange, I say "chrome" in the config, and "chrome,firefox" in the command line...). But at least I can confirm that the fix works. |
Will be fixed once https://github.com/Polymer/web-component-tester/issues/670 is done. |
I've now created a Unfortunately wct seems to ignore the When I use the default config file Update: As I use Update 2: Yeah, somehow the {
"suites": [
"test/index.html"
],
"environmentImports": [
"test-fixture/test-fixture.html"
],
"plugins": {
"local": {
"browserOptions": {
"chrome": [
"headless",
"disable-gpu",
"no-sandbox"
],
"firefox": [
"-headless"
]
}
}
}
} |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed after being marked stale. If you're still facing this problem with the above solution, please comment and we'll reopen! |
Hi, we are trying to update the os that is run on gerrit's ci. But we are finding chrome is crashing (failing the tests).
I run
./polygerrit-ui/app/run_test.sh
But then it fails with
Error: Error: [get("http://localhost:8000/components/tmp.clZ2Ko6zjG/generated-index.html?cli_browser_id=0")] Error response status: 6 Selenium error: no such session
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.9.49-moby x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 16 milliseconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700'
System info: host: '369da22d71d9', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.9.49-moby', java.version: '1.8.0_151'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{message=unknown error: Chrome failed to start: crashed
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.9.49-moby x86_64), platform=ANY}]
Session ID: e1d6ecb57ad22749b1db498385b80231
I tryed everything from using --no-sandbox to --headless and still does not work.
We are trying to update the os to stretch.
https://gerrit-review.googlesource.com/#/c/gerrit-ci-scripts/+/139511/
This only happends inside docker.
The text was updated successfully, but these errors were encountered: