Closed Bug 1743381 Opened 3 years ago Closed 3 years ago

Firefox crash or image corrupted/broken when screen sharing an XWayland window on Firefox on Wayland

Categories

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

Firefox 94
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: nf.pereira, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached image XWayland corrupt screen share.jpg (deleted) —

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0

Steps to reproduce:

  1. Open a site that uses WebRTC like https://mozilla.github.io/webrtc-landing/gum_test.html
  2. Press "Screen capture"
  3. Select an XWayland window to share.
  4. Observe the corrupted shared window (check attachment) or observe Firefox crashing.

Actual results:

The window capture being shared is corrupted (check attachment), or Firefox crashes.

Expected results:

The picture should not be corrupted and Firefox should not crash.
On Wayland windows, this works perfectly.

Forgot to mention this is on the latest Manjaro KDE stable, with Firefox running in Wayland (MOZ_ENABLE_WAYLAND=1).

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

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Blocks: pipewire
Priority: -- → P3

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

Can you test latest nightly?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems?rd=Bug_info_Firefox#Testing_Mozilla_binaries
Thanks.

Just tested the latest Nightly and the problem still occurs .

Flags: needinfo?(nf.pereira)

(In reply to nf.pereira from comment #4)

Just tested the latest Nightly and the problem still occurs .

Can you share your about:support from nightly, that would be super helpful to know better what kind of setup we're dealing with.

(In reply to Robert Mader [:rmader] from comment #5)

(In reply to nf.pereira from comment #4)

Just tested the latest Nightly and the problem still occurs .

Can you share your about:support from nightly, that would be super helpful to know better what kind of setup we're dealing with.

Sure. Here goes:
https://pastebin.com/6h4AyzhJ

I've just noticed that this also happens in a similar way in OBS Studio on Wayland. It might not be a Firefox problem after all.
I'll close this issue. Feel free to reopen it if you think it should be left open.

I noticed on Firefox the mouse pointer is not captured though. But I'll open a different issue for that, if it does not exist already.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: