leonid-shevtsov / headless

Create a virtual X screen from Ruby, record videos and take screenshots.
http://leonid.shevtsov.me/en/headless
MIT License
968 stars 113 forks source link

Race condition when starting Xvfb #75

Closed NfNitLoop closed 8 years ago

NfNitLoop commented 8 years ago

Here's what can happen:

Then, Headless goes on using that display number, even though it's not the process we started. Even if we set resuse: false. When process A destroys its Xvfb, all of process B's X11 programs die unexpectedly.

When using Selenium, this usually expresses itself as an EOFError. The Selenium web driver loses its connection to the web browser when it's killed.

leonid-shevtsov commented 8 years ago

Fixed in version 2.2.3