Skip to content

Selenium crashes with new chromedriver #2

@nradosevic

Description

@nradosevic

I downloaded the latest version of the chromedriver on my Mac, with which Selenium runs fine. Then I compiled this project for mac, and it succesfully patched the chromedriver, when I check it in hex editor, seems fine, only cdc variables have been replaced by some random strings.

However when I try to run Selenium using this new exec it crashes:

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Host info: host: 'Nikolas-MacBook-Pro-2.local', ip: 'fe80:0:0:0:10fc:9205:ef69:8927%en0'
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:561)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:229)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:157)
at org.openqa.selenium.chromium.ChromiumDriver.(ChromiumDriver.java:101)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:82)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:71)
at org.example.PatchedChromeDriver.main(PatchedChromeDriver.java:66)
Caused by: org.openqa.selenium.WebDriverException: Driver server process died prematurely.
Build info: version: '4.8.1', revision: '8ebccac989'
System info: os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '12.5', java.version: '17.0.5'
Driver info: driver.version: PatchedChromeDriver
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:244)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:98)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
... 6 morer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions