Search Issue Tracker
Fixed in 5.3.0
Votes
0
Found in
Issue ID
741984
Regression
Yes
[WebGL] repeat script errors running build from remote web server
-e: When running even very simple projects from files.unity3d they fail loading with various script errors. When running from file or local server using build&run they always load successfully.
The same project build with 5.2 runs fine from files.unity3d.
-repro:
--open attached project
--build&run it
--notice it loads successfully
--copy build to your files.unity3d folder
--try loading it from there in your browser
--NOTICE it fails loading a script error
---Win+FF: SyntaxError: missing ) in parenthetical1 2d09c3ca-faf9-4d8c-9579-991d175680a9:186366:18
---Win+FF+dev: SyntaxError: illegal character
---Win+Chrome: Uncaught SyntaxError: Unexpected token ILLEGAL
---Win+Chrome+dev: loads
---Win+Edge: SCRIPT1014: Invalid character
---Win+Edge+dev: SCRIPT1009: Expected '}'
---OSX+FF: SyntaxError: illegal character
---OSX+FF+dev: loads
---OSX+Chrome: Uncaught SyntaxError: Unexpected token ILLEGAL
---OSX+Chrome+dev: loads
---OSX+Safari: SyntaxError: invalid character" '\0'
---OSX+Safari+dev: loads
Comments (2)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
NJInteractive
Aug 10, 2016 15:15
L i have same problem!
unity 5.4.0f3 webgl build.
batate
Aug 05, 2016 18:15
I have WebGL builds in 5.3.x (all versions) that run fine locally and over a web server connection... (just had to alter the .html file to use gz versions of resources when running remotely)... but after moving to 5.4.0f3 and trying to simply recreate the WebGL version, it runs fine locally but gives this error when running off the web server(in Firefox and Chrome latest versions).
An error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was: SyntaxError: illegal character
See for example :
5.3.5 http://www.aiai.ed.ac.uk/~ai/unity/iss/webgl/ISS.html
5.4.0 http://www.aiai.ed.ac.uk/~ai/unity/iss/webgl2/ISS.html (URL may be temporary)
Could this be another reversion at Unity 5.4?