PhantomJS crashing since yesterday


#1

Yesterday all of sudden our builds started to fail while running feature tests using Poltergeist and PhantomJS. These tests pass locally. We also tried to rebuild couple old builds which passed earlier, but they also face the same problem.

The error message:
Failure/Error: visit current_path
Capybara::Poltergeist::DeadClient:
PhantomJS client died while processing {“name”:“visit”,“args”:[“http://127.0.0.1:45404/campaigns/customer-service-representative/review”]}
# ./spec/features/campaigns/campaign_review_features_spec.rb:82:in block (2 levels) in <top (required)>' # /home/ubuntu/.rvm/gems/ruby-2.3.1@fuzu/gems/bundler-1.12.3/lib/bundler/cli/exec.rb:63:inload’

We didn’t change anything that has anything to do with this certain scenario, and also the old builds that passed earlier fail now as I said earlier.


#2

I’ve started seeing this as well. No changes to config or gemfile.
Stack
Rails 4.2.6
Ruby 2.3.0
Heroku / PostGres
Rspec + Capybara
Poltergeist

Error Message
Capybara::Poltergeist::DeadClient:
PhantomJS client died while processing {“id”:“xxxxx-xxxxx-xxxxx…”,“name”:“click”,“args”:[1,3]}

Trouble shooting steps taken

https://github.com/teampoltergeist/poltergeist/issues/232

added this to rails_helper.rb
config.after :each do |example|
page.driver.restart if defined?(page.driver.restart)
end

What happens when you run the tests locally
They pass without any issues

What is supposed to happen when your build runs
The test should pass. These error happen intermittently. The tests that fails
are also not the same from one build to another.

Note: id was a string of letters and numbers, I’ll replaced with x’s here for simplicity


#3