mapbox / mapbox/mapbox-gl-js

When changing the style on a complex choropleth extrusion layer while zooming and panning the map using `flyTo` the browser crashes and/or freezes up my machine.

Open
#8,325 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

environment-specific :desktop_computer:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

When changing the style on a complex choropleth extrusion layer while zooming and panning the map using flyTo the browser crashes and/or freezes up my machine.

mapbox-gl-js version: 1.0

browser: Chrome version 74.0.3729.169 (Official Build) (64-bit), MacOS 10.13.6

Steps to Trigger Behavior
  1. Open index_crash.html
  2. See the scroll bar on top right. Scroll through until you get to the section for "Risk Areas"
  3. Scroll to the next section for "Loubiere"
  4. Quickly go back and forth between Loubiere and Risk Areas.
  5. Browser will freeze / crash. Sometimes my whole machine will crash.
Link to Demonstration

index_crash.html.zip

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 opening the provided index_crash.html demonstration and reproduce the freeze while switching between the “Risk Areas” and “Loubiere” sections with flyTo. Trace the style changes and map movement in the demonstration against the mapbox-gl-js rendering path; done means the same interaction no longer freezes or crashes the browser.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend, performance
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.