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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

WEBGL build not working in chrome 49

Discussion in 'WebGL' started by techs21, Apr 1, 2016.

  1. techs21

    techs21

    Joined:
    Aug 18, 2015
    Posts:
    59
    I am getting an error while trying to load the webgl build in chrome. I am using unity version 5.3.2f1 here is the link to the build there is a password but you dont need to go that far

    https://gamecorestudios.com/preview/2

    please if any one has any idea how to fix this error please let me know
    thanks
     

    Attached Files:

  2. DimensionU

    DimensionU

    Joined:
    Aug 1, 2013
    Posts:
    43
    @techs21 - FYI, I get no error on Chrome 49 on Mac OS X. Have you cleared your browser cache? Sometimes old build cruft can cause unexpected errors.
     
  3. techs21

    techs21

    Joined:
    Aug 18, 2015
    Posts:
    59
    i have cleared the cache and even tried incognito mode same thing i included a video on what i get please have a look and let me know if anyone has any ideas on how to fix it
     

    Attached Files:

  4. alexsuvorov

    alexsuvorov

    Unity Technologies

    Joined:
    Nov 15, 2015
    Posts:
    327
    Hello techs21.

    Does the problem persist if you lower your TOTAL_MEMORY size to about 512 MB? (you can just edit the index.html file manually to try that, i.e. change line 82 to: TOTAL_MEMORY: 536870912, )
     
    Last edited: Apr 1, 2016
  5. sumpfkraut

    sumpfkraut

    Joined:
    Jan 18, 2013
    Posts:
    241
    it works for me too... with Chrome and Firefox.
    try to reload with Ctrl + F5
     
  6. techs21

    techs21

    Joined:
    Aug 18, 2015
    Posts:
    59
    If I lower the memory then I get a memory error in Firefox

    Also I have tried to clear cache and I have tried crtl + f5 with same problem
     
  7. alexsuvorov

    alexsuvorov

    Unity Technologies

    Joined:
    Nov 15, 2015
    Posts:
    327
    Yes, but it does start in Chrome then right? So this is clearly a memory size issue.
    32-bit Chrome is known to not handle 1GB memory heap well, what if you try 768MB?

    EDIT: I was able to reproduce your error in Chrome 49 Win 32-bit with your initial 1024MB heap, however I could run your exact build in the same Chrome browser with the heap as large as 1008MB (although the exact number might depend on situation and it would be safe to make it a bit lower). In any case 20-50 MB should not make much difference for your application.
     
    Last edited: Apr 1, 2016
  8. techs21

    techs21

    Joined:
    Aug 18, 2015
    Posts:
    59
    If I change the memory lower then it will show a memory error in Firefox but I will lower it and then I will post the something with the Firefox error I am getting
     
  9. arzi42

    arzi42

    Joined:
    Sep 16, 2016
    Posts:
    12
    I'm having the same problem with Chrome (54) on OSX with Unity 5.5. The app's memory size is only 256MB, so it's can't be that.