Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

WebGL build failing to run after further development. WASM streaming issue

Discussion in 'WebGL' started by PylonCrow, Aug 30, 2021.

  1. PylonCrow

    PylonCrow

    Joined:
    Mar 29, 2017
    Posts:
    8
    Greeting. I had a bare-bones webgl build going with transparency running, after some headache i finally got it working, so since it was working i went on to improve the actual game, after adding probably double or triple the size of the barebones, i build, deployed and tried running but am currently getting this issue:


    [UnityCache] 'data' successfully revalidated and served from the indexedDB cache
    wasm streaming compile failed: LinkError: WebAssembly.instantiate(): table import 1 is smaller than initial 46909, got 46725
    falling back to ArrayBuffer instantiation
    BorpamonGo.loader.js:1 failed to asynchronously prepare wasm: LinkError: WebAssembly.instantiate(): table import 1 is smaller than initial 46909, got 46725

    Not sure what is causing this issue. the game was running fine with a smaller build, however since updating with new features i seems to fail. The project is not that big, ive seen much larger so i'm not sure what to fix on this. Tried looking up the issue but all similar issue's ive seen lied more with compression builds not matching up with what index.html is looking for and various other unrelated things. And this build WAS working previously which makes it all the more odd. Any ideas?
     
  2. PylonCrow

    PylonCrow

    Joined:
    Mar 29, 2017
    Posts:
    8
    Just an update on this.

    I saved the scene I was building as a new scene than disabled everything but the barebones, after that worked I slowly re-enabled everything new to the point where the scene had all functionality back and it worked. not sure why but it seems like maybe that scene got corrupted somehow.
     
  3. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    386
    For future references, please add the Unity version you used when you experienced this issue or else it's almost useless for tracking it down.

    Thank you.