0

I have the following configuration:

So according to https://firefox-source-docs.mozilla.org/testing/geckodriver/geckodriver/Support.html, this should work. However, running this simple python script:

from pyvirtualdisplay import Display
from selenium import webdriver
display = Display(visible=0, size=(1024, 768))
display.start()
driver = webdriver.Firefox()
driver.get('http://www.google.com/')
print browser.title
driver.quit()
display.stop()

returns the error:

Service geckodriver unexpectedly exited. Status code was: -11

I tried many things like update Selenium/geckodriver to latest releases, tried some releases in between (Selenium 3.0.2, Geckodriver 0.11.1 as stated in Selenium Firefox webdriver results in error: Service geckodriver unexpectedly exited. Status code was: 2) but still same error -11 (crash).

Any idea or working configuration? Thanks, Jean

Jean
  • 1
  • 3
  • Interesting... Where I try to run geckodriver (./geckodriver) I get segmentation fault or illegal instruction whatever version I'm using. I don't get it, what's wrong? – Jean Feb 22 '19 at 15:59

2 Answers2

0

OK this segmentation fault is the root cause, actually my rPI2 is ARM6 and geckodriver is available for ARM7 only:

So I have to go compile it for ARM6 or use a RPI3. Unless someone already compiled it for ARM6?

Jean
  • 1
  • 3
0

The crash could happen due to geckodriver being compiled for ARMV7, which is not compatible with some armv6 raspberry models. (while amrv7 is compatible with armv6)

Some similar problem, link from here: https://www.raspberrypi.org/forums/viewtopic.php?t=189633

So, solution would be compiling geckodriver for armv6, luckily somebody already compiled it for ARM6:

https://github.com/d0ku/GeckoDriver_ARMv6