# PhantomJS crashing since yesterday

**URL:** <https://discuss.circleci.com/t/phantomjs-crashing-since-yesterday/4724>\
**Category:** Bug Reports\
**Created:** [June 22, 2016, 9:31am UTC](https://discuss.circleci.com/t/phantomjs-crashing-since-yesterday/4724 "2016-06-22T09:31:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JjyKs](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jjyks/32/13317_2.png) [@JjyKs](https://discuss.circleci.com/u/JjyKs)\
**Post date:** [June 22, 2016, 9:31am UTC](https://discuss.circleci.com/t/phantomjs-crashing-since-yesterday/4724/1 "2016-06-22T09:31:07Z")

</div>

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](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:in`load’

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.

---

<div class="post-metadata">

**Author:** ![dxypher](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/dxypher/32/2114_2.png) [@dxypher](https://discuss.circleci.com/u/dxypher)\
**Post date:** [March 26, 2017, 11:46pm UTC](https://discuss.circleci.com/t/phantomjs-crashing-since-yesterday/4724/2 "2017-03-26T23:46:26Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:34am UTC](https://discuss.circleci.com/t/phantomjs-crashing-since-yesterday/4724/3 "2018-06-18T11:34:15Z")

</div>


