mapbox / mapbox/mapbox-gl-js

feature index out of bounds

Open
#13,171 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs information :pray:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

"mapbox-gl": "^2.13.0",

**browser**: Chrome 124.0.0

### Steps to Trigger Behavior

This error is occurring by [Sentry](https://sentry.io/), I can't reproduce it on my machine. However, I could see the replay of the error which go like this:

1. draw.current.changeMode() is executed
2. Click on the map

![Screenshot from 2024-05-09 13-27-48](https://github.com/mapbox/mapbox-gl-js/assets/88399263/067917c9-bc9f-4d74-aab8-9ffe3d122b48)

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 at the draw.current.changeMode() call and trace the following map click through the Mapbox GL JS interaction path; the issue provides only a Sentry replay, so first establish a reproducible case and identify the exact out-of-bounds error. Done means the reported sequence no longer produces that error, with behavior checked in the stated mapbox-gl and Chrome context.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.