Search Unity

WebGl build NOT work in Chrome 42

Discussion in 'Web' started by AGeorgy, Apr 23, 2015.

  1. AGeorgy

    AGeorgy

    Joined:
    Sep 16, 2013
    Posts:
    42
    1.PNG It is possible to buildworking in ChromeV42WebGLapplication??!
    How to do it?
     
    Last edited: Apr 23, 2015
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Google unfortunately had a bug which slipped into Chrome 42, causing large asm.js codebases (including Unity WebGL) to fail. They said that they have a fix which they plan to roll out ASAP.
     
  3. AGeorgy

    AGeorgy

    Joined:
    Sep 16, 2013
    Posts:
    42
    Thanks Jonas!
     
  4. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    589
    Beside the bug of Chrome42, it seems that you are trying to load the game from "file://", use the setting of "Build and Run", then Unity will run local server, or use a local server on your computer(using NGINX or other server).
    Or you can run Chrome with a setting that let it run local webgl content like "--disable-web-security"
     
  5. Rocco_

    Rocco_

    Joined:
    Apr 27, 2015
    Posts:
    12
    Jonas, has there been any news on whether or not the asm.js bug has been fixed just yet?

    I came across this link with a quick Google search in the Chromium project, however the ticket is labeled as fixed. Although I'm not certain if the update was rolled out publicly or not.

    https://code.google.com/p/chromium/issues/detail?id=478126
     
    unity839 likes this.
  6. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    You can folllow Chrome releases here: googlechromereleases.blogspot.com

    The fix was applied to version M43, which is in beta. you can get a beta / dev version to test if that fixes the issues for you.
     
  7. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,073
    Google rolled out a small update yesterday fixing the issue. Check your Chrome for an update.
     
  8. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
  9. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,073
    liortal likes this.
  10. Doddler

    Doddler

    Joined:
    Jul 12, 2011
    Posts:
    269
    Forcing a chrome update does indeed appear to fix chrome exploding on webGL builds. That's good to see!
     
    liortal likes this.
  11. Rocco_

    Rocco_

    Joined:
    Apr 27, 2015
    Posts:
    12
    We did get some better performance on our games however still some crashes. We're going to do some digging around before we post on a thread. Thanks for the update!
     
  12. hitarthdoc1994

    hitarthdoc1994

    Joined:
    Dec 17, 2015
    Posts:
    15
    how do I "--disable-web-security" in iOS 10???
     
  13. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    why do you need to do that ?
     
  14. hitarthdoc1994

    hitarthdoc1994

    Joined:
    Dec 17, 2015
    Posts:
    15
    To Run my WebGL Build without hosting it (i.e. using "file://"). I got the Idea from the following Quoted post:
    I don't know if it is possible in any other way.
     
  15. shailesh-bhalerao

    shailesh-bhalerao

    Joined:
    Mar 3, 2016
    Posts:
    3
    An error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was:

    abort(144) at jsStackTrace@blob:http://localhost:8888/fc95a225-ec44-4951-ac79-9519b41f8e78:1:22823

    stackTrace@blob:http://localhost:8888/fc95a225-ec44-4951-ac79-9519b41f8e78:1:23009

    abort@blob:http://localhost:8888/fc95a225-ec44-4951-ac79-9519b41f8e78:41:52912

    _3t@blob:http://localhost:8888/fc95a225-ec44-4951-ac79-9519b41f8e78:34:255153

    T3c@blob:http://localhost:8888/fc95aAn error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was:

    abort(144) at jsStackTrace@blob:http://localhost:8888/fc95a225-ec44-4951-ac79-9519b41f8e78:1:22823

    stackTrace@blob:http://localhost:8888/fc95a225-ec44-4951-ac79-9519b41f8e78:1:23009

    abort@blob:http://localhost:8888/fc95a225-ec44-4951-ac79-9519b41f8e78:41:52912

    _3t@blob:http://localhost:8888/fc95a225-ec44-4951-ac79-9519b41f8e78:34:255153

    T3c@blob:http://localhost:8888/fc95a
     
  16. shailesh-bhalerao

    shailesh-bhalerao

    Joined:
    Mar 3, 2016
    Posts:
    3
    pizz help this error in webGL
     
  17. shailesh-bhalerao

    shailesh-bhalerao

    Joined:
    Mar 3, 2016
    Posts:
    3
    unity 3d webGL build i using IMVU Loging but normal game is run but i click IMVU button game run few sec then this errors show pop and game is stop
     
  18. jister

    jister

    Joined:
    Oct 9, 2009
    Posts:
    1,749
    same here, get the same error trying to run any webgl builds. is this a bug again?
     
  19. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    could you please post a Development Build stacktrace ?
     
  20. wyvernict

    wyvernict

    Joined:
    Jun 10, 2015
    Posts:
    1
    I've been getting this tack trace error whenever I use an ocean water type shaders and scripts.
     
  21. Aaron_Wacker

    Aaron_Wacker

    Joined:
    Oct 24, 2015
    Posts:
    4
    I've found the compression support doesn't always work. Under publishing settings, set compression format to disabled. For me that works for Google Chrome WebGL.