Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

PhantomJS crashes when used with Rspec/Capybara/Poltergeist #10765

Closed
ariya opened this issue Sep 9, 2012 · 3 comments
Closed

PhantomJS crashes when used with Rspec/Capybara/Poltergeist #10765

ariya opened this issue Sep 9, 2012 · 3 comments

Comments

@ariya
Copy link
Owner

ariya commented Sep 9, 2012

finites...@gmail.com commented:

Which version of PhantomJS are you using? Tip: run 'phantomjs --version'.

phantomjs-1.6.1-macosx-static installed via homebrew

What steps will reproduce the problem?
Install phantomjs & poltergeist. Add

require 'capybara/poltergeist'
Capybara.javascript_driver = :poltergeist

to spec/spec_helper.rb

Run rspec on tests with ':js => true'

What is the expected output? What do you see instead?

I expect the test suite to run, instead I get the following message:

 Capybara::Poltergeist::DeadClient:
   The PhantomJS client died while processing {"name":"visit","args":["http://127.0.0.1:59433/",{}]}

PhantomJS has crashed. Please file a bug report at https://code.google.com/p/phantomjs/issues/entry and attach the crash dump file: /tmp/3F54E4A4-3A84-4A7A-8F4A-B44A7F0A0971.dmp

Which operating system are you using?

Mac OSX Mountain Lion

Did you use binary PhantomJS or did you compile it from source?

phantomjs-1.6.1-macosx-static installed via homebrew

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #765.
🌟   3 people had starred this issue at the time of migration.

@ariya
Copy link
Owner Author

ariya commented Sep 10, 2012

daniel....@odacer.com commented:

Is it maybe because of TrueTypeFonts? I'm struggling with the same error (MacOs X + Poltergeist + PhantomJS) and I have also Font-Awesome in my setup. Regarging this reported issue..:

teampoltergeist/poltergeist#44

...I'll try now to disable all TrueTypeFonts and rerun my specs again. I'm keen if this would make a difference for you, too. Regards Loybert

@ariya
Copy link
Owner Author

ariya commented Sep 10, 2012

daniel....@odacer.com commented:

Update: all my tests pass, as i removed font-awesome from the asset-pipeline. I'll check if there's any possibility to make asset-requirements conditional, unless this issue persists.

Greetings Loybert

@ariya
Copy link
Owner Author

ariya commented Jan 12, 2013

ariya.hi...@gmail.com commented:

Can you try with version 1.8.1? The font crash has been fixed (issue 690).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants