Search Issue Tracker

Won't Fix

Votes

1

Found in [Package]

1.0.0-pre.9

Issue ID

LOC-212

Regression

No

WebGL build freezes loading Localization Sprite Data

Package: Localization Package

-

1) Open attached project 

2) Create a WebGL player build and run

3) Player freezes at 90% - no errors in console.

  1. Resolution Note:

    Addressables is unable to support WaitForCompletion on WebGL due to threading limitation issues.

    WebGL does not support `WaitForCompletion`. On WebGL, all files are loaded using a web request. On other platforms, a web request gets started on a background thread and the main thread spins in a tight loop while waiting for the web request to finish. This is how Addressables does it for `WaitForCompletion` when a web request is used.

    Since WebGL is single-threaded, the tight loop blocks the web request and the operation is never allowed to finish. If a web request finishes the same frame it was created, then `WaitForCompletion` wouldn't have any issue. However, we cannot guarantee this to be the case, and likely it isn't the case for most instances.

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.