Search Issue Tracker

Fixed

Fixed in 1.19.17

Votes

0

Found in [Package]

1.19.11

Issue ID

ADDR-2377

Regression

No

[WebGL] Script halts when awaiting for Addressables.CleanBundleCache() to finish

Package: Build Pipeline - Addressables

-

How to reproduce:
1. Open the attached project "addressablesRepro"
2. Open the Scene "SampleScene" (Assets/Scenes/SampleScene.unity)
3. Set up and launch a local server at addressablesRepro/ServerData/WebGL
4. In the Unity Editor, open the Addressables Groups window (Window > Asset Management > Addressables > Groups)
5. Click Build > New Build > Default Build Script
6. Open the Build Settings (File > Build Settings...)
7. Under "Platform", select "WebGL" and click "Switch Platform"
8. Build and Run the project (File > Build And Run)
9. In the opened Internet Browser, open and inspect the Console

Expected result: The error " 'Addressables.CleanBundleCache().Task' Completed " is shown in the Console
Actual result: The error " Starting 'Addressables.CleanBundleCache().Task' " is shown in the Console

Reproducible with: 1.19.11 (2019.4.32f1, 2020.3.23f1, 2021.1.28f1, 2021.2.3f1, 2022.1.0a15)
Could not test with: 1.18.19 (2019.4.32f1, 2020.3.23f1, 2021.1.28f1) (Error in console: Assets/CleanCache.cs(17,28): error CS0117: 'Addressables' does not contain a definition for 'CleanBundleCache')

  1. Resolution Note (fix version 1.19.17):

    Fixed issue where calling Addressables.CleanBundleCache freezes the WebGL player.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.