Open astojilj opened 1 year ago
Same here with Firefox 121.0.1 64bit on Mac OS, with every version of old Mapbox GL JS maps i tried, IMHO a issue with the changed renderer, not with Mapbox.
We'll ship this workaround along with the v3.1 release.
@stepankuzmin Seeing a visually different, but probably related rendering bug only in Safari private mode and Brave. The issue appears with both v3.1.0 and v3.2.0.
Here's a minimal codepen based on the globe example from the docs. Just the map style was replaced with one where 3D terrain is enabled: https://codepen.io/slavanga/pen/eYovgLg
https://github.com/mapbox/mapbox-gl-js/assets/1077807/caba5574-a6c2-4b96-b289-70d522fb5db1
Also seeing the same thing as @slavanga on firefox 124.0.1 Windows
Hi @slavanga and @calb-dev,
Thanks for flagging this, I confirm this is still an issue. The fix for the workaround is coming in v3.3.0.
It seems the workaround disables terrain when configured in a style, but not for map.setTarrain. For example, this still displays with noisy terrain:
https://docs.mapbox.com/mapbox-gl-js/example/add-terrain/
Can you recommend a similar workaround for disabling hillshade? It also has the noise issue here:
https://docs.mapbox.com/mapbox-gl-js/example/hillshade/
Maybe make use of hasCanvasFingerprintNoise() in src/util/browser.ts?
The issue is back with 3.5.1 in Firefox:
While in 3.4 the problem was solved:
Thanks for flagging this again. The fix for the workaround is coming in v3.5.2.
Issue is still present with 3.52 when just adding a layer of type symbol. Even worse with Safari on iOS (Screenshot below). IMHO this makes MapBox unusable for PWAs. Error is not occuring with MapBox 3.4 or MapLibre.
Yeah, I can reproduce it now, good catch @CptHolzschnauz. We'll fix that in the next release.
Thx. Let me know if I can help you with providing informations. My experience is that sometimes the bug occurs right from the initial render and sometimes you have to zoom out until it starts and getting worse until mapbox JS crashes.
It's occuring when tilting, see the video below. iOS 17.5.1 with Safari.
https://github.com/user-attachments/assets/d82129f7-5c86-4a50-8507-45f53bfc4bff
The v3 migration guide Known issues and limitations refers to an issue with spikes visible on terrain when run in Safari 17 private browsing mode (edit: and Firefox with fingerprint protection enabled):
The issue also exists with previous GL JS versions.
While we're working on resolving this, a feasible workaround would be to disable terrain from the application code, when it is detected that anti-fingerprinting protection introduces noise to 2D canvas operations: