Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was 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

Description

@nitrag

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.

Activity

  1. added
    Android
    on Mar 14, 2017
  2. tobrun commented on Mar 14, 2017

    @tobrun
    Member

    @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?

  3. changed the title [-]Android Map not displaying StyleUrl properly[/-] [+]Samsung Galaxy J3 2016 Rendering Issue[/+] on Mar 14, 2017
  4. nitrag commented on Mar 14, 2017

    @nitrag
    ContributorAuthor

    @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).

  5. added
    release blocker
    on Mar 15, 2017
  6. added this to the android-v5.0.0 milestone on Mar 15, 2017
  7. tobrun commented on Mar 16, 2017

    @tobrun
    Member

    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.

  8. removed
    release blocker
    on Mar 16, 2017
  9. tobrun commented on Mar 16, 2017

    @tobrun
    Member

    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

  10. tobrun commented on Mar 16, 2017

    @tobrun
    Member

    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?

  11. nitrag commented on Mar 16, 2017

    @nitrag
    ContributorAuthor
  12. tobrun commented on Mar 17, 2017

    @tobrun
    Member

    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.

  13. modified the milestones: , android-v5.0.0 on Mar 17, 2017
  14. changed the title [-]Samsung Galaxy J3 2016 Rendering Issue[/-] [+]Various features render with wrong color on some Android GPUs[/+] on Mar 22, 2017
  15. 2 remaining items

  16. jfirebaugh commented on Mar 22, 2017

    @jfirebaugh
    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.

  17. jfirebaugh commented on Mar 22, 2017

    @jfirebaugh
    Contributor

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

    cc @anandthakker

  18. jfirebaugh commented on Mar 22, 2017

    @jfirebaugh
    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.

  19. nitrag commented on Mar 22, 2017

    @nitrag
    ContributorAuthor

    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.

  20. zugaldia commented on Mar 22, 2017

    @zugaldia
    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.

  21. nitrag commented on Mar 22, 2017

    @nitrag
    ContributorAuthor

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

  22. zugaldia commented on Mar 22, 2017

    @zugaldia
    Member

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

  23. snowpong commented on Mar 23, 2017

    @snowpong

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

  24. tobrun commented on Mar 23, 2017

    @tobrun
    Member

    Thanks for confirming @snowpong, closing.

  25. nitrag commented on Mar 23, 2017

    @nitrag
    ContributorAuthor
  26. zugaldia commented on Mar 23, 2017

    @zugaldia
    Member

    @nitrag Thank you for checking!

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

Metadata

Metadata

Assignees

Labels

Android

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions