Skip to content
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

Occasional 'unable to obtain stable firefox connection' Error #45

Closed
travis-fillmore-ck opened this issue Jun 4, 2014 · 2 comments
Closed

Comments

@travis-fillmore-ck
Copy link

When attempting to run selenium webdriver tests with the headless gem (v1.0.1) on CentOS, we are seeing tests fail with the following message around ~5% of the time on our CI server:
unable to obtain stable firefox connection in 60 seconds

This seems very similar to the issue detailed in this closed ticket, and the more recent comments indicate that other people are seeing this problem as well. #33

When running with debug output we also see this error occur before the firefox timeout:
The application 'firefox' lost its connection to the display :1785.0; most likely the X server was shut down or you killed/destroyed the application.

Our tests should not be doing anything that would stop or restart the X server directly, as they are only accessing Xvfb through the headless gem. We are out of ideas to debug this issue, any information you might be able to provide would be greatly appreciated.

Full debug output can be seen here:
https://gist.github.com/tfillmore-ck/fcb534384752193ad4bd

@ZirconCode
Copy link

Ran into this error too. This problem only seems to occur when I ask the webdriver to start from a profile.

# Causes problem
headless = Headless.new
headless.start
profile = Selenium::WebDriver::Firefox::Profile.new
profile["media.volume_scale"] = 0.0
d = Selenium::WebDriver.for :firefox, :profile => profile

# Does not cause problem
headless = Headless.new
headless.start
d = Selenium::WebDriver.for :firefox

@leonid-shevtsov
Copy link
Owner

Closing this for old age (and sorry for not looking into it earlier!) - please reopen if you have any current issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants