mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

MapboxGL freezes (crashes) when changing coordinates

Open vkproger opened this issue 2 years ago • 3 comments

MapboxGL freezes (crashes) when changing coordinates or city via Sensors developer tools (Chrome)

I checked both on the map in the official documentation, and on many sites where Mapbox is used. The problem is global

Play steps:

  1. Open the site with the Mabox map through the Chrome browser
  2. Open Developer Tools
  3. Open the "Sensors" tab
  4. Change the coordinates (or the city itself) through "Sensors"

Actual Result: Site completely freezes, including non-map related elements

mapbox

vkproger avatar Oct 06 '22 08:10 vkproger

Hi, I haven't been able to reproduce this. What version of Chrome are you using?

And just to confirm, you've only seen this triggered by devtools?

ansis avatar Oct 12 '22 14:10 ansis

Hi, Chrome version 106.0.5249.103 Yes, I only checked through the devtool

vkproger avatar Oct 13 '22 14:10 vkproger

The problem is being investigated. I also checked Google Maps. This problem only occurs if you stay at your original location and then switch to another one. It happened in both mapbox and google maps as well. If you choose a fake location before clicking on the "locate me" button and then choose another location, it will work. Here's a link you can try: https://docs.mapbox.com/mapbox-gl-js/example/locate-user/

elazarnaaman avatar Oct 17 '22 21:10 elazarnaaman