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. Dismiss Notice

WebGL gets stuck at 90% loading

Discussion in 'WebGL' started by aazzolini, Jan 20, 2022.

  1. aazzolini

    aazzolini

    Joined:
    Sep 7, 2019
    Posts:
    8
    I am not able to get my game running with WebGL anymore. It either gets stuck at 90% and the browser stops working (CPU usage at 100% but unresponsive tab -- Chrome asks me whether I want to kill or wait).
    In my partner's laptop , same OS , we get "Memory out of bound".
    I can't get any debug / log; javascript console is empty.
    Same happens with development build.
    I am not sure how to proceed. The same build worked a few days ago.
     
  2. SkullyRAWR

    SkullyRAWR

    Joined:
    Jan 12, 2022
    Posts:
    1
    Running Unity Editor Version 2020.3.25f1 I did the following things.

    Go to: Edit > Project Settings > Player > WebGL

    There I did 3 Things out of frustration, so it might be one of those things OR all of them:

    Under "Other Settings" tick the "Allow 'unsafe' Code"
    Under "Publishing Settings" tick the "Decompression Fallback" and set "Compression Format" to "Brotli".

    I hope that helps and wish you good luck with your Problem, because I sure don't know why it worked for me.

    Edit: I'm currently doing the Unity Essentials Course, so it was just a simple Challenge. Which is why actually ticked the Unsafe Code thingy
     
    astro11000, queens38 and aazzolini like this.
  3. coleslamfreckle3

    coleslamfreckle3

    Joined:
    Jan 2, 2022
    Posts:
    2
    Does this work for Unity Play?