Repository navigation
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
41.0.3
What operating system are you using?
Linux
Operating System Version
Fedora 43, GNOME/Mutter, Wayland, Intel integrated GPU
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
The GPU process should receive the same Wayland/GPU acceleration flags as standalone Chromium 146, enabling zero-copy buffer sharing and hardware-accelerated compositing via DRM render nodes.
Actual Behavior
The GPU process spawns as a zygote child (`--type=zygote --no-sandbox`) without any Wayland or GPU acceleration flags. This produces the error on every launch:
```
'--ozone-platform=wayland' is not compatible with Vulkan.
Consider switching to '--ozone-platform=x11' or disabling Vulkan
```
The GPU compositor falls back to a software/GL path, compositing on the CPU before submitting to the GPU.
Profiling data (8h overnight, identical content)
We built a digital signage player that runs on both Electron and standalone Chromium. Same PWA, same layouts, same machine. Here's the comparison:
CPU usage by process type:
| Process | Electron 41 | Chromium 146 | Ratio |
|---|---|---|---|
| GPU | 22% | 1.3% | 17x |
| Renderer | 17.5% | 1.9% | 9x |
| Main | 8.5% | 1.2% | 7x |
| Total | 48.5% | 5.5% | 9x |
GPU memory (PSS, proportional):
| Electron 41 | Chromium 146 | |
|---|---|---|
| GPU process PSS | 524 → 950 MB (growing) | 83 → 85 MB (stable) |
| DRM render engine time | 2,590s | 320s |
GPU process flags comparison:
Chromium 146 GPU process (working efficiently):
```
--type=gpu-process
--ozone-platform=wayland
--render-node-override=/dev/dri/renderD128
--enable-features=WaylandLinuxDrmSyncobj,AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL
```
Electron 41 GPU process (software fallback):
```
--type=zygote --no-sandbox
(no ozone, no render-node, no features)
```
The acceleration features ARE present in Electron's network/utility child processes but are NOT propagated to the zygote-spawned GPU child.
GPU memory leak
The GPU PSS grows from 524 MB to 950+ MB over 8 hours (texture accumulation from the software compositing path). Standalone Chromium's GPU stays flat at ~85 MB.
Related issues
This appears related to #36633 (Zero GPU Acceleration on Wayland, open since Electron 22). That issue has 38 comments and was last active in 2023.
Additional context
- Both Electron 40 (Chrome 144) and Electron 41 (Chrome 146) exhibit the same behavior
- Standalone Chromium 146.0.7680.80 on the same machine has zero GPU issues
- The fix landed in Chromium between 144-146 via `WaylandLinuxDrmSyncobj`, but Electron's zygote-based GPU spawning doesn't inherit these flags
- Intel integrated GPU with DRM render node at `/dev/dri/renderD128`
Possible workaround
Would passing `--in-process-gpu` merge the GPU compositor into the main process (which does have the correct features)? We haven't tested this yet.
Activity
linuxnow commentedon Mar 24, 2026
Update: --in-process-gpu does NOT work as a workaround
Tested
app.commandLine.appendSwitch('in-process-gpu')with Electron 41.0.3 on Wayland/Intel. Result:The Wayland ozone platform's EGL binding can't share pixmaps within a single process. The GPU context is immediately lost and the renderer gets no frames.
The separate GPU process works (via software compositing fallback) but is 5x less efficient than standalone Chromium's properly-flagged GPU process. The fix needs to happen in Electron's GPU process spawning to propagate
--ozone-platform=waylandand--render-node-overrideto the zygote child.linuxnow commentedon Mar 24, 2026
Fix found:
--no-zygoteresolves the GPU flag propagation issueAdding
app.commandLine.appendSwitch('no-zygote')beforeapp.whenReady()fixes the problem completely.Why it works: The zygote process pool forks children from a pre-existing process that was created before ozone-platform and GPU flags were applied.
--no-zygoteforces each child process to be spawned fresh viaposix_spawnwith the full command line, including--ozone-platform=wayland,--render-node-override, andWaylandLinuxDrmSyncobj.Results (Electron 41.0.3, Chrome 146, Wayland/Intel):
--type=zygote--type=gpu-process--ozone-platform=wayland --render-node-override=/dev/dri/renderD128 WaylandLinuxDrmSyncobjTrade-off: Slightly slower child process spawning (~100ms per process) since each is
posix_spawninstead offork. Irrelevant for long-running applications.Note: The
'--ozone-platform=wayland' is not compatible with Vulkanerror still appears at startup, but hardware GPU acceleration works correctly regardless.Suggested Electron fix: Detect Wayland sessions and either (a) disable zygote for the GPU process specifically, or (b) propagate
--ozone-platformand--render-node-overrideto the zygote pool so forked children inherit them.spencerwalsh651-cmyk commentedon Mar 24, 2026
nikwen commentedon Mar 24, 2026
Thanks for opening an issue!
Please follow our full bug report template and do not skip sections in it.
I'll close this issue, but please open a new issue that follows the template.
fix(desktop): Wayland GPU crash — pass ozone flags via launcher, not …