Search Unity

"Failed to decompress data" and crunching

Discussion in 'Web' started by UDN_08a62c30-cdb1-4e59-bb48-acda29f9e582, Oct 10, 2018.

  1. UDN_08a62c30-cdb1-4e59-bb48-acda29f9e582

    UDN_08a62c30-cdb1-4e59-bb48-acda29f9e582

    Joined:
    Jun 19, 2018
    Posts:
    23
    I am building a space game with hundreds planets, satellites, etc. All object a stored and loaded from separate bundle.

    Some times I am getting "Failed to decompress data" and here what I found. This error is possible only in browser, the same bundle in Editor works fine (uses exact the same code to load and instantinate)

    In bundle i have mesh with material with several texture applied.

    Material uses Standard shader (https://prnt.sc/l4ahrt).

    Albedo is a simple jpeg (without alpha) and crunched as DXT1.
    So I have a several solutions (works any of them):
    1. Change crunching to DXT5
    2. Disable Emmission
    3. Change Smoothness from Metallic to Albedo

    We have designer, who decide how it looks, so I can`t control any material setting.

    Changing crunching to DXT5 is solution, but it increases bundle size. I don`t want to change all texture to DXT5, but tomorrow our designer can decide to use DXT1 texture as emmision and only users will find the bug.

    Is it possible to catch such bug in Editor?