Closed Bug 1765296 Opened 2 years ago Closed 11 months ago

Video share freezes if I put a video in fullscreen in Wayland

Categories

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

Firefox 99
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: a.geno, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

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

Steps to reproduce:

I use Discord or MS Teams and I share the screen, and then I go to youtube for example, and then I put a video in fullscreen.

I reported here: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1556 MONTHS AGO, and the issue is still there. But the difference is that the issue is gone with Chrome and Brave, but still occurs with Firefox, so I think it's a browser bug, not a pipewire bug.

Actual results:

I am seen as freezed, the video is blocked at the time of which I was putting in fullscreen, at the time where it was occuring the annimation from normal video view to fullscreen.

Expected results:

Shouldn't freeze and video should show

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

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Which system is that?

Blocks: wayland
Flags: needinfo?(a.geno)
Priority: -- → P3

Do I understand correctly that the video is played fine in fullscreen if screen sharing is not performed before?

Please try to install Firefox profiler and capture the profile when video is frozen:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Firefox_performance_issues
and share the profile here.
Thanks.

The videos shows fine in fullscreen, it's just the other person who is watching my video shared who sees me frozen. I have ArchLinux GNOME 42. I have this bug since months.

profiler crashed several times, but I finally was able to do one: https://share.firefox.dev/37v45Jl

Flags: needinfo?(a.geno)

I see a lot of JS code run during the jank - do you have any extensions installed? What does about:performance page say during the video playback? Can you try clean profile? Also does it affect fullscreen mode created by F11 key or does it affect only video playback fullscreen?

Flags: needinfo?(a.geno)

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

I see a lot of JS code run during the jank - do you have any extensions installed? What does about:performance page say during the video playback? Can you try clean profile? Also does it affect fullscreen mode created by F11 key or does it affect only video playback fullscreen?

Ok, I disabled all the extensions, but the bug still happens. Yes, if I hit F11 to fullscreen, the bug happens too.

This is what happens during the bug in about:performance... all seems good: https://imgur.com/a/aju0kgK

Flags: needinfo?(a.geno)

Does the problem also occur with https://nightly.mozilla.org?

Do you share the screen with Firefox on https://discord.com
or do you share the screen with the Discord Linux app?

Please open about:support, click on "Copy text to clipboard" and paste it here.

What I just tested and what works:

  1. Opened https://meet.jit.si in Nightly on Gnome Wayland on Debian Testing, created a room, shared the screen.
  2. Opened a YouTube video in a second tab, made it fullscreen.
  3. Joined the room with Nightly on Android, saw the shared screen with motion.
Attached file about:support

(In reply to Darkspirit from comment #8)

Does the problem also occur with https://nightly.mozilla.org?

Yes. Just tried.

Do you share the screen with Firefox on https://discord.com
or do you share the screen with the Discord Linux app?

Obviously on https://discord.com , otherwise I wouldn't report the bug here on Firefox. And again, the bug happens with MS Teams too.

What I just tested and what works:
Opened https://meet.jit.si in Nightly on Gnome Wayland on Debian Testing, created a room, shared the screen.
Opened a YouTube video in a second tab, made it fullscreen.
Joined the room with Nightly on Android, saw the shared screen with motion.

I did it, but I see this, freezed: https://imgur.com/a/fUccyTx

They may well be a Gnome bug around direct scanout in combination with screen-cast. Wayland EGL clients like Firefox quite reliably get direct scanout now, while Xwayland clients only when they're lucky - and IIRC never on recent AMD generations.

Does it still happen for you with a more recent Mutter version?

Flags: needinfo?(a.geno)

A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Closing the bug as incomplete.

For more information, please visit BugBot documentation.

Status: UNCONFIRMED → RESOLVED
Closed: 11 months ago
Flags: needinfo?(a.geno)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: