Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Various features render with wrong color on some Android GPUs #8385

Closed
nitrag opened this issue Mar 14, 2017 · 18 comments
Closed

Various features render with wrong color on some Android GPUs #8385

nitrag opened this issue Mar 14, 2017 · 18 comments
Assignees
Labels
Android Mapbox Maps SDK for Android

Comments

@nitrag
Copy link
Contributor

nitrag commented Mar 14, 2017

screenshot_20170314-013900
screenshot_20170314-013934
screenshot_20170314-014114

Platform: Android
Mapbox SDK version: 5.0.0-SNAPSHOT

  1. App uninstall/reinstall has no effect.
  2. Works fine on other devices.
@tobrun tobrun added the Android Mapbox Maps SDK for Android label Mar 14, 2017
@tobrun
Copy link
Member

tobrun commented Mar 14, 2017

@nitrag thank you for letting us know that the Samsung Galaxy J3 2016 has rendering issues. Do you know if older versions of the SDK rendered correctly on this device?

@tobrun tobrun changed the title Android Map not displaying StyleUrl properly Samsung Galaxy J3 2016 Rendering Issue Mar 14, 2017
@nitrag
Copy link
Contributor Author

nitrag commented Mar 14, 2017

@tobrun I can confirm in a barebone app test project that the problem arose when moving to 5.0.0-beta3. Beta2 is working fine.

EDIT: BTW, Also worked fine 4.2.2 (stable).

@tobrun tobrun added the release blocker Blocks the next final release label Mar 15, 2017
@tobrun tobrun added this to the android-v5.0.0 milestone Mar 15, 2017
@tobrun
Copy link
Member

tobrun commented Mar 16, 2017

capturing from chat with @zugaldia that the issue only reproduces on one device and thus isn't a release blocker. Going to remove the label. This doesn't take away that this is a bug that should be looked into.

@tobrun tobrun removed the release blocker Blocks the next final release label Mar 16, 2017
@tobrun
Copy link
Member

tobrun commented Mar 16, 2017

I was able to purchase the European equivalent of the mentioned A&T phone,
though there isn't an Android 6.0.1 update for it yet:
device-2017-03-16-093906

@tobrun
Copy link
Member

tobrun commented Mar 16, 2017

Not able reproducing the render issue on this device:

ezgif com-video-to-gif 22

@nitrag any more information on this to move forward? Are you aware of any other devices with this issue?

@nitrag
Copy link
Contributor Author

nitrag commented Mar 16, 2017 via email

@tobrun
Copy link
Member

tobrun commented Mar 17, 2017

This was produced with the Simple Map Activity found in this repo, you can test with latest snapshot by replacing:

    compile(project(':MapboxGLAndroidSDK')) {
        transitive = true
    }

with the snapshot build in case you don't want to go through the trouble of building the C++ code yourself. Feel free to share your style so we can try reproducing it with the style from OP.

@tobrun tobrun modified the milestones: android-future, android-v5.0.0 Mar 17, 2017
@jfirebaugh jfirebaugh changed the title Samsung Galaxy J3 2016 Rendering Issue Various features render with wrong color on some Android GPUs Mar 22, 2017
@jfirebaugh jfirebaugh modified the milestones: android-v5.1.0, android-future Mar 22, 2017
@jfirebaugh
Copy link
Contributor

Given that the regression occurred between 5.0.0-beta2 and 5.0.0-beta3 and is GPU-specific, it was likely caused by 692f5e0.

@jfirebaugh
Copy link
Contributor

jfirebaugh commented Mar 22, 2017

All color pragmas (e.g. here) need to use highp.

cc @anandthakker

@jfirebaugh
Copy link
Contributor

A speculative fix has been merged to the release-ios-v3.5.0-android-v5.0.0 branch. Next step is to confirm it resolves the issue by testing a build from this branch on an affected device.

@nitrag
Copy link
Contributor Author

nitrag commented Mar 22, 2017

I'm not too Android savvy and wasn't successful building the SDK from source last time I tried. Can someone build it from source for me? Happy to test.

@zugaldia
Copy link
Member

Thanks @nitrag. I ran the updated branch on one of the affected devices, a Galaxy S6 Edge API Level 22 (via Firebase). This is the current rendering:

image

And this was the rendering, on the same device, before the fix:

image

This seems to confirm the fix is working. Next, we're releasing 5.0.1 including just this fix.

@nitrag
Copy link
Contributor Author

nitrag commented Mar 22, 2017

Ok great! I'll confirm once I see 5.0.1 published.

@zugaldia zugaldia mentioned this issue Mar 22, 2017
8 tasks
@zugaldia
Copy link
Member

@nitrag 5.0.1 has been published #8501, could you check if you still see the rendering issue?

@snowpong
Copy link

@zugaldia Fixes rendering issues for me. Attached screenshots #8501 (comment) (sorry, probably should have attached them here)

@tobrun
Copy link
Member

tobrun commented Mar 23, 2017

Thanks for confirming @snowpong, closing.

@tobrun tobrun closed this as completed Mar 23, 2017
@nitrag
Copy link
Contributor Author

nitrag commented Mar 23, 2017 via email

@zugaldia
Copy link
Member

@nitrag Thank you for checking!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

5 participants