[BUG] electron.launch: Process failed to launch on Ubuntu github action
See original GitHub issueContext:
- Playwright Version: 1.18.1
- Operating System: Ubuntu 20.04.3
- Node.js version: 16
- Browser: Electron
- Extra: Github action https://github.com/cawa-93/vite-electron-builder/runs/5109754099?check_suite_focus=true
Describe the bug
I’m trying to run a simple electron test on different platforms. The test works on Windows (In GH action and on the local machine), on macos in GH action but does not work on Ubuntu in GH action. Unfortunately, I do not have the ability to test this on Ubuntu on a local machine.
Error: electron.launch: Process failed to launch!
❯ tests/e2e.spec.ts:10:31
8|
9| beforeAll(async () => {
10| electronApp = await electron.launch({args: ['.']});
| ^
11| });
12|
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
[BUG] Electron not running in GitHub actions CI for ubuntu ...
I was running into this same issue, and it seems the most likely issue is the electron process failing on startup immediately. If...
Read more >[BUG] Electron app hangs during launch process · Issue #9351
It seems that attaching the debugger, which happens on the previous 2 lines of code, causes the process to hang after emitting "Waiting...
Read more >microsoft/playwright-vscode - Electron failed to launch #100
When attempting to run tests using Electron 17.0.1 it appears that playwright is unable to start Electron returning a "electron.launch: ...
Read more >"gpu process launch failed: error_code=40" · Issue #32074 ...
When I opened the app, the app should be launched without any error. Actual Behavior. Created a demo electron app with electron version>=10...
Read more >Electron 5 failing to launch on WSL #17321 - GitHub
The link is that the GPU process is launched sandboxed in v5, even if no renderer processes are. Does Chromium launch without error...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This fix for me:
I solve to env of extends.