Open Bug 1426400 Opened 6 years ago Updated 2 years ago

Canvas capture in media element show no frames with intel gfx, win7

Categories

(Core :: Graphics: Layers, defect)

All
Windows 7
defect

Tracking

()

Tracking Status
firefox-esr52 --- unaffected
firefox58 --- wontfix
firefox59 --- wontfix
firefox60 --- fix-optional
firefox61 --- fix-optional

People

(Reporter: JuliaC, Unassigned)

References

Details

(Keywords: regression, Whiteboard: gfx-noted)

[Affected versions]:
- 59.0a1 (2017-12-19)
- 58.0b12 build1 (20171218174357)

[Affected platforms]:
- Windows 7 

[Steps to reproduce]:
1. Launch Firefox
2. Go to https://jsfiddle.net/pehrsons/7kgvL48e/
3. Go to the Sources section and check both Video and Canvas checkboxes 
4. Click the Start button
- inspect the video preview area from the bottom half of the page

[Expected result]:
- The video preview is properly displayed during the recording process

[Actual result]:
- The video preview is missing during the recording process

[Regression range]:
- See the pushlog https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=82c2d17e74ef9cdf38a5d5ac4eb3ae846ec30ba4&tochange=33b92d9c40562dab3d7b602368c75619f1d793f7)

[Additional notes]:
- This issue is only reproducible on Windows 7 platforms and for the canvas video source
- When trying to follow the same steps using Google Chrome, the expected behavior is triggered
Can you try to capture just one frame from a 2d canvas on the machine that is not working? Thanks.

An example:
Load https://codepen.io/eltonkamami/pen/ECrKd
You'll get an animating canvas in the bottom panel
Right click the canvas and click "View Image"

Expected: A still frame of the canvas becomes visible and loads with a "blob:..." url.


If this doesn't show on the affected machine I think we're dealing with a graphics issue.
Flags: needinfo?(iulia.cristescu)
(In reply to Andreas Pehrson [:pehrsons] from comment #1)
> Can you try to capture just one frame from a 2d canvas on the machine that
> is not working? Thanks.
> 
> An example:
> Load https://codepen.io/eltonkamami/pen/ECrKd
> You'll get an animating canvas in the bottom panel
> Right click the canvas and click "View Image"
> 
> Expected: A still frame of the canvas becomes visible and loads with a
> "blob:..." url.
> 
> 
> If this doesn't show on the affected machine I think we're dealing with a
> graphics issue.

Hello! Sorry for the late reply, I was on pto until today. 
Using the steps you provided above, I managed to capture one frame from the 2d canvas on the affected OS (see the screencast https://goo.gl/9aKbQg).
Flags: needinfo?(iulia.cristescu)
I forgot to mention that the used build was 58.0b13 (20171226085105).
Thanks Iulia. Another question based on a hunch here. Could you run through the STR in comment 0 in an affected debug build? Best case, some asserts or at least warnings are triggered.
Flags: needinfo?(iulia.cristescu)
(In reply to Andreas Pehrson [:pehrsons] from comment #4)
> Thanks Iulia. Another question based on a hunch here. Could you run through
> the STR in comment 0 in an affected debug build? Best case, some asserts or
> at least warnings are triggered.

I used the beta (20180104181908) win64-debug build (https://goo.gl/83PZfQ) on Windows 7 x64 and this is the behavior: https://goo.gl/Mnkbt8. The video preview is still missing and no warnings or errors are displayed on the test page or in the Browser Console. Please let me know if I have to look for asserts or warnings somewhere else.
Flags: needinfo?(iulia.cristescu)
They would appear on the command line if you launch firefox from one.

But an assert would take down the content process, so you didn't hit any of them at least.
I have to mention that for now I was able to reproduce this issue only on one Intel HD 4600 station. I will try to find a pattern here.
Andreas, it seems too late to fix the regression in FF58. Could you confirm?
Flags: needinfo?(apehrson)
Rank: 15
Priority: -- → P2
Too late to fix in 59, but we can still take a patch in Nightly if 61 is affected.
I'm letting this drop from regression triage for now.
I am not able to reproduce this on my Windows 10 machine. I can make an attempt with Windows 7 too, but from comment 7 it seemed to only affect a specific machine configuration. Iulia, do you have more details on that?
Flags: needinfo?(apehrson) → needinfo?(iulia.cristescu)
(In reply to Andreas Pehrson [:pehrsons] from comment #10)
> I am not able to reproduce this on my Windows 10 machine. I can make an
> attempt with Windows 7 too, but from comment 7 it seemed to only affect a
> specific machine configuration. Iulia, do you have more details on that?

As I already mentioned before, I only managed to reproduce this issue using Windows 7 (x64) and Intel HD Graphics 4600. I will try to find out if only Intel GPUs are affected.
Flags: needinfo?(iulia.cristescu)
Back with updates - it seems that indeed this issue is GPU related. Tested on the following GPUs:
- Intel HD Graphics 4600, Intel HD 2500, Intel HD Graphics 530 (all affected) 
- AMD Radeon HD 3000 (unaffected)
- NVIDIA GeForce GT 620 (unaffected) 

Affected versions:
- 60.0b6 build1 (20180322152034) (x86 & x64)
- 59.0.1 build1 (20180315233128) (x86 & x64)

Affected platforms:
- Windows 7 (x86 & x64)
There is bug 1348320 in the regression range which looks a little bit suspicious (intel-specific).
Flags: needinfo?(bas)
At [1] is a build with bug 1348320 backed out. Iulia, could you give this a go on one of the failing machines? [2] should be what you need.

[1] https://treeherder.mozilla.org/#/jobs?repo=try&revision=107b4d8c58e9cc5042480b2a059fed3fe98ab722
[2] https://queue.taskcluster.net/v1/task/ZXHCzl6VTfOBURRjSczwOg/runs/0/artifacts/public/build/target.zip
Flags: needinfo?(iulia.cristescu)
I can confirm that the issue is not reproducible on the above provided build, using the affected environments.
Flags: needinfo?(iulia.cristescu)
Thank you!

Over to gfx then. Clearing priority for re-triage.
Blocks: 1348320
Rank: 15
Component: Audio/Video: Recording → Graphics: Layers
Priority: P2 → --
Summary: The video preview is missing during canvas recording → Canvas capture in media element show no frames with intel gfx, win7
Assignee: nobody → bas
Whiteboard: gfx-noted
Assignee: bas → nobody
Flags: needinfo?(bas)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.