Window freezes when changing to default locations via Chrome DevTools sensor tab using map example from mapbox.com
Nobody has claimed this yet.
- 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

### 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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