Closed Hainish closed 7 years ago
Could this be similar to the issue[1] we are seeing with v1.5.1 (but not v1.5.0)?
[1] https://github.com/thoughtbot/capybara-webkit/issues/535#issuecomment-106643767
@aramprice I do encounter this with v1.5.0. Are you able to reproduce the error?
@Hainish - we have only seen this with v1.5.0. We are on OS X 10.10.4 using brew installed qt v4.8.6
There are more details in #535.
aram
I just released 1.5.2 with some crash fixes. Can you give that a try?
That seems to have resolved it, see https://github.com/thoughtbot/capybara-webkit/issues/535#issuecomment-110079824
@Hainish Can you confirm whether version 1.5.2 resolves this issue or not?
I faced this problem with qt5 and capybara-webkit 1.6.0. It runs on a headless Ubuntu 14.04 instance. Totally okay on my mac os 10.10.
EOFError: end of file reached
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/capybara-webkit-1.6.0/lib/capybara/webkit/connection.rb:55:in `read_nonblock'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/capybara-webkit-1.6.0/lib/capybara/webkit/connection.rb:55:in `read'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/capybara-webkit-1.6.0/lib/capybara/webkit/connection.rb:46:in `gets'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/capybara-webkit-1.6.0/lib/capybara/webkit/browser.rb:299:in `check'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/capybara-webkit-1.6.0/lib/capybara/webkit/browser.rb:211:in `command'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/capybara-webkit-1.6.0/lib/capybara/webkit/browser.rb:19:in `visit'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/capybara-webkit-1.6.0/lib/capybara/webkit/driver.rb:48:in `visit'
from /home/ubuntu/.rvm/gems/ruby-2.1.5/gems/capybara-2.4.4/lib/capybara/session.rb:227:in `visit'
Any ideas? It's a random failure.
I'm currently facing this problem with qt 5.2.1 using capybara-webkit 1.5.2 and running it on a headless Ubuntu 14.04.2 instance
EOFError: end of file reached
/var/lib/gems/1.9.1/gems/capybara-webkit-1.5.2/lib/capybara/webkit/connection.rb:49:in `read_nonblock'
/var/lib/gems/1.9.1/gems/capybara-webkit-1.5.2/lib/capybara/webkit/connection.rb:49:in `read'
/var/lib/gems/1.9.1/gems/capybara-webkit-1.5.2/lib/capybara/webkit/connection.rb:40:in `gets'
/var/lib/gems/1.9.1/gems/capybara-webkit-1.5.2/lib/capybara/webkit/browser.rb:283:in `check'
/var/lib/gems/1.9.1/gems/capybara-webkit-1.5.2/lib/capybara/webkit/browser.rb:210:in `command'
/var/lib/gems/1.9.1/gems/capybara-webkit-1.5.2/lib/capybara/webkit/browser.rb:18:in `visit'
/var/lib/gems/1.9.1/gems/capybara-webkit-1.5.2/lib/capybara/webkit/driver.rb:41:in `visit'
/var/lib/gems/1.9.1/gems/capybara-2.4.0/lib/capybara/session.rb:226:in `visit'
/var/lib/gems/1.9.1/gems/capybara-2.4.0/lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
/root/Content/lib/tasks/instagram.rake:35:in `block (3 levels) in <top (required)>'
/var/lib/gems/1.9.1/gems/activerecord-4.0.0/lib/active_record/relation/delegation.rb:13:in `each'
/var/lib/gems/1.9.1/gems/activerecord-4.0.0/lib/active_record/relation/delegation.rb:13:in `each'
/root/Content/lib/tasks/instagram.rake:32:in `block (2 levels) in <top (required)>'
Same code runs fine locally on my Mac OSX 10.10.4 Could this be a regression?
I've created a docker image for this issue. See https://github.com/Hainish/capybara-webkit-782
Interestingly, if I change the FROM
image from ubuntu
to debian
, I no longer encounter this error. So this looks to be ubuntu-specific, at least in this instance.
Any updates on this?
:+1: We're also having this issue in our travis-ci setup:
root@90e4d336f4e3:/# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
root@90e4d336f4e3:/# qmake -v
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
root@90e4d336f4e3:/#
capybara-webkit version 1.6.0
I had the same issue with capybara-webkit
. My environment is:
And I have tried with capybara-webkit
versions 1.4.1
, 1.5.0
, 1.6.0
.
After deep investigations I have found that capybara-webkit
in debug mode shows me a lot of error related to lib gstreamer
. Sorry, but I could not provide this debug for now.
Anyway I have resolve this issue with installing additional packeges:
apt-get install gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x
Please, let me know if it helps. Thanks
I got the same error using capybara-webkit 1.7.0 and qt 5.5.0 (from homebrew).
I rebuilt capybara-webkit with qt4, which seemed to resolve it on my local OS X...
gem uninstall capybara-webkit (selected "Remove all versions")
brew uninstall qt5
brew install qt4 (qt 4.8.7 was installed)
bundle
I got the same error using capybara-webkit 1.7.0 and qt 5.2.1.
me@mymachine:~$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
I tried the following without success:
1.7.0
gem with qt41.7.0
gem after installing gstreamer packages: gstreamer1.0-plugins-base
, gstreamer1.0-tools
, gstreamer1.0-x
1.6.0
, 1.5.2
, 1.4.1
, 1.3.1
, 1.2.0
, and 1.1.1
https://github.com/galaydaroman's fix, above, https://github.com/thoughtbot/capybara-webkit/issues/782#issuecomment-132461373 fixes the issue for me. I have a similar setup, only a different version of Qt: Docker Unbuntu:14.04 xvfb capybara-webkit-1.5.0 qt 4.8.6
galaydaroman's fix corrected this problem for me as well.
I can also confirm that it seems to work for me. Thanks @galaydaroman :+1:
No problem. Thanks for your response guys
Looks like gstreamer might be required for QtWebKit now? It looks like I have it installed locally as a dependency for something else.
I added the gstreamer libs to the section of the wiki on installing QtWebKit on Ubuntu -- please let me know or correct it if I've misstated anything, but this seems to be solving my problems!! :)
Indeed, I had these issues on CircleCI on Ubuntu Trusty (no capybara spec would pass):
Broken pipe
Connection reset by peer
EOFError
...and this circle.yml
fixed it all:
machine:
pre:
- sudo apt-get install gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x
Environment:
Capybara: 2.7.1
capybara-webkit: 1.11.1
Qt: 5.2.1
WebKit: 537.21
QtWebKit: 5.1.1
hi, problem on my application was with to many asset files. After adding to spec/rails_helper.rb
config.before(:suite) do
system('rake assets:precompile')
DatabaseCleaner.strategy = :truncation
end
config.after(:suite) do
system('rm -rf public/assets')
end
i could fix the issue
I had similar issue. EOFError: end of file reached + Broken pipe when used visit but only on some pages. The problem was very simple, I had javascript error on those pages, and it was causing CrashError in capybara-webkit.
I was getting EOFError on one server but not another, both running Ubuntu 14.04 with the same gem and Qt versions.
@galaydaroman 's fix in https://github.com/thoughtbot/capybara-webkit/issues/782#issuecomment-132461373 pointed me in the right direction - one server didn't have the gstreamer packages installed, after installing these and rebuilding the gems the error went away.
@Dimcha did you find a solution, we are facing a similar issue.
Closing due to age and that comments seem to indicate this was due to system config issues. If this is still an issue with current releases we can reopen when a way to replicate is provided
Apologies if this is a duplicate of #777. I'm getting this for
capybara-webkit
>= 1.3.0
,<= 1.5.1
,master
. Haven't tested earlier versions. I'm running this on a headless server withxvfb
Stack trace with
1.3.0
:Stack trace with
master
: