DOM IDBDatabase

Hi, I have installed Unity5.0.1 (few minutes ago) and now if I export a simple project (a sphere over a plane), I have this error in local execution:

An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was: NotFoundError: DOM IDBDatabase Exception 8: An operation failed because the requested database object could not be found.

any idea?

What platform (browser/OS) is this?

Safari Versione 8.0.5 (10600.5.17) on iMac

I have seen similar errors on Safari on iOS, but not on my Mac. The IDBDatabase is what is used for local storage. Are you using any of that? PlayerPrefs? Caching in WebGL Player Settings? How are you running the player? Local file:// url? Build & Run? Or uploaded to a server?

PlayerPrefs and launched with Build & Run.
On FireFox works.

https://www.dropbox.com/sh/dv6hkamjs43v25j/AABa9EUreqSP77M0s1KGvcSLa?dl=0
here a simple test with these errors on Safari.

This is not actually hosted in a way which lets me run it from the server or easily download it. Could you zip it up?

Of course.
with DropBox okay? (Dropbox - Error - Simplify your life) or do you want that I upload here on the forum?

On IE I have this error, is normal? :expressionless: After OK the game is blocked on loading bar.

2076392--135575--Schermata 2015-04-20 alle 11.43.40.png

As for the IndexedDB error, I believe it may be related to WebGL local caching. Can you try disabling that in WebGL Player Settings? As for IE, we don’t officially support IE yet (latest versions should work after you click OK, though - just without audio).

Yes, works on Safari without the local caching… So without this setting a user downloads the application every time? :eyes:

Same question as @lordubik : without this setting a user downloads the application every time?

What happen with the “resource url” caching of the browser by GET?

Where is an ooficial link with all the browser and version supported by webgl unity?

1 Like

I seem to have a similar issue as lordubik on safari (iOS)… unfortunately caching was never enabled so that’s not the cause.

i never had trouble on mac with data caching. must be the player pref
the only device who really dont support any sort of caching with unity webgl is the ipad.
can’t tell for blackberry and windows phone. these are the only device i never tested on and the market share is so low anyway.

Definitely the local caching… any update on this?

Same here. Empty WebGL project will not run with “Data Caching” enabled in Player Settings on Safari MacOS and runs fine without it.

NotFoundError: DOM IDBDatabase Exception 8: An operation failed because the requested database object could not be found.

Reproduces on 5.3.4f1 & 5.3.4p6.

is it planned to fix the data caching problems with apple devices like iphone, mac and ipad?

our webgl game have great performance on most mobile devices but for some reason, ipad are the worst

and no data caching cost a lot on the server side

I still see this problem with Safari 9.1.1 on Mac OS X with data caching turned on even in the latest patch release 5.3.5p6. Does anyone know if there is a bug report filed to try to get this to be a priority?

I did find this…

  • Firefox up to version 42 and Safari will not support IndexedDB for content running in an iFrame. Firefox 43 and higher will fix this.

… on this page…
https://docs.unity3d.com/Manual/webgl-browsercompatibility.html

But I’m not running my WebGL game within an iFrame, so it should work, no? It doesn’t.