LinkError: WebAssembly.instantiate()

I have a published game that I wanted to update today, made a WebGL build as always, uploaded to the server, everything worked but noticed I didn’t update some of the data (just changing strings in ScriptableObjects). Quickly updated around 20 strings and since then I’m unable to build a working WebGL build of that project. The error I’m getting is

LinkError: WebAssembly.instantiate(): table import 1 is smaller than initial 104523, got 104402```

I'm getting the same result building it on 2018.4.26f1 and 2018.4.27f1
Can anybody help me solve that?

This suggests that the cached game content may have gone out of date somehow. Try clearing browser cache, or test on a browser that has not visited the page before?

Is there a way to clear the cache from the unity/webgel side? This is a pain in the ass when deploying new test builds and trying them out.

Currently this cannot be done via a Unity C# API, but it can be done via browser’s Clear History, and Application Storage DevTools tabs.

Check out:

We currently have a task on the board to add a developer mechanism to clear the IndexedDB storage without needing to use browser’s own tools.

I have the same error in some PC’s. This is what is seen in the console. I’ve tried clearing the browser cache, but it doesn’t help. Also tried from different browsers, those that have not visited the page, they have the same error.

Other thing is, this only occurs on some PC’s. It works without flaw on others.
Please help!

Here’s an update: In the build settings, Code Optimization was set to “Size”, then I changed to “Speed” and it was fixed. Unity v2020.2.5f1

Hi. Where did you find this setting? I look all over Unity, including inside Build Settings and couldn’t find anything that would say “Code Optimization” and then “Speed” or Size". Specifically installed and updated my project to Unity 2020.2.5f1 to try this.

I am having this issue after trying to update a build on ftp server, only that I am having it everywhere, not only specific PCs. It goes something like this:

WebGLBuild1.loader.js:1 wasm streaming compile failed: LinkError: WebAssembly.instantiate(): table import 1 is smaller than initial

Any help would be very appreciated, thank you.

Unity 2020.3.18f1
WebGL platform > Build Settings > under Development Build

7529423--929477--Captura.PNG

Having this issue in 2021.1.22f1, setting Code Optimization to Speed seemed to have fixed things for a few builds but now shows whether Speed or Size is selected.

We get the error Uncaught RuntimeError: null function or function signature mismatch on 2021.3.5f1, and the issue is resolved when we set Code Optimization to Size.
We don’t see it in development builds, and we weren’t seeing this on earlier versions.
We’d really like this to be fixed, since it increases our build size by over 1mb, which is really nasty on web.

Same issue dude,did you resolve this problem?:frowning: