electron / chromedriver

Download ChromeDriver for Electron
MIT License
130 stars 60 forks source link

ChromeDriver crashes when trying to start the exe program #69

Open kellyshang opened 4 years ago

kellyshang commented 4 years ago

(this issue was previous reported on electron-https://github.com/electron/electron/issues/25486, but they suggest me to report here)

Issue Details

Expected Behavior

Start the desktop app normally

Actual Behavior

With chromedriver-v9.1.2-win32-x64, when running UI automation test it always failed, below is the error stack related to the ChromeDriver: (PS. I also tried the chromedriver-v9.0.2-win32-x64, it fails frequently but sometimes success, it's weried)

[INFO] Running TestSuite
OS is: windows server 2019
The current git commit id is: fd7dca80
Starting ChromeDriver 83.0.4103.94 (8bd9e77c4b04cfdc0d98ce2ab9f1af8e6e457869-refs/heads/master@{#759982}) on port 11376
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.

[TestRunnerListener] Running 31 tests in 'Neuron UI Tests' using 1 threads
....
....
....

[ERROR] com.cryptape.neuron.CreateWalletTest.globalSetup  Time elapsed: 47.775 s  <<< FAILURE!
org.openqa.selenium.WebDriverException: 
unknown error: Chrome failed to start: crashed.
  (unknown error: unable to discover open pages)
  (The process started from chrome location C:\Users\Administrator\AppData\Local/Programs/Neuron/Neuron.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'EC2AMAZ-BU3BFBB', ip: '172.31.34.110', os.name: 'Windows Server 2019', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_261'
Driver info: driver.version: ChromeDriver
remote stacktrace: Backtrace:
    Ordinal0 [0x00007FF711D322E2+3220194]
    Ordinal0 [0x00007FF711BFFD12+1965330]
    Ordinal0 [0x00007FF711AC1B15+662293]
    Ordinal0 [0x00007FF711A3156D+71021]
    Ordinal0 [0x00007FF711A57B70+228208]
    Ordinal0 [0x00007FF711A54DCF+216527]
    Ordinal0 [0x00007FF711A3658F+91535]
    Ordinal0 [0x00007FF711A3774E+96078]
    Ordinal0 [0x00007FF711C18311+2065169]
    GetHandleVerifier [0x00007FF711E80FB9+1233401]
    GetHandleVerifier [0x00007FF711E80D40+1232768]
    GetHandleVerifier [0x00007FF711E8C09C+1278684]
    GetHandleVerifier [0x00007FF711E815C8+1234952]
    Ordinal0 [0x00007FF711C0F00A+2027530]
    Ordinal0 [0x00007FF711C19AF6+2071286]
    Ordinal0 [0x00007FF711C3280D+2172941]
    BaseThreadInitThunk [0x00007FFEB1CE7974+20]
    RtlUserThreadStart [0x00007FFEB3CBA261+33]

To Reproduce

Run UI automation test with chromedriver-v9.1.2-win32-x64 for desktop which based on Electron 9.1.2

benignoadame commented 1 year ago

I already give up, there is no money

adventurist commented 3 weeks ago

I'm having similar issues getting electron-chromedriver to launch Electron on Windows 10, and I've tried a variety of versions. I don't have this problem on Linux or Mac.