Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

2022.1.0a12 - WebGL Builds Doesn't Load & Throws RangeError in browser

Discussion in '2022.1 Beta' started by KamilCSPS, Oct 14, 2021.

  1. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    425
    Regression from a1 to a8 (did not test a9-11).

    WebGL Builds no longer run and throw the following error in browser;

    Code (CSharp):
    1. A problem occurred while mounting RangeError
    Code Optimization: Speed
    Code Generation: Faster Runtime

    Bug Report #1373141
     
  2. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    425
    Nevermind.

    Doing a "Clean Build" fixes the issue. Migration from a9 - a12 had cached data.
     
    LeonhardP likes this.
  3. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    425
    Last edited: Oct 18, 2021
  4. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,548
    An alternative workaround to Clean Build is to delete the BuildCache and Bee folders in Library prior to a build - maybe that's the same as Clean Build. If the build won't complete I delete Bee and just do both out of habit now if the build is crashing at startup in the browser. I get hit by this at random in 0a12. Other than that I'm quite happy with the alpha and looking forward to this being fixed.
     
  5. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    425
    My understanding is that it is indeed the same.
     
    deus0 and adamgolden like this.
  6. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,127
    deus0, KamilCSPS and adamgolden like this.