Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

WebGL Issue with Safari

Discussion in 'WebGL' started by CraCrePMKearley, Dec 3, 2015.

  1. CraCrePMKearley

    CraCrePMKearley

    Joined:
    Aug 28, 2015
    Posts:
    3
    Hello, I've been getting an issue with my WebGL build on Safari and despite searching for any information on it I am at a loss.
    Every time I load my build of Safari I get a DOM IDBDatabase Exception (shown below). However when I build a new empty WebGL build Safari can load it with no issue.



    The only remotely substatial information I have managed to find is over a year old:
    https://github.com/pouchdb/pouchdb/issues/2533

    Has anyone else encountered this issue, is there a known solution or is it an unavoidable problem?
     
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,647
    this seems to be related to the "Data caching" option in the webgl build settings - try turning that off.

    That said, I don't know what is causing the problem. Which version of Safari is this?
     
  3. CraCrePMKearley

    CraCrePMKearley

    Joined:
    Aug 28, 2015
    Posts:
    3
    Safari version is: 9.0.1 running on Yosemite 10.10.5

    I will try turning off Data Caching and get back to you.
     
  4. CraCrePMKearley

    CraCrePMKearley

    Joined:
    Aug 28, 2015
    Posts:
    3
    Have taken Data Caching off and uploaded it and it was a success and seems to work perfectly.
    Thank you so much for the speedy response and solution.
     
  5. Threepwood

    Threepwood

    Joined:
    Jul 23, 2009
    Posts:
    92
    Had the same issue as the original poster in Safari.

    Turning of Data Caching in Player Settings/WebGL worked fine. Sure, they have to re-download the game, but I was looking to use this for Ludum Dare and the game is < 10 megs, so it's a non issue. WebGL seems to work well for 2D in Chrome, Firefox, and now Safari (with the setting change above). Also nice to see that the /Release folder is compressed and tiny now.
     
  6. DimensionU

    DimensionU

    Joined:
    Aug 1, 2013
    Posts:
    43
    Hi jonas echterhoff,

    FYI, having data caching enabled also breaks Chrome on Chromebooks.

    Thanks,

    Ben
     
  7. bigbrainz

    bigbrainz

    Joined:
    Jul 21, 2015
    Posts:
    131
    It's working for us now on Chromebooks, but still breaks Safari . . . would be really nice to get this baby working:)
     
unityunity