Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
clshortfuse opened this issue Mar 3, 2020 · 7 comments

Comments

@clshortfuse
Copy link

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.

@clshortfuse
Copy link
Author

clshortfuse commented Mar 3, 2020

Running Chrome profiler, it seems setStencilMode may be the issue.
Or possible UniformMatrix4f

set(v: Float32Array): void {

@clshortfuse
Copy link
Author

Screenshot_20200303-134924_Chrome

@mourner
Copy link
Member

mourner commented Mar 4, 2020

This definitely looks like some kind of a GPU bug. Can you please also share the full output of the chrome://gpu page (e.g. to a gist)?

@mourner
Copy link
Member

mourner commented Mar 4, 2020

Also, can you try a few previous versions of GL JS to see if this is something present everywhere or only in some of the versions?

@clshortfuse
Copy link
Author

I can say it goes as far back at v1.6.0, but I'd have to get my hands on one of the devices again to get the chrome://gpu output.

@kkaefer
Copy link
Contributor

kkaefer commented Mar 6, 2020

Note that there are several devices with that name from various years (2015, 2017, 2018, and 2019). The model number @clshortfuse posted indicates that it's the one from 2018, which has a Qualcomm MSM8917 Snapdragon 425 with an Adreno 308 GPU. We've had lots of issues with Adreno GPU over the years due to poor driver quality, so this issue fits the pattern.

@SuperPat45
Copy link

SuperPat45 commented Feb 9, 2021

I have this bug too on my Nokia 2.1 with Android Go 10.

And as my smartphone doesn't have a lot of memory Chrome stops the execution of the javascript a few seconds after the display of the map

It has a Snapdragon 425.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants