electron: [Bug]: Screen sharing crashes app on Ubuntu 22.04.2 LTS
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
25.3.0
What operating system are you using?
Other Linux
Operating System Version
Ubuntu 22.04.2 LTS
What arch are you using?
x64
Last Known Working Electron version
21.4.4
Expected Behavior
App should not crash when using desktopCapturer on Ubuntu 22.04.2 LTS (Gnome 42.9
/ PipeWire 0.3.48
/ Wayland).
Actual Behavior
App crashes, see video.
[10441:0717/143633.964276:ERROR:egl_dmabuf.cc(608)] Failed to record frame: Error creating EGLImage - EGL_NOT_INITIALIZED
[10441:0717/143633.964294:ERROR:shared_screencast_stream.cc(940)] Dropping DMA-BUF modifier: 72057594037927935 and trying to renegotiate stream parameters
To reproduce issue,
- Install Ubuntu 22.04.2 LTS (issue is not present in live mode)
- Install curl, git and libfuse2 (
sudo add-apt-repository -y universe && sudo apt install -y curl git libfuse2
) - Install Electron Fiddle (
curl -LO https://github.com/electron/fiddle/releases/download/v0.33.0/electron-fiddle_0.33.0_amd64.deb && sudo dpkg -i electron-fiddle_0.33.0_amd64.deb
) - Load and run
https://gist.github.com/c4e0a8bf08f4fea0680abe0702e93a1c
using Electron Fiddle - Click “Step 1” button and select window
- Click “Step 2” button
- Move app window
Testcase Gist URL
https://gist.github.com/c4e0a8bf08f4fea0680abe0702e93a1c
Additional Information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 20 (6 by maintainers)
Great, thanks! That confirms that 311541: PipeWire capturer: increase buffer size to avoid buffer overflow will fix the issue. This is already on main, but it’ll have to be backported to stable branches. While we’re at it, it might be worth picking up 305120: PipeWire capturer: fix fcntl call when duplicating a file descriptor as well, as it fixes another PipeWire issue.