Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

texImage2D/texSubImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads #5292

Closed
rofrol opened this issue Sep 14, 2017 · 10 comments

Comments

@rofrol
Copy link

rofrol commented Sep 14, 2017

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
  • Firefox 57.0a1 (2017-09-12) (64-bit)
  • Linux 4.10.0-33-generic Styling language #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  1. Go to https://www.mapbox.com/mapbox-gl-js/example/geojson-line/

Expected Behavior

Shows example

Actual Behavior

Empty section with example

@jfirebaugh
Copy link
Contributor

https://bugzilla.mozilla.org/show_bug.cgi?id=1400077

@yuvadm
Copy link

yuvadm commented Oct 14, 2017

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

@localjo
Copy link

localjo commented Mar 4, 2018

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?

@jfirebaugh
Copy link
Contributor

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.

@melroy89
Copy link

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

@mourner
Copy link
Member

mourner commented Sep 11, 2019

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.

@mourner mourner closed this as completed Sep 11, 2019
@ahk
Copy link
Contributor

ahk commented Sep 23, 2019

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.

@joehuggans
Copy link

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.

@asheemmamoowala
Copy link
Contributor

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.

@shaikharfan7
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests