Search Unity

Random textures turn pink on random android devices

Discussion in 'General Graphics' started by DenisGarshin, Jun 9, 2022.

  1. DenisGarshin

    DenisGarshin

    Joined:
    Mar 8, 2022
    Posts:
    1
    Hello! We have some strange bug in our project.
    The problem occurs on random devices that downloaded the game from the play store. This problem may not occur every time you start the game. There is no connection with the chipset model or android version. We have never been able to reproduce the bug on our own, and debugging on players' devices has not been successful, since reinstallation usually solved the problem.
    The same textures always break, but there is no relation to their compression format (ETC2, ETC2 Crunched, ASTC) or resolution. Disabling streaming does not affect the situation.
    The bug appeared in Unity 2019LTS versions.
    The transition to Unity 2020LTS did not affect the situation in any way.
    I don't have any idea why this is happening.

    Here is a screenshot from the user's report.
    upload_2022-6-9_16-57-30.png

    Here is a screenshot where I change the skybox texture to a pink texture in the Editor.
    upload_2022-6-9_16-57-48.png

    Here is a screenshot if I break the skybox shader in the Editor.
    upload_2022-6-9_16-58-39.png
     
    Last edited: Jun 15, 2022
  2. Warren93

    Warren93

    Joined:
    Jun 2, 2014
    Posts:
    9
    If it's a texture issue that occurs sporadically, maybe it is due to a race condition (e.g. depending on if/how you are assigning textures at runtime).

    If it's a shader issue, perhaps you could try setting Project Settings > Graphics > Log Shader Compilation to true (if you haven't already) to try to generate more useful logs?
     
    DenisGarshin and DevDunk like this.