mapbox / mapbox/mapbox-gl-js

massive performance drain and incorrect text color with Galaxy Tab A 8.0

Open
#9,370 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I have a couple of client with a Galaxy Tab A 8.0 with the following user Agent:

`Mozilla/5.0 (Linux; Android 9; SM-T387V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.119 Safari/537.36`

**mapbox-gl-js version**: v1.8.1

**browser**: Chrome v80 on Android

### Steps to Trigger Behavior

1. Open any MapBox map (even samples)
2. Look at street labels.
3. On light styles, the text is white. On dark styles, the text is black. Both are unreadable due to lack of contrast.

Coincidentally, (or perhaps not), all users of the same device are experience massive battery drain and overheating. On my application, which uses custom symbols and uses `requestAnimationFrame` I can track lag related to this function:

On the sample, it straight up crashed Chrome when trying to pan. I'm assuming there's an infinite loop going on somewhere. I'll post screenshots in a few minutes.

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 mapbox-gl-js v1.8.1 on a Galaxy Tab A 8.0 running Chrome 80, using the sample maps and the reported user agent. Compare label contrast while panning and observe battery drain, overheating, lag, or a browser crash. Done means the labels remain readable and map interaction no longer causes the reported performance failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
computer-graphics, frontend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.