-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Firefox WebGL warning (Alpha-premult and y-flip are deprecated for non-DOM-Element uploads). #2030
Comments
Since the issue is known at least from 2017, vide mapbox/mapbox-gl-js#5292 is there any plan to fix/workaround/address this problem? |
Can you please share a reproduction of this issue? |
You can just open this page in Firefox https://maplibre.org/maplibre-gl-js-docs/example/simple-map/ and look into the console. I'm using Firefox 110.0 (64-bit) on Ubuntu |
Would you be interested in working on this issue? |
Thanks for the info! Assigned L bounty. |
@HarelM I'm not even an user yet ;-) - just investigating future possibilities for the integration and that was the first "warning" to see the known issue opened since 2017 without addressing. |
I can have a look at this. I'm having a look at the code paths triggering the warnings, and am currently considering skipping the creation of textures when the atlases are empty. This won't get rid of all the warnings, but it should avoid telling the GPU to allocate 1x1 px textures needlessly. |
Would be very nice if you could push this forward. Let me know if you would like me to assign this issue to you. |
@IvanSanchez thanks for working on this! Is this on the 3.0 roadtrack only or can it be "backported" to the 2.4 branch? They show up with the Is there something a "map server admin" can do to fix these missing sprites/textures? thank you. |
@WebMechanic The #2297 & #2299 PRs are targeting The actual changes are rather minimal, so I guess it'd be possible to backport them. I'd rather not do so unless @HarelM asks me to. |
I can't think of a strong argument to backport this into 2.4. we should be releasing 3.0 shortly (hopefully). |
If 3.0 is virtually a seamless upgrade from 2.4 w/o any BC breaks, then sure. However, if 3.0 introduces any significant API changes, we (and likely other "users") might neither have the time nor resources to make our current component code work with this major release. Looking forward to the 3.0 release. |
@WebMechanic You can check the current changelog for yourself: https://github.com/maplibre/maplibre-gl-js/blob/main/CHANGELOG.md - see changes marked with |
Checked the debug pages to make sure - This console warning still appear after the move to webgl2
|
There is still an open PR which was not merged unfortunately. |
We eventually upgraded to v3 which went very smooth! 👍🏻 However, I still get these warnings with v3.6.2 (current as of this writing) and the amount of warnings per identical request appears to be pretty random too. Thanks. |
confirming that this is not fixed in 3.0.1. Im a bit surprised this is left unfixed. Imho map box should not throw warnings when a user uses it correctly and as documented. |
@garma83 the PR is still open and you are welcome to push it forward if this is something that is truly important to you. |
TBH an answer like that is not very helpful IMHO. I have no idea about the code base, nor would it be feasible for me to dedicate time during work hours. Im just flagging it here because it was said that it would be fixed in 3.0 |
Tried to fix these warnings but failed.
and then provide a non-DOM-Element source to So basically a proper solution must be something like (pseudocode):
Problems with this approach: a) doing special stuff for Firefox alone is problematic from testing pov. In such case we need a dedicated render tests for FF. b) real implementation turns out quite messy. It's mostly because there are different kinds of non-DOM-Element data. |
Thanks for looking into this @sbachinin! |
At the moment I have no other ideas. |
When running in Firefox we get the following warning:
WebGL warning: texImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
Google shows up the following:
https://bugzilla.mozilla.org/show_bug.cgi?id=1400077
mapbox/mapbox-gl-js#5292
Is this an issue or a performance limitation we should be concerned about (as the Firefox developers say this path isn't optimized and should not be used)?
The text was updated successfully, but these errors were encountered: