Closed Bug 1608933 Opened 4 years ago Closed 4 years ago

WebGL-based animation no longer loads after upgrading to FF72

Categories

(Core :: Graphics: CanvasWebGL, defect, P2)

72 Branch
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: shill, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

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

Steps to reproduce:

I play a (NSFW) web-based game.
After upgrading to FF72, the WebGL-based animations in the game no longer load.

Actual results:

Starting from a fresh profile with no add-ons doesn't help.
The web console prints:

PixiJS 4.7.1 - WebGL - http://www.pixijs.com/
Pixi.js Error: Could not initialize shader.
gl.VALIDATE_STATUS false
gl.getError() 0
Pixi.js Warning: gl.getProgramInfoLog() Programs with more than 16 samplers are disallowed on Mesa drivers to avoid crashing.
Error: WebGL warning: linkProgram: Programs with more than 16 samplers are disallowed on Mesa drivers to avoid crashing.
TypeError: Argument 1 of WebGLRenderingContext.getProgramParameter is not an object.

Starting in safe mode disables WebGL, so it is a work-around.
The web console prints:

PixiJS 4.7.1 - Canvas - http://www.pixijs.com/
Error: WebGL warning: <SetDimensions>: Failed to create WebGL context: WebGL is currently disabled.
Error: WebGL warning: <SetDimensions>: Failed to create WebGL context: WebGL is currently disabled.

about:support lists

HW_COMPOSITING
blocked by env: Acceleration blocked by platform
OPENGL_COMPOSITING
unavailable by default: Hardware compositing is disabled
GPU_PROCESS
unavailable by env: Hardware compositing is unavailable.
WEBRENDER
opt-in by default: WebRender is an opt-in feature
WEBRENDER_QUALIFIED
blocked-release-channel-intel by env: Release channel and Intel
WEBGPU
disabled by default: Disabled by default

Can you find the exact regression range?
https://mozilla.github.io/mozregression/quickstart.html

If not, then this needs steps to reproduce the issue so someone else can test.
https://developer.mozilla.org/en-US/docs/Mozilla/QA/Bug_writing_guidelines

Has Regression Range: --- → no
Has STR: --- → no
Component: Untriaged → Canvas: WebGL
Keywords: regression
Product: Firefox → Core

(In reply to Gingerbread Man from comment #1)

Can you find the exact regression range?
https://mozilla.github.io/mozregression/quickstart.html

The animations used to work in FF71.
They no longer work after upgrading to FF72.

In FF71, the web console printed:

PixiJS 4.7.1 - WebGL - http://www.pixijs.com/
Error: WebGL warning: drawElements: Tex image TEXTURE_2D level 0 is incurring lazy initialization.

But the game would otherwise work as expected.

Will check the release notes to see what has changed with respect to WebGL.

(In reply to Gingerbread Man from comment #1)

Can you find the exact regression range?
https://mozilla.github.io/mozregression/quickstart.html

By "exact regression range", do you mean running a bisection to find the exact commit that caused the regression?

Priority: -- → P2

(In reply to Mason from comment #3)

By "exact regression range", do you mean running a bisection to find the exact commit that caused the regression?

Using the mozregression tool, which is why I linked to it.

(In reply to Mason from comment #2)

Will check the release notes to see what has changed with respect to WebGL.

There's no mention of WebGL in either the regular release notes or the ones for developers. There are only 2 bugs in Canvas: WebGL that were fixed or verified in Firefox 72: bug 1594436 and bug 1601703. The hg.mozilla.org links there have download links for the first builds with those patches and the last ones without, in case you find that an easier starting point. Though the regression could've been caused by bugs filed in other components.

The plot thickens...
I'm working with https://ftp.mozilla.org/pub/firefox/releases/72.0.1/linux-x86_64/en-US/firefox-72.0.1.tar.bz2
When I run that version on my system (from a fresh profile), the WebGL animations fail to load -- as described in this bug report.

However, if I run that version (from a fresh profile) inside a docker container (of the same OS, Ubuntu 18.04) then the WebGL animations do load...

Maybe some shared library is being interposed? Any ideas?

(In reply to Mason from comment #5)

However, if I run that version (from a fresh profile) inside a docker container (of the same OS, Ubuntu 18.04) then the WebGL animations do load...

It's because WebGL support is disabled inside my docker container:

WebGL 1 Driver Renderer
WebGL creation failed:

  • Refused to create native OpenGL context because of blacklist entry: FEATURE_FAILURE_GLXTEST_FAILED
  • Exhausted GL driver options.

WebGL 2 Driver Renderer
WebGL creation failed:

  • Refused to create WebGL2 context because of blacklist entry: FEATURE_FAILURE_GLXTEST_FAILED

So the game engine falls back to another method (PixiJS 4.7.1 - Canvas).
I suppose a simple work-around would be to disable WebGL in my config.

Attached file bisect.txt

I found a way to install mozregression as a regular user.

11:51.63 INFO: No more inbound revisions, bisection finished.
11:51.63 INFO: Last good revision: c1063d9602955e5aa5011d5889109540ff92b2a1
11:51.63 INFO: First bad revision: 3e32f97460b0077a37eb5bfc40b30c0031c7e36f
11:51.63 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=c1063d9602955e5aa5011d5889109540ff92b2a1&tochange=3e32f97460b0077a37eb5bfc40b30c0031c7e36f

Points to Bug 1578576

Regressed by: angle-72
Has Regression Range: no → yes

Does it work in Beta? (bug 1603843 is fixed in 73)

Flags: needinfo?(shill)

(In reply to Jeff Gilbert [:jgilbert] from comment #9)

Does it work in Beta? (bug 1603843 is fixed in 73)

I used https://ftp.mozilla.org/pub/firefox/releases/73.0b5/linux-x86_64/en-US/firefox-73.0b5.tar.bz2
Yes, the game works (i.e. WebGL animations are loading correctly)

I don't suppose the fix would be back-ported to FF72 for this type of issue?

Flags: needinfo?(shill)

The issue has been solved in FF73.

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

Attachment

General

Creator:
Created:
Updated:
Size: