mapbox / mapbox/mapbox-gl-js

Window freezes when changing to default locations via Chrome DevTools sensor tab using map example from mapbox.com

Open
#12,550 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Using the example from https://docs.mapbox.com/mapbox-gl-js/example/locate-user/ I open Chrome DevTools and change the user location to one of the default locations provided. It pans to Berlin alright. Sometimes it also pans to London and Moscow before stalling. But it will stall eventually.

There's no errors (related to this) logged to console, and the result is that the entire window/tab freezes and needs to be forcefully closed.

**mapbox-gl-js version**: 2.12.0

**browser**: Chrome Version 109.0.5414.120 (Official Build) (64-bit)

### Steps to Trigger Behavior

1. Go to https://docs.mapbox.com/mapbox-gl-js/example/locate-user/
2. Open Chrome DevTools and sensor tab
3. Select a few locations from the dropdown until window freezes

### Link to Demonstration
![mapbox-error](https://user-images.githubusercontent.com/5302751/216173742-286bc0d0-a41c-4d19-97a3-10b7dbd78853.gif)

### Expected Behavior
Map will pan to the location set by sensor tab.

### Actual Behavior
Map pan for the first one or two locations before windows freezes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the mapbox.com locate-user example, Chrome DevTools sensor tab, Mapbox GL JS 2.12.0, and Chrome 109. Change through several default locations and observe the freeze. Done means repeated location changes pan the map without freezing the window or tab.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.