Mapbox-gl-js: texImage2D/texSubImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads

Created on 14 Sep 2017  Ā·  10Comments  Ā·  Source: mapbox/mapbox-gl-js

Loading failed for the <script> with source ā€œhttps://assets.customer.io/assets/track.jsā€.
geojson-line:1
Loading failed for the <script> with source ā€œhttps://s.adroll.com/j/roundtrip.jsā€.
geojson-line:1
Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
texture.js:47:4
Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
line_atlas.js:139:12
Error: WebGL warning: texSubImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
line_atlas.js:146:16
Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
frame_history.js:70:8
Error: WebGL warning: texSubImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
frame_history.js:75:12
Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
texture.js:47:4
Error: WebGL warning: texSubImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
line_atlas.js:146:16
Error: WebGL warning: texSubImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
frame_history.js:75:12
Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
texture.js:47:4
Error: WebGL warning: texSubImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
line_atlas.js:146:16
Error: WebGL warning: texSubImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
frame_history.js:75:12
Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
texture.js:47:4
Error: WebGL warning: texSubImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
frame_history.js:75:12
Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
texture.js:47:4
Error: WebGL warning: texSubImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
frame_history.js:75:12
Content Security Policy: Directive ā€˜frame-src’ has been deprecated. Please use directive ā€˜child-src’ instead.
Error: WebGL warning: texSubImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
frame_history.js:75:12
Error: WebGL: No further warnings will be reported for this WebGL context. (already reported 32 warnings)
frame_history.js:75:12

mapbox-gl-js version: from website

Steps to Trigger Behavior

  1. Open Firefox

Expected Behavior

Shows example

Actual Behavior

Empty section with example

environment-specific

Most helpful comment

Just to note, this message has been upgraded to an error in FF at some point:

Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.

I spent a while searching bugzilla but I couldn't see if any newer issues update this since their last comment from two years ago, though it did become an error in that time.

All 10 comments

@jfirebaugh Looks like a WONTFIX. Should probably be fixed elsewhere?

It's my understanding that the Firefox team recommends that UNPACK_PREMULTIPLY_ALPHA_WEBGL not be used. Should mapbox-gl be updated to not use it?

IMO, the Firefox developers are being frustratingly obtuse. To remove the warning, GL JS would need to add code that does exactly what the browser already has an officially specified, built in way to do, and probably does faster than is possible in JS.

@jfirebaugh maybe in the case,.. discuss with Firefox devs.

Looks like there's no interest in addressing this in the nearest future, and warnings are pretty harmless, so I think we can close as stale for now.

Just to note, this message has been upgraded to an error in FF at some point:

Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.

I spent a while searching bugzilla but I couldn't see if any newer issues update this since their last comment from two years ago, though it did become an error in that time.

Can anyone confirm that this is still not fixed i.e. mapbox doesn't work in Firefox? The strange thing for me was it was working until I migrated a website and now it suddenly plays up.

mapbox doesn't work in Firefox?

While this warning is still present, mapbox-gl-js continues to work in the Firefox browser. If you are seeing issues with maps rendering in Firefox, please open a separate issue with a minimal reproducible case to help maintainers diagnose the root case.

How to solve this? I've been referring to mapbox tutorial and having the same error while plotting the pin on the map. Using Firefox and application is being made in django.

Was this page helpful?
0 / 5 - 0 ratings