PhantomJS crashing since yesterday


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
PhantomJS client died while processing {“name”:“visit”,“args”:[“”]}
# ./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.


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

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

Trouble shooting steps taken

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

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