Closed Bug 1920061 Opened 2 months ago Closed 2 months ago

Frequent switching between normal video and pip resulted in the video image no longer appearing in the pip window, although the audio would play.

Categories

(Toolkit :: Picture-in-Picture, defect, P3)

Desktop
Windows 11
defect

Tracking

()

VERIFIED FIXED
133 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- disabled
firefox130 --- disabled
firefox131 --- disabled
firefox132 --- verified
firefox133 --- verified

People

(Reporter: alice0775, Assigned: sotaro)

References

(Regression)

Details

(Keywords: nightly-community, regression)

Attachments

(2 files)

Steps to reproduce:

  1. Open youtube video and playback
    e.g. http://www.youtube.com/watch?v=BH0BNbwqNK8
  2. Click pip toggle button in location bar Ctrl+Shift+]
  3. Repeat Step 2 about 10 times at approximately 0.5-1.0 second intervals.

Actual results:
Pip window becomes black, no video image. But audio is playing.
When this occurs, video image stops in the browser after turning off the pip window
Profiler log: https://share.firefox.dev/3XQE0fi

Expected results:
Video images should also play normally in pip or main browser

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=5886d166601b6c778a05c9f7028d4bdafd7b829c&tochange=d52c1ab80f0123ce77837924151f04efcab45623

Attached file about:support

Set release status flags based on info from the regressing bug 1899450

:sotaro, since you are the author of the regressor, bug 1899450, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(sotaro.ikeda.g)

I take a look.

Assignee: nobody → sotaro.ikeda.g
Flags: needinfo?(sotaro.ikeda.g)
Severity: -- → S4
Priority: -- → P3

It seemed that the problem seemed to happen with any GPU that enables zero copy video with hardware video decoding. And the problem was addressed by pause and resume the video.

On AMD GPUs, Bug 1899450 caused the regression. For Intel GPUs and NVIDIA GPUs, the problem already existed.

It seems necessary to clear all images of secondary ImageContainer, when it is removed from VideoSink.

Pushed by sikeda.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/57d00570b136 Clear all images of secondary ImageContainer, when it is removed from VideoSink r=media-playback-reviewers,karlt

Set release status flags based on info from the regressing bug 1899450

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch

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

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

For more information, please visit BugBot documentation.

Flags: needinfo?(sotaro.ikeda.g)

Alice0775 White, can you check if the problem is addressed with latest nightly?

Flags: needinfo?(alice0775)

I managed to reproduce the issue on Nightly133.0a1(20240930215150) Windows11.
And I verified the fix on latest Nightly133.0a1(20241003094710) Windows11.

Status: RESOLVED → VERIFIED
Flags: needinfo?(alice0775)

Great! Thank you.

Flags: needinfo?(sotaro.ikeda.g)

Comment on attachment 9427671 [details]
Bug 1920061 - Clear all images of secondary ImageContainer, when it is removed from VideoSink

Beta/Release Uplift Approval Request

  • User impact if declined: zero video frame happen with the STR of Bug 1920061 comment 0 when zero video frame copy is enabled.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The change just clear posted video frames from obsolete pip VideoSink.
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9427671 - Flags: approval-mozilla-beta?

Comment on attachment 9427671 [details]
Bug 1920061 - Clear all images of secondary ImageContainer, when it is removed from VideoSink

Approved for 132.0b4.

Attachment #9427671 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

Reproduced this issue on an affected nightly from 2024-09-20, on Win 10.
Verified as fixed on Firefox 132.0b4 (20241007091632) using Win 10 and Win 11.

Flags: qe-verify+
See Also: → 1923697
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: