SeleniumHQ / selenium-ide

Open Source record and playback test automation for the web.
https://selenium.dev/selenium-ide/
Apache License 2.0
2.8k stars 762 forks source link

Failed to start chromedriver process #1676

Closed zxp19821005 closed 1 year ago

zxp19821005 commented 1 year ago

🐛 Bug

When I downloaded the latest release: Selenium.IDE-4.0.0-alpha.41.AppImage,and give it the executeable access,I got errors:

$ ./selenium-ide-4.0.0_alpha.41.AppImage 
10:34:18.190 › Missing method for path plugins.projectCreate, using passthrough
10:34:18.197 › Missing method for path plugins.projectDelete, using passthrough
10:34:18.197 › Missing method for path plugins.projectEdit, using passthrough
10:34:18.198 › Missing method for path recorder.selectElement, using passthrough
10:34:18.198 › Missing method for path recorder.setWindowHandle, using passthrough
10:34:18.199 › Missing method for path state.set, using passthrough
10:34:18.199 › Missing method for path state.setActiveSuite, using passthrough
10:34:18.199 › Missing method for path state.setActiveTest, using passthrough
10:34:18.199 › Missing method for path state.setCopiedCommands, using passthrough
10:34:18.200 › Missing method for path state.toggleBreakpoint, using passthrough
10:34:18.200 › Missing method for path state.toggleSuiteMode, using passthrough
10:34:18.200 › Missing method for path state.toggleUserPrefDisableCodeExportCompat, using passthrough
10:34:18.200 › Missing method for path state.updateStepSelection, using passthrough
10:34:18.201 › Missing method for path state.updateTestSelection, using passthrough
10:34:18.201 › Missing method for path suites.addTests, using passthrough
10:34:18.201 › Missing method for path suites.delete, using passthrough
10:34:18.201 › Missing method for path suites.removeTests, using passthrough
10:34:18.201 › Missing method for path suites.reorderTests, using passthrough
10:34:18.201 › Missing method for path suites.update, using passthrough
10:34:18.201 › Missing method for path tests.delete, using passthrough
10:34:18.202 › Missing method for path tests.removeSteps, using passthrough
10:34:18.202 › Missing method for path tests.rename, using passthrough
10:34:18.202 › Missing method for path tests.reorderSteps, using passthrough
10:34:18.202 › Missing method for path tests.toggleStepDisability, using passthrough
10:34:18.202 › Missing method for path tests.updateStep, using passthrough

DevTools listening on ws://127.0.0.1:8315/devtools/browser/19f62f26-9307-4ffd-8dd0-48cd46221149
webdriver-error: '/tmp/.mount_seleni9Im7z7/resources/app.asar.unpacked/node_modules/electron-chromedriver/bin/chromedriver: /tmp/.mount_seleni9Im7z7/resources/app.asar.unpacked/node_modules/electron-chromedriver/bin/chromedriver: cannot execute binary file\n'
10:34:18.448 › Failed to start chromedriver process /tmp/.mount_seleni9Im7z7/resources/app.asar.unpacked/node_modules/electron-chromedriver/bin/chromedriver: /tmp/.mount_seleni9Im7z7/resources/app.asar.unpacked/node_modules/electron-chromedriver/bin/chromedriver: cannot execute binary file

api: 'Dispatch event' 'system.onLog' [
  'error',
  '[\n' +
    "  'Failed to start chromedriver process',\n" +
    "  '/tmp/.mount_seleni9Im7z7/resources/app.asar.unpacked/node_modules/electron-chromedriver/bin/chromedriver: /tmp/.mount_seleni9Im7z7/resources/app.asar.unpacked/node_modules/electron-chromedriver/bin/chromedriver: cannot execute binary file\\n'\n" +
    ']'
]
webdriver-error: 'driver has exited with code 126'
[78389:0720/103419.333258:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.DBus.StartServiceByName: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

To Reproduce

Just run the command:

 ./selenium-ide-4.0.0_alpha.41.AppImage 

Expected behavior

The program normlly started.

Project file reproducing this issue (highly encouraged)

None

Environment

OS: EndeavourOS 6.1.38-2-lts x86_64 Selenium IDE Version: 4.0.0_alpha.41 Node version: v20.4.0 Browser: Browser Version: ungoogled-chromium 114.0.5735.198

zxp19821005 commented 1 year ago

When I use electron25(25.3.0) directlly run the asar file,I got same errors:

$ electron25 src/squashfs-root/resources/app.asar 
10:44:15.291 › Missing method for path plugins.projectCreate, using passthrough
10:44:15.294 › Missing method for path plugins.projectDelete, using passthrough
10:44:15.294 › Missing method for path plugins.projectEdit, using passthrough
10:44:15.294 › Missing method for path recorder.selectElement, using passthrough
10:44:15.294 › Missing method for path recorder.setWindowHandle, using passthrough
10:44:15.295 › Missing method for path state.set, using passthrough
10:44:15.295 › Missing method for path state.setActiveSuite, using passthrough
10:44:15.295 › Missing method for path state.setActiveTest, using passthrough
10:44:15.295 › Missing method for path state.setCopiedCommands, using passthrough
10:44:15.295 › Missing method for path state.toggleBreakpoint, using passthrough
10:44:15.296 › Missing method for path state.toggleSuiteMode, using passthrough
10:44:15.296 › Missing method for path state.toggleUserPrefDisableCodeExportCompat, using passthrough
10:44:15.296 › Missing method for path state.updateStepSelection, using passthrough
10:44:15.296 › Missing method for path state.updateTestSelection, using passthrough
10:44:15.296 › Missing method for path suites.addTests, using passthrough
10:44:15.296 › Missing method for path suites.delete, using passthrough
10:44:15.296 › Missing method for path suites.removeTests, using passthrough
10:44:15.296 › Missing method for path suites.reorderTests, using passthrough
10:44:15.296 › Missing method for path suites.update, using passthrough
10:44:15.296 › Missing method for path tests.delete, using passthrough
10:44:15.296 › Missing method for path tests.removeSteps, using passthrough
10:44:15.296 › Missing method for path tests.rename, using passthrough
10:44:15.296 › Missing method for path tests.reorderSteps, using passthrough
10:44:15.296 › Missing method for path tests.toggleStepDisability, using passthrough
10:44:15.296 › Missing method for path tests.updateStep, using passthrough

DevTools listening on ws://127.0.0.1:8315/devtools/browser/0694c20d-73ee-4c23-902c-5a3b3fd5a267
10:44:15.393 › Failed to start chromedriver process /home/zxp-endeavouros/.cache/paru/clone/selenium-ide-appimage/src/squashfs-root/resources/app.asar.unpacked/node_modules/electron-chromedriver/bin/chromedriver: /home/zxp-endeavouros/.cache/paru/clone/selenium-ide-appimage/src/squashfs-root/resources/app.asar.unpacked/node_modules/electron-chromedriver/bin/chromedriver: cannot execute binary file

[79497:0720/104416.355069:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.DBus.StartServiceByName: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
toddtarsi commented 1 year ago

@zxp19821005 - Yeah, latest in alpha is kaputt. I'm sorry. 39 should work as needed. I incremented everything to latest for compliance stuff, and I'm still sorting out what I broke exactly. Thank you for including excellent debug info and stack information. 😄

toddtarsi commented 1 year ago

@zxp19821005 - Also, if you manually build it works. I believe something changed in either the .pnpm structure or the electron builder output location that has things a bit borked.

toddtarsi commented 1 year ago

@zxp19821005 - v42 is out, and its a bit closer. This weekend I'll get the rest of it. Sorry again about that, came up 5 major versions last week to clear some soc2 stuff

toddtarsi commented 1 year ago

@zxp19821005 - Things are quite stable. I'm working on some CI tests to avoid allowing releases in that state going forward.

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.