Closed Bug 1803016 Opened 3 years ago Closed 2 years ago

[Wayland] Screesharing using xdg-desktop-portal-wlr on Sway crashes latest Nightly: wl_surface@103: error 2: Buffer size (1001x64) is not divisible by scale (2)

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 109
x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox-esr102 --- wontfix
firefox110 --- wontfix
firefox111 --- wontfix
firefox112 --- wontfix
firefox113 --- fixed

People

(Reporter: jhnmlkvch9, Assigned: stransky)

References

(Blocks 2 open bugs)

Details

(Keywords: crash)

Crash Data

Attachments

(2 files)

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:

  1. Start zoom session on Firefox
  2. Hit Share screen
  3. 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)
  4. Click "Allow"
  5. A "Sharing Indicator" window pops up with the following message:
    "You are sharing another application window" and "Stop Sharing" button.
  6. 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

Actual results:

Browser crashed

Expected results:

Browser start sharing screen.

The Bugbug bot thinks this bug should belong to the 'Core::WebRTC' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → WebRTC
Product: Firefox → Core

wl_surface@92: error 2: Buffer size (1001x64) is not divisible by scale (2)
https://crash-stats.mozilla.org/report/index/e888f55f-832a-48b1-8434-31f680221129

An issue with Wayland and capture + painting, or maybe widget related? Bouncing to graphics for triage.

Blocks: gfx-triage
See Also: → 1803066

(In reply to Jonny Mako from comment #0)

Sway

(In reply to Jim Mathies [:jimm] from comment #2)

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

That's bug 1795851.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Duplicate of bug: 1795851
Resolution: --- → DUPLICATE

That bug does not seem to fix the issue in this case. I'm still getting the crash with latest nightly:

https://crash-stats.mozilla.org/report/index/08e7779d-0fe8-4108-bd57-7e1c10221212

Status: RESOLVED → UNCONFIRMED
No longer duplicate of bug: 1795851
Resolution: DUPLICATE → ---

Thanks for testing!

Blocks: wayland
Status: UNCONFIRMED → NEW
Crash Signature: [@ wl_log ]
Component: WebRTC → Widget: Gtk
Ever confirmed: true
Keywords: crash
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
See Also: → 1795851
Summary: Screesharing using xdg-desktop-portal-wlr on Sway crashes Firefox → Screesharing using xdg-desktop-portal-wlr on Sway crashes latest Nightly: wl_surface@103: error 2: Buffer size (1001x64) is not divisible by scale (2)
Flags: needinfo?(stransky)
Priority: -- → P3

FYI, here is a discussion on Sway to the related wlroots assert to enforce wayland protocol that might be causing this crash:

https://github.com/swaywm/sway/pull/6844#issuecomment-1353478644

and commit:

https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/18595000f3a21502fd60bf213122859cc348f9af

Do I understand correctly that this crash is about cursor surfaces? In such case it's a bug in Gtk and not in Firefox itself.

Summary: Screesharing using xdg-desktop-portal-wlr on Sway crashes latest Nightly: wl_surface@103: error 2: Buffer size (1001x64) is not divisible by scale (2) → [Wayland] Screesharing using xdg-desktop-portal-wlr on Sway crashes latest Nightly: wl_surface@103: error 2: Buffer size (1001x64) is not divisible by scale (2)
Blocks: wayland-sway
No longer blocks: wayland

I've opened an issue with GTK:
https://gitlab.gnome.org/GNOME/gtk/-/issues/5463

Martin, could you please apply a severity to this one?

No longer blocks: gfx-triage
Flags: needinfo?(stransky)
Severity: -- → S3
Flags: needinfo?(stransky)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #9)

Do I understand correctly that this crash is about cursor surfaces? In such case it's a bug in Gtk and not in Firefox itself.

I believe it's the other way around: wlroots allows cursor surfaces to use the protocol incorrectly, but other surfaces trying to do so will trigger the error seen in this bug.

Sorry for removing the keyword earlier but there is a recent change in the ranking, so the bug is again linked to a topcrash signature, which matches the following criterion:

  • Top 10 desktop browser crashes on nightly

For more information, please visit auto_nag documentation.

Keywords: topcrash
See Also: → 1820293
Flags: needinfo?(stransky)
Assignee: nobody → stransky
Status: NEW → ASSIGNED
Flags: needinfo?(stransky)
Duplicate of this bug: 1820293

Based on the topcrash criteria, the crash signature linked to this bug is not a topcrash signature anymore.

For more information, please visit auto_nag documentation.

Keywords: topcrash
Blocks: 1807798
Attachment #9325400 - Attachment description: Bug 1803016 [Wayland] Don't commit wl_buffer if buffer scale doesn't match its size r?rmader → Bug 1803016 [Wayland] Don't commit wl_buffer if buffer scale doesn't match its size r?rmader,emilio
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/1068e0955cfb [Wayland] Don't commit wl_buffer if buffer scale doesn't match its size r=emilio
Status: ASSIGNED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch

The patch landed in nightly and beta is affected.
:stransky, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox112 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(stransky)
Flags: needinfo?(stransky)
Duplicate of this bug: 1826020

Copying crash signatures from duplicate bugs.

Crash Signature: [@ wl_log ] → [@ wl_log ] [@ libwayland-client.so.0@0xb939]
Crash Signature: [@ wl_log ] [@ libwayland-client.so.0@0xb939] → [@ wl_log ] [@ libwayland-client.so.0@0xb939]
Flags: qe-verify+
Duplicate of this bug: 1822520
Duplicate of this bug: 1538435

I'm still seeing this crash in latest nightly: 114.0a1 (2023-04-18) (64-bit)

(In reply to Jonny Mako from comment #25)

I'm still seeing this crash in latest nightly: 114.0a1 (2023-04-18) (64-bit)

Please file a new bug for it and attach a backtrace of the crash there (from about:crashes).
Thanks.

Flags: needinfo?(jhnmlkvch9)
Duplicate of this bug: 1828763
Duplicate of this bug: 1830883
Duplicate of this bug: 1831262
Regressions: 1831557
No longer regressions: 1831557

(In reply to Martin Stránský [:stransky] (ni? me) from comment #26)

(In reply to Jonny Mako from comment #25)

I'm still seeing this crash in latest nightly: 114.0a1 (2023-04-18) (64-bit)

Please file a new bug for it and attach a backtrace of the crash there (from about:crashes).
Thanks.

I can reliable reproduce this crash, but the crash reporter does not open. How do I force the crash reporter to open?

Flags: needinfo?(jhnmlkvch9)

(In reply to Jonny Mako from comment #30)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #26)

(In reply to Jonny Mako from comment #25)

I'm still seeing this crash in latest nightly: 114.0a1 (2023-04-18) (64-bit)

Please file a new bug for it and attach a backtrace of the crash there (from about:crashes).
Thanks.

I can reliable reproduce this crash, but the crash reporter does not open. How do I force the crash reporter to open?

Also there are no crashes in Help->More Troubleshooting Information

Attached file ff.log

Here is the next best thing I could think of, given I'm unable to get the crash reporter to appear. Attaching wayland debug log.

If someone can help me fix the issue with crash reporter, I'll open a new report as requested by Martin @stransky.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Also, the crash happens when display scale factor is anything other than 1. My entry in Sway config is:

output eDP-1 pos 0 0 mode 3840x2160 scale 1.5

Blocks: 1832158

Let's continue in bug 1832158 (slightly different crash reason).

Status: REOPENED → RESOLVED
Closed: 3 years ago2 years ago
Resolution: --- → FIXED
No longer blocks: 1831557
No longer blocks: 1831557
Duplicate of this bug: 1831557
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: