Search Issue Tracker

Fixed in 2021.1.X

Votes

0

Found in

2020.1.0a7

2020.2

2020.2.0a21

2021.1

Issue ID

1282164

Regression

Yes

WebGL build gets stuck on the loading screen when compression is enabled

WebGL

-

How to reproduce:
1. Open the attached project (1282164.zip)
2. Press Ctrl+B to build the project
3. After the build finishes open the index.html file from the build directory in any browser
4. Observe the game in the browser window

Expected result: the loading finishes and the loading screen fades into an empty scene
Actual result: the loading bar goes up to about 90% and stops, indefinitely

Reproducible with: 2020.1.0a7, 2020.1.9f1, 2020.2.0b8, 2021.1.0a2
Not reproducible with: 2018.4.28f1, 2019.4.9f1, 2020.1.0a6

Notes:
1. Reproducible on Windows 10 and Ubuntu 18.04
2. If the "Compression format" under "Publishing Settings" in the "Player Settings" window is set to "Disabled" the issue no longer reproduces
3. When running on a 2020.1.0a7 build it throws a "SyntaxError: illegal character" window
4. If after pressing Ctrl+B and building the project the browser opens up automatically with the game the issue doesn't reproduce

  1. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.0a4

Comments (5)

  1. tomasmacias

    Jun 30, 2022 22:10

    Hello there,

    I'm facing the issue sticking at 90% at Unity Play with a WebGL build using Compression disabled with 2020.3.30f1 (1fb1bf06830e). It's working on chrome with local http.server (python) and in Itch.io. So I guess the problem is only in Unity Play?

  2. arthurpergher

    Mar 03, 2022 15:22

    ". If the "Compression format" under "Publishing Settings" in the "Player Settings" window is set to "Disabled" the issue no longer reproduces"

    this doesnt work

  3. arthurpergher

    Mar 03, 2022 15:21

    I am running 2021.2.11f1, and I am having this issue. If I build and run it works in my browser, but if I publish in Unity play it gets stuck at 90%.

  4. PeterWozz

    Feb 09, 2022 00:51

    Game loading (WebGL) on Unity Play web site stops at 90%. This is a previously known issue by Unity, Issue ID 1282164, that was apparently fixed in 2021.1.X.

    I am running Apple Silicon 2021.2.10f1 and the issue seems to have returned.

    I have disabled compression and it doesn't resolve the issue.

  5. Blarp

    Jul 08, 2021 08:19

    loading bar doesnt even work now on a compressed webgl build

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.