emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots
MIT License
580 stars 54 forks source link

Firefox crash when trying to share screen #254

Open J0nnyMak0 opened 1 year ago

J0nnyMak0 commented 1 year ago

When trying to share screen with zoom on Firefox on Sway, browser crashes with error:

wl_surface@92: error 2: Buffer size (1001x64) is not divisible by scale (2)

To reproduce:

  1. Start Firefox with MOZ_ENABLE_WAYLAND=1
  2. Start zoom session on Firefox
  3. Hit Share screen
  4. 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)
  5. Click "Allow"
  6. 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.
  7. Click the screen you want to share.
  8. Crash Here is the link to the report: https://crash-stats.mozilla.org/report/index/e888f55f-832a-48b1-8434-31f680221129

I've also reported to mozilla here: https://bugzilla.mozilla.org/show_bug.cgi?id=1803016

ghost commented 1 year ago

What version of Firefox?

Please try latest nightly appimage here

J0nnyMak0 commented 1 year ago

What version of Firefox?

109.0a1 as recorded in the linked crash report.

smlx commented 1 year ago

Looks like this is a Firefox bug that recent versions of wlroots expose: https://github.com/swaywm/sway/pull/6844#issuecomment-1353478644

J0nnyMak0 commented 1 year ago

Thanks for the info! I'll update the mozilla report.