armhf chromedriver version doesn't match browser

Bug #1796356 reported by johnny chang on 2018-10-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Undecided
Unassigned

Bug Description

Hi, I installed chromium-browser and chromium-driver using apt-get
I ran two commands:
sudo apt-get install chromium-browser && sudo apt-get install chromium--chromedriver
But the versions doesn't seem to match each other.

I could not instantiate a simple browser using both Chromium-browser/chromedriver installed by the above command.
Tried with selenium module using python and it would just crash.

According to this link:
https://sites.google.com/a/chromium.org/chromedriver/downloads
ChromeDriver must be higher or equal to 2.41 for it to work with Chromium 69.

So, I ran the following commands, only to find out that the versions for these packages are not compatible with each other.
/usr/lib/chromium-browser/chromedriver --version
ChromeDriver 2.40
chromium-browser --version
Chromium 69.0.3497.81 Built on Ubuntu , running on Ubuntu 16.04

I would think this is a bug, since the versions are not compatible with each other would render the chromedriver useless but they should be compatible and cooperating just fine.

My previous question/discussion submitted in regards to this bug:
https://answers.launchpad.net/ubuntu/+source/chromium-browser/+question/674688

Additional info that might be helpful:
$ uname -a
Linux orangepizero 3.4.113-sun8i #4 SMP PREEMPT Wed Nov 22 13:45:28 CET 2017 armv7l armv7l armv7l GNU/Linux

$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial

$ dpkg -l | grep chromium
ii chromium-browser 69.0.3497.81-0ubuntu0.16.04.1 armhf Chromium web browser, open-source version of Chrome
ii chromium-chromedriver 69.0.3497.81-0ubuntu0.16.04.1 armhf WebDriver driver for the Chromium Browser
ii chromium-codecs-ffmpeg-extra 69.0.3497.81-0ubuntu0.16.04.1 armhf Extra ffmpeg codecs for the Chromium Browser

$ apt-cache policy chromium-browser chromium-chromedriver
chromium-browser:
  Installed: 69.0.3497.81-0ubuntu0.16.04.1
  Candidate: 69.0.3497.81-0ubuntu0.16.04.1
  Version table:
 *** 69.0.3497.81-0ubuntu0.16.04.1 500
        500 http://ports.ubuntu.com xenial-security/universe armhf Packages
        500 http://ports.ubuntu.com xenial-updates/universe armhf Packages
        100 /var/lib/dpkg/status
     49.0.2623.108-0ubuntu1.1233 500
        500 http://ports.ubuntu.com xenial/universe armhf Packages
chromium-chromedriver:
  Installed: 69.0.3497.81-0ubuntu0.16.04.1
  Candidate: 69.0.3497.81-0ubuntu0.16.04.1
  Version table:
 *** 69.0.3497.81-0ubuntu0.16.04.1 500
        500 http://ports.ubuntu.com xenial-security/universe armhf Packages
        500 http://ports.ubuntu.com xenial-updates/universe armhf Packages
        100 /var/lib/dpkg/status
     49.0.2623.108-0ubuntu1.1233 500
        500 http://ports.ubuntu.com xenial/universe armhf Packages

tags: added: xenial
Olivier Tilloy (osomon) wrote :

Thanks for the report Johnny, this appears to happen from time to time, the source tarball for chromium contains a non-compatible version of chromedriver. See bug #1722585.

Olivier Tilloy (osomon) wrote :

The version mismatch shouldn't be a problem, see comments #6 and #7 in bug #1722585.
Please share details about the crash you're getting when trying to use chromium-chromedriver.

Note that the autopkgtests for chromium-browser use chromium-chromedriver and they consistently pass, so you might want to take a look at how they are written, e.g. https://bazaar.launchpad.net/~chromium-team/chromium-browser/cosmic-stable/view/head:/debian/tests/chromium-version.

Changed in chromium-browser (Ubuntu):
status: New → Incomplete
johnny chang (hiimdoublej) wrote :

Below is a python snippet, which should attempt to initialize a webdriver instance.

from selenium import webdriver
browser = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver")
print("chrome driver init done")
browser.close()

And there's an error:

Traceback (most recent call last):
  File "selenium_t1.py", line 2, in <module>
    browser = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver")
  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 67, in __init__
    desired_capabilities=desired_capabilities)
  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 90, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 177, in start_session
    response = self.execute(Command.NEW_SESSION, capabilities)
  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/lib/chromium-browser/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
  (Driver info: chromedriver=2.40,platform=Linux 3.4.113-sun8i armv7l)

Olivier Tilloy (osomon) wrote :

That snippet works well here in an amd64 virtual machine, so I guess the problem is armhf-specific.
Can you actually run chromium (without chromedriver) on that hardware?

Launchpad Janitor (janitor) wrote :

[Expired for chromium-browser (Ubuntu) because there has been no activity for 60 days.]

Changed in chromium-browser (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions