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

Problems with WebGL - Works locally, does not work on server.

Discussion in 'WebGL' started by dorpeleg, Apr 22, 2015.

  1. dorpeleg

    dorpeleg

    Joined:
    Aug 20, 2011
    Posts:
    250
    Hello everyone,

    We are having problems with WebGL.

    Here is what we did, we made a super simple game to test on WenGL.
    I've build it with the following settings:
    • Optimization level - Fastest (very slow builds)
    • Development build - Not checked
    • WebGL Memoery Size - 256
    • Enable Exceptions - None
    ** Note: our game does not have any 'try catch' in it at the moment

    When testing locally using Firefox, everything is working as expected.

    After uploading all the files to the server and trying to open it, the loading bar appears but when its done, the Unity splash screen does not appear and we get this:
    error1.jpg

    So we triad with the following settings :
    • Optimization level - Fastest (very slow builds)
    • Development build - Checked
    • WebGL Memoery Size - 256
    • Enable Exceptions - Full

    Now it worked, we can see the game. The problem is, All the GUI is messed up (we are using the new GUI) and the buttons are not responding.
    The log shows this:
    noerror1.jpg

    Now I triad opening it again (just refreshing the page), and its stuck on the loading bar telling me something about loading dependencies.

    Any help will be appreciated.
     
  2. Andrejus

    Andrejus

    Joined:
    Mar 2, 2015
    Posts:
    10
  3. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    The log looks like the data file it is downloading does not match the expectations. Try clearing your browser cache?
     
  4. dorpeleg

    dorpeleg

    Joined:
    Aug 20, 2011
    Posts:
    250
    @jonas echterhoff I've cleard the cache and now its just stuck on loading bar (about half way) and does not give any errors (this is the dev build).