Even after re-uploading to the server, it only loads for the first time and doesn’t load after that.
It stops loading when pressing the refresh button or navigating to another page and then returning.
Clearing the cache didn’t make a difference.
Yesterday, I suddenly ran into a similar problem, my Unity version is 2021.3.0f1. The first time I can go in normally, but the second time I get stuck loading the screen, it seems to be related to the cache. But this only seems to happen on Android, iOS doesn’t get stuck, And my game hasn’t been updated for 4 months, it was yesterday that it suddenly got stuck.
Relaunch it in incognito mode and always “Name Files As Hashes” enabled
I have see several games like https://warmerise.com/ using the version 2021.1.x => 2021.3.14f1 that got the same issue.
The first load work perfect but the second load fail with the error :
For me it fail only with chrome but work perfect in firefox.
Maybe it’s brotli issue because an other game that use the same version but still in gzip work in chrome.
Point to check for me is the compression build used, stripping and maybe if you have made a change at the unity cache system in the editor folder.
This will not solve the issue and “normal” player will never do that by themself.
The point here is too find the issue and to solve it in order to give the best experience to the players.
Point to check for me is the compression build used, stripping and maybe if you have made a change at the unity cache system in the editor folder.
We have several projects using Unity 2021.3.0f1, and suddenly on 2023/5/7 all of them are having problems together,
The first load will enter the game normally, but after the second load, it will get stuck on the load screen.
The problem we are experiencing is that it is only happening with Android. iOS is currently working fine to enter the game.
We have not updated these projects for several months and they will be available until 2023/5/7.
This is my error message:
[UnityCache] Failed to load
'https://xxxxxxxx/PROJECT_NAME/Build/867c7ba58f030ba3290579794fddbbbc.data.unityweb' from indexedDB cache due to the error: TypeError: Cannot read properties of null (reading 'getReader') -- From line 1 of https://xxxxxxxx/PROJECT_NAME/Build/Web.loader.js
Failed to download file Build/867c7ba58f030ba3290579794fddbbbc.data.unityweb -- From line 1 of https://xxxxxxxx/PROJECT_NAME/Build/Web.loader.js
I was able to reproduce the problem by opening an empty project with Unity 2021.3.0f1 after just testing it.
As long as Data Caching is checked, Android gets stuck on the load screen regardless of whether I have to gzip compression or not.
If I upgrade Unity to 2021.3.20f1 I can get Android back to normal.
But it’s worrying, will Unity 2021.3.20f1 suddenly break down one day?
So we want to know what the root cause of the problem is, so that the next time this temporary major problem does not occur again.
I have attached my test project configuration and test project below.
8998951–1239670–Test_WebGL.zip (9.35 MB)
Yeah it’s weird that it happen like that when everything was working fine during several months.
This game (https://warmerise.com/) was working fine also and one day, without any game update this problem have started.
It’s maybe related to a chrome update because it started to not work after i updated my google chrome, firefox,operagx is not afected but brave is affected too and it use chromium too :).
My games (https://www.gaming-style.com/) use Unity 2019.4.38f1 with the old cache system and they are not affected. It’s why i’m always scared to update my game to a new unity version.
I have made a post already about a broken compatibility between the old and new system here https://discussions.unity.com/t/895989/3
I have the same issue. All of my previously working 2021.3.5f1 WebGL builds stopped working now. Today they loaded once and worked just fine, but not the second or third time.
It looks like the browser’s problem. We experienced the same issue in Chrome and Edge (on 112 and 113). But the latest Chrome update (113.0.5672.92) fixed the problem. On Edge the issue is still present, but I guess we should wait for the fix on their side.
Most of the time we can’t just hope that the end-user has the latest Chrome update when they visit our game. The build has to be stable across as many versions of browsers and versions.
Downgrading my Unity project to 2020.3.29f and rebuilding the game fixed the problem for me.
That gives me the idea, that this problem could also be fixed on Unity side. We don’t need to wait for browser fixes.
I upgraded to Unity 2021.3.20f1 to fix this problem, but I’m worried that this version will have this problem again someday.
Just tested with Unity 6000.0.38 and faced with this issue.
For Local Testing on Desktop, set these settings such way.
Project Settings > Player > WebGL > Publishing Settings:
- Compression Format > Disabled.
- Decompression Fallback > Uncheck.
Check also my complete tutorial for WebGL testing.