[Wayland] GTK3 causing Firefox crash when screensharing on Wayland with error: wl_surface@96: error 2: Buffer size (3836x2103) is not divisible by scale (2)
Steps to reproduce
Trying to screenshare (with zoom) in Sway via pipewire and xdg-desktop-portal-wlr crashes Firefox (109.0a1 (2022-11-28) (64-bit)):
To reproduce, On sway version 1.9-dev-dca0bb57 and latest xdg-desktop-portal-wlr/pipewire:
- Start zoom session on Firefox
- Hit Share screen
- Firefox asks for permission to see your screen with "Use operating system settings" selected in the drop down menu. (This is the only option available)
- Click "Allow"
- A "Sharing Indicator" window pops up with the following message: "You are sharing another application window" and "Stop Sharing" button.
- Simultaneously, you get an "overlay" that indicates which screen to share.
- Click the screen you want to share.
- crash
Version information
- GTK version: 3
- Linux Version: Arch 6.0.12-arch1-1
Warnings
Backtrace
- Here is the initial report to Mozilla
- https://bugzilla.mozilla.org/show_bug.cgi?id=1803016
- Here is the crash trace:
- https://crash-stats.mozilla.org/report/index/08e7779d-0fe8-4108-bd57-7e1c10221212
- Crash happening here: https://hg.mozilla.org/mozilla-central/file/bd8c9b741d01c77c5b52087717032ecbbfcafcf3/widget/gtk/nsWaylandDisplay.cpp#l275