mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.14k stars 1.52k forks source link

geckodriver unexpectedly exited. Status code was: 64 #2024

Closed daeeros closed 2 years ago

daeeros commented 2 years ago

System

Stacktrace

 raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: 64
whimboo commented 2 years ago

Could you please attach a trace-level log from geckodriver? Read more about reporting actionable bugs in our contribution guidelines.

Also are you really using geckodriver 0.31.0 here? If yes which arguments are getting passed to the Service by Selenium?

whimboo commented 2 years ago

Closing due to missing feedback from reporter.

fenchu commented 2 years ago

Hi I have the same error: same spec as above:

  File "c:\dist\work\multitenant-fullstack-test\tools\selenium.py", line 189, in myWebdriver
    driver = webdriver.Firefox(options=options, desired_capabilities=d)
  File "C:\dist\venvs\multitenant-fullstack-test\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 175, in __init__
    self.service.start()
  File "C:\dist\venvs\multitenant-fullstack-test\lib\site-packages\selenium\webdriver\common\service.py", line 98, in start
    self.assert_process_still_running()
  File "C:\dist\venvs\multitenant-fullstack-test\lib\site-packages\selenium\webdriver\common\service.py", line 110, in assert_process_still_running
    raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: 64

my config is:

        if os.environ['WEBDRIVER'].lower()=='firefox':
            # profiles is buggy in firefox either blank or not load at all
            options = selenium.webdriver.firefox.options.Options()
            options.log.level = "trace"
            d = DesiredCapabilities.FIREFOX
            d['loggingPrefs'] = {'browser': 'ALL'}
            driver = webdriver.Firefox(options=options, desired_capabilities=d)

This used to work fine with older geckodrivers, our web-frontend has for a long time crashed when using firefox, so I just wantet to test if it worked with 0.31.0 geckodriver

fenchu commented 2 years ago

I found the rootcause, it was wrong geckodriver in path:

geckodriver.exe --version
geckodriver 0.29.0 (cf6956a5ec8e 2021-01-14 10:31 +0200)

updated to v0.31.0 it is all fine. Could you please add some versioning control into geckodriver, like chromedriver has had for years.

whimboo commented 2 years ago

We keep our version backward compatible so no new release is needed compared to chromedriver whenever the browser gets updated. And this is a real benefit. As such it's on the users behalf to use the correct version of geckodriver with Selenium.