Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Addressable bundles fail to decompress in WebGL after upgrading from 2021.3.14 to 2021.3.15/16

Discussion in 'Addressables' started by lokijki, Jan 19, 2023.

  1. lokijki

    lokijki

    Joined:
    Feb 15, 2013
    Posts:
    5
    I recently upgraded a project from 2021.3.14 to 2021.3.16 to see if the fix for UUM-1149 made any difference on a lag spike we were seeing whenever an asset bundle finished downloading on WebGL. Unfortunately, I'm now getting this error whenever I try to download dependencies in a build:

    Error while downloading Asset Bundle: Failed to decompress data for the AssetBundle '(bundle URL goes here)'.


    This only happens when using DownloadDependenciesAsync - LoadSceneAsync seems to be able to download the bundles successfully. Bundles also load if set to uncompressed (rather than LZ4), but I'd like to keep them compressed.

    I've messed with both top level and group addressable settings pretty extensively but haven't had any luck. Also tried downgrading to 2021.3.15. Edit: This was with Addressables version 1.19.19, though I also tried upgrading to 1.21.2

    The bundles do load again after going back to 2021.3.14, but I was hoping to take advantage of the fix to UnityWebRequest.

    I'm hoping that I'm just missing something obvious, but it seems more likely that this is just a Unity bug introduced in 2021.3.15.

    (Did also see this issue from 4 days ago show up on google when searching for potential solutions, but the link is dead so no idea if it's actually related.)
     
    Last edited: Jan 19, 2023
  2. lokijki

    lokijki

    Joined:
    Feb 15, 2013
    Posts:
    5
    Bump? This is still an issue, even though it seems like it's been fixed in 2022.2.0: upload_2023-3-24_0-20-39.png
    The beta release where the issue was first seen was the release that "fixed" UUM-1149, which is the same fix that seems to have broken addressable bundle downloads in every 2021 version since December. It's pretty frustrating to see the newer version get fixed while the "long term support" version is ignored.
     
    samuel-levine and Kimiko_Mu like this.