Search Unity

WebGL crash after load (uncaught exception: abort(81) at jsStackTrace...)

Discussion in 'Web' started by The-Oddler, Oct 4, 2015.

  1. The-Oddler

    The-Oddler

    Joined:
    Nov 26, 2010
    Posts:
    133
    I'm getting an error when I run my WebGL project. It first loads, but then it gives this error in a popup:

    And then when I open the console I get this:

    I don't really see what's going wrong. Anyone any idea? It works fine in the editor.

    Build with Unity 5.2.1p2 (and also tried p1), on both windows and mac.
     
    Last edited: Oct 4, 2015
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    I can't tell what is going on from the logs. My best guess would be a stripping issue - does it work if you disable "Strip Engine code" in WebGL player settings?

    You can file a bug with a repro case, and post the case number here, then we can take a look.
     
  3. The-Oddler

    The-Oddler

    Joined:
    Nov 26, 2010
    Posts:
    133
    It does indeed work when I disable the engine code stripping. Thanks!

    I also reported a bug, the case number: 733661.

    Got a mail that they checked this. It will be fixed in Unity 5.3. They also provided a simple temporary workaround: just add an empty OnGUI method in your code.
     
    Last edited: Oct 11, 2015