WebGL bug on Safari

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Post Reply
BonyYousuf
Posts: 120
Joined: 20 Feb 2011, 12:54

WebGL bug on Safari

Post by BonyYousuf »

Hi,
I have ported my game on WebGL. So far it's running great. But only on safari (mac yosemite) I can not run my build. It gives the following error. Just thought you guys should know.

Code: Select all

[Error] exception thrown: ReferenceError: Can't find variable: TextDecoder,_SocketSend@http://localhost:53499/Release/webgl.js:10894:35
__Z5m6021P3t12i3t52ibP10MethodInfo@http://localhost:53499/Release/webgl.js:2806584:13
__Z5m6029P5t1058P2t2P10MethodInfo@http://localhost:53499/Release/webgl.js:2806049:36
__Z5m5993P5t1057P2t2P10MethodInfo@http://localhost:53499/Release/webgl.js:2806003:36
__ZN23InterfaceActionInvoker1IP2t2E6InvokeEP10MethodInfoPvS1_@http://localhost:53499/Release/webgl.js:2482591:32
__Z5m6040P5t1063P3t12P10MethodInfo@http://localhost:53499/Release/webgl.js:2806899:64
__ZN23InterfaceActionInvoker1IP3t12E6InvokeEP10MethodInfoPvS1_@http://localhost:53499/Release/webgl.js:2748482:32
__Z5m6049P5t1064P3t12P10MethodInfo@http://localhost:53499/Release/webgl.js:2807165:64
__ZN23InterfaceActionInvoker1IP3t12E6InvokeEP10MethodInfoPvS1_@http://localhost:53499/Release/webgl.js:2748482:32
__Z5m5967P5t1056P3t12P10MethodInfo@http://localhost:53499/Release/webgl.js:2805231:64
__ZN23InterfaceActionInvoker1IP3t12E6InvokeEP10MethodInfoPvS1_@http://localhost:53499/Release/webgl.js:2748482:32
__Z5m1836P4t237P3t12P10MethodInfo@http://localhost:53499/Release/webgl.js:2749585:64
__Z5m4499P4t237bP10MethodInfo@http://localhost:53499/Release/webgl.js:2750561:35
__Z5m4484P4t237P4t100P10MethodInfo@http://localhost:53499/Release/webgl.js:2750483:32
__Z5m5013P4t471P4t100P10MethodInfo@http://localhost:53499/Release/webgl.js:2766534:32
__ZN18VirtActionInvoker1IP4t100E6InvokeEP10MethodInfoPvS1_@http://localhost:53499/Release/webgl.js:2766589:32
__Z5m5019P4t849P4t100P10MethodInfo@http://localhost:53499/Release/webgl.js:2751515:60
__Z5m5980P5t1056P10MethodInfo@http://localhost:53499/Release/webgl.js:2805479:36
__Z5m4888P4t904P10MethodInfo@http://localhost:53499/Release/webgl.js:2764720:31
__ZN18VirtActionInvoker06InvokeEP10MethodInfoPv@http://localhost:53499/Release/webgl.js:2478201:31
__Z5m6011P5t1057P10MethodInfo@http://localhost:53499/Release/webgl.js:2806450:49
__Z5m6007P5t1057P10MethodInfo@http://localhost:53499/Release/webgl.js:2806201:33
__Z5m2221P4t237P10MethodInfo@http://localhost:53499/Release/webgl.js:2751577:34
__Z4m963P4t224P10MethodInfo@http://localhost:53499/Release/webgl.js:2519184:30
__Z18RuntimeInvoker_t48P10MethodInfoPvPS1_@http://localhost:53499/Release/webgl.js:3202225:31
__ZN6il2cpp2vm7Runtime6InvokeEP10MethodInfoPvPS4_PP12Il2CppObject@http://localhost:53499/Release/webgl.js:95281:38
_il2cpp_runtime_invoke@http://localhost:53499/Release/webgl.js:30169:73
__Z23scripting_method_invoke21ScriptingMethodIl2CppP15ScriptingObjectR18ScriptingArgumentsPP18ScriptingException@http://localhost:53499/Release/webgl.js:1254949:30
__ZN25ScriptingInvocationNoArgs6InvokeEPP18ScriptingException@http://localhost:53499/Release/webgl.js:1525321:121
__ZN25ScriptingInvocationNoArgs6InvokeEv@http://localhost:53499/Release/webgl.js:1525289:37
__ZN13MonoBehaviour16CallUpdateMethodEi@http://localhost:53499/Release/webgl.js:1515722:43
__ZN13MonoBehaviour11FixedUpdateEv@http://localhost:53499/Release/webgl.js:1515743:41
__ZN20BaseBehaviourManager12CommonUpdateI21FixedBehaviourManagerEEvv@http://localhost:53499/Release/webgl.js:1216072:33
__ZN21FixedBehaviourManager6UpdateEv@http://localhost:53499/Release/webgl.js:1215873:70
__Z10PlayerLoopbbP10IHookEvent@http://localhost:53499/Release/webgl.js:1421952:36
__ZL8mainloopv@http://localhost:53499/Release/webgl.js:2436631:32
dynCall_v@http://localhost:53499/Release/webgl.js:3484760:34
dynCall@http://localhost:53499/Release/webgl.js:277:43
http://localhost:53499/Release/webgl.js:10038:28
runIter@http://localhost:53499/Release/webgl.js:6054:17
Browser_mainLoop_runner@http://localhost:53499/Release/webgl.js:10034:33
	printErr (localhost, line 33)
	runIter (webgl.js, line 6059)
	Browser_mainLoop_runner (webgl.js, line 10034)
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: WebGL bug on Safari

Post by Lapo »

What is exactly the release of Unity you're using?
Lapo
--
gotoAndPlay()
...addicted to flash games
BonyYousuf
Posts: 120
Joined: 20 Feb 2011, 12:54

Re: WebGL bug on Safari

Post by BonyYousuf »

The latest stable release Unity 5.0.0f4
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: WebGL bug on Safari

Post by Bax »

This bug should be fixed. If you contact us by email, we can send you a file to test it in your project.
Paolo Bax
The SmartFoxServer Team
BonyYousuf
Posts: 120
Joined: 20 Feb 2011, 12:54

Re: WebGL bug on Safari

Post by BonyYousuf »

What other bugs has been fixed on that release? And sure, I just sent an email at info@smartfoxserver.com
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: WebGL bug on Safari

Post by Bax »

SIDE NOTE

Are you sure Safari is supported? Because whatever example we run in Safari (v7.1.3), no content is rendered and the javascript console shows the following informations:

Code: Select all

Initialize engine version: 5.0.0f4 (5b98b70ebeb9)
NullGfxDevice:
    Version:  NULL 1.0 [1.0]
    Renderer: Null Device
    Vendor:   Unity Technologies
Paolo Bax
The SmartFoxServer Team
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: WebGL bug on Safari

Post by Bax »

BonyYousuf wrote:What other bugs has been fixed on that release? And sure, I just sent an email at info@smartfoxserver.com
No other changes, as no other bugs have been discovered as of today.
Paolo Bax
The SmartFoxServer Team
BonyYousuf
Posts: 120
Joined: 20 Feb 2011, 12:54

Re: WebGL bug on Safari

Post by BonyYousuf »

Yes, Safari is fully supported. I have run many other WebGL projects both created by me and others. All running just fine.
BonyYousuf
Posts: 120
Joined: 20 Feb 2011, 12:54

Re: WebGL bug on Safari

Post by BonyYousuf »

Thanks for the updated file. It worked :D
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: WebGL bug on Safari

Post by Bax »

Thank you for reporting. We have updated the API beta package with the new file.
Paolo Bax
The SmartFoxServer Team
Post Reply