issue with firefox4 #313

Closed
jamescway opened this Issue Apr 2, 2011 · 9 comments

Comments

Projects
None yet
4 participants
@jamescway

I received this error with firefox4, when I switched back to firefox 3.6 it worked.

 Selenium::WebDriver::Error::WebDriverError:
   unable to start Firefox cleanly, args: ["-silent"]
@jarib

This comment has been minimized.

Show comment
Hide comment
@jarib

jarib Apr 2, 2011

Contributor

This should really be reported to the Selenium tracker, as it's very unlikely to be a bug in Capybara.

That being said, this is a great example of a really bad bug report - you haven't provided any info about your environment that we can use to further investigate the issue.

Contributor

jarib commented Apr 2, 2011

This should really be reported to the Selenium tracker, as it's very unlikely to be a bug in Capybara.

That being said, this is a great example of a really bad bug report - you haven't provided any info about your environment that we can use to further investigate the issue.

@jamescway

This comment has been minimized.

Show comment
Hide comment
@jamescway

jamescway Apr 2, 2011

My apologies, ruby 1.9.2p180, Rails 3.0.3, Capybara 0.4.1.2, Firefox 3.6.12, Firefox 4, OSX 10.5.8. I created a bare bones test and added the :js => true and saw the error above. I found a an issue on the selenium tracker which reports something similar to this (http://code.google.com/p/selenium/issues/detail?id=1438&q=firefox%204&colspec=ID%20Stars%20Type%20Status%20Priority%20Milestone%20Owner%20Summary)

My apologies, ruby 1.9.2p180, Rails 3.0.3, Capybara 0.4.1.2, Firefox 3.6.12, Firefox 4, OSX 10.5.8. I created a bare bones test and added the :js => true and saw the error above. I found a an issue on the selenium tracker which reports something similar to this (http://code.google.com/p/selenium/issues/detail?id=1438&q=firefox%204&colspec=ID%20Stars%20Type%20Status%20Priority%20Milestone%20Owner%20Summary)

@jamescway jamescway closed this Apr 2, 2011

@jarib

This comment has been minimized.

Show comment
Hide comment
@jarib

jarib Apr 2, 2011

Contributor

Hi,

The linked issue is unrelated to launching Firefox.

  • Is the problem consistent- i.e. does it fail every time, or just sometimes?
  • What version of the selenium-webdriver gem do you have installed? (0.1.4 adds Fx4 support)
  • Please attach the full output from running this script https://gist.github.com/899798 (either in a gist or inside a <pre> element here).
Contributor

jarib commented Apr 2, 2011

Hi,

The linked issue is unrelated to launching Firefox.

  • Is the problem consistent- i.e. does it fail every time, or just sometimes?
  • What version of the selenium-webdriver gem do you have installed? (0.1.4 adds Fx4 support)
  • Please attach the full output from running this script https://gist.github.com/899798 (either in a gist or inside a <pre> element here).
@jamescway

This comment has been minimized.

Show comment
Hide comment
@jamescway

jamescway Apr 2, 2011

  1. Yes it fails every time (including from running your test script). Browser has never opened with the exception of switching down to FF3.6
  2. Using selenium-webdriver 0.1.4, tried to uninstall and reinstall just in case, no luck
  3. https://gist.github.com/899980 I think you may have suggested to someone else to disable native events and I tried to do a test run, it shows the script I used in the gist. I also added some getsockaddr commands that were suggested just in case.
  4. I doubt this will help but I have no antivirus software.

Thanks for your help, please let me know if I'm barking up the wrong tree.

  1. Yes it fails every time (including from running your test script). Browser has never opened with the exception of switching down to FF3.6
  2. Using selenium-webdriver 0.1.4, tried to uninstall and reinstall just in case, no luck
  3. https://gist.github.com/899980 I think you may have suggested to someone else to disable native events and I tried to do a test run, it shows the script I used in the gist. I also added some getsockaddr commands that were suggested just in case.
  4. I doubt this will help but I have no antivirus software.

Thanks for your help, please let me know if I'm barking up the wrong tree.

@jarib

This comment has been minimized.

Show comment
Hide comment
@jarib

jarib Apr 2, 2011

Contributor

Hi,

dyld: unknown required load command 0x80000022

Looks like you're hitting this issue.

You should be able to reproduce the problem outside WebDriver by launching Firefox from the shell directly, i.e.:

$ /Applications/Firefox.app/Contents/MacOS/firefox-bin -silent

I can't really tell what the proper solution would be without getting my hand on a Leopard machine, but one possible workaround would be to strip the x86_64 parts from the firefox-bin binary, which should be possible with the ditto command.

Contributor

jarib commented Apr 2, 2011

Hi,

dyld: unknown required load command 0x80000022

Looks like you're hitting this issue.

You should be able to reproduce the problem outside WebDriver by launching Firefox from the shell directly, i.e.:

$ /Applications/Firefox.app/Contents/MacOS/firefox-bin -silent

I can't really tell what the proper solution would be without getting my hand on a Leopard machine, but one possible workaround would be to strip the x86_64 parts from the firefox-bin binary, which should be possible with the ditto command.

@jarib

This comment has been minimized.

Show comment
Hide comment
@jarib

jarib Apr 2, 2011

Contributor

Looks like this has been WONTFIXed by Mozilla

https://bugzilla.mozilla.org/show_bug.cgi?id=602049

Contributor

jarib commented Apr 2, 2011

Looks like this has been WONTFIXed by Mozilla

https://bugzilla.mozilla.org/show_bug.cgi?id=602049

@jamescway

This comment has been minimized.

Show comment
Hide comment
@jamescway

jamescway Apr 2, 2011

It worked! Thanks! Firefox comes up in the rspec test now. I was able to confirm the problem from the command line.

cd /Applications/Firefox.app/Contents/MacOS
mv firefox-bin firefox-bin.original
ditto --arch i386 firefox-bin.original firefox-bin

It worked! Thanks! Firefox comes up in the rspec test now. I was able to confirm the problem from the command line.

cd /Applications/Firefox.app/Contents/MacOS
mv firefox-bin firefox-bin.original
ditto --arch i386 firefox-bin.original firefox-bin

@danigb

This comment has been minimized.

Show comment
Hide comment
@danigb

danigb Apr 13, 2011

Yeah!! That solution worked for me too! Thanks!!

danigb commented Apr 13, 2011

Yeah!! That solution worked for me too! Thanks!!

@edsimpson

This comment has been minimized.

Show comment
Hide comment
@edsimpson

edsimpson Jun 11, 2011

The following work-around does not require touching the Firefox binary.
Create an executable shell script with the following contents.

#!/bin/sh

arch -i386 /Applications/Firefox.app/Contents/MacOS/firefox-bin $*

Then add the following to features/support/env.rb, replacing 'path_to_script' with the location of the above script.

require 'selenium-webdriver'
Selenium::WebDriver::Firefox.path = 'path_to_script'

The following work-around does not require touching the Firefox binary.
Create an executable shell script with the following contents.

#!/bin/sh

arch -i386 /Applications/Firefox.app/Contents/MacOS/firefox-bin $*

Then add the following to features/support/env.rb, replacing 'path_to_script' with the location of the above script.

require 'selenium-webdriver'
Selenium::WebDriver::Firefox.path = 'path_to_script'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment