WebPlayer randomly fails to connect to the server.

Hi everybody,

We have been using the PlayerIO services to handle our game’s networking. All went fine for us and most of our friends, but some of them simply cannot connect to the server.

This issue seems to be related to the WebPlayer, since things work fine in some computers and simply don’t work in others. All machines are using the same OS (Vista) and the webplayer was tested in multiple browsers (IE, Firefox, Chrome).

We couldn’t find anything to track this issue but the WebPlayer’s logs, that I hope helps someone resolve this issue:

Log of a malfunctioning machine:

110816 23:28:34 ------------------------------------------------------------
110816 23:28:34 Instance starting, version 2.6.1f3_31223
110816 23:28:34 Datafile http://ourserver.com.br/plasmacore/WebPlayer.unity3d
web: player version 3.3.0f4
Direct3D:
    Version:  Direct3D 9.0c [nvd3dum.dll 7.15.11.5609]
    Renderer: NVIDIA MCP67M
    Vendor:   NVIDIA
    VRAM:     64 MB
    Caps:     Shader=30 DepthRT=1 NativeDepth=0 NativeShadow=1 DF16=0 DF24=0 INTZ=0 RAWZ=1 NULL=1 RESZ=0 SlowINTZ=0
web: load mono
Mono path[0] = 'C:/Users/UserName/AppData/LocalLow/Unity/WebPlayer/player/3.x.x/Data/lib'
Mono path[1] = 'C:/Users/UserName/AppData/LocalLow/Unity/WebPlayer/mono/3.x.x/Data/lib'
web: start, src=WebPlayer.unity3d abs=http://ourserver.com.br/plasmacore/WebPlayer.unity3d
Player: init engine
web: sucessfully initialized
110816 23:28:37 loader: start ok
web: parent window change: 2044e 850x525
110816 23:28:45 Times: download 2.4 load 8.6
Platform assembly: C:\Users\UserName\AppData\LocalLow\Unity\WebPlayer\player\3.x.x\Data\lib\UnityEngine.dll (this message is harmless)
Non platform assembly: data-0785CC50 (this message is harmless)
Non platform assembly: data-0787A258 (this message is harmless)
Non platform assembly: data-0787FA60 (this message is harmless)
Non platform assembly: data-0C8A0048 (this message is harmless)
Non platform assembly: data-0C8BFC50 (this message is harmless)
<I> Initializing (RawInput).

<RI> Input initialized.

desktop: 1280x800 60Hz; virtual: 1280x800 at 0,0
Platform assembly: C:\Users\UserName\AppData\LocalLow\Unity\WebPlayer\mono\3.x.x\Data\lib\System.Core.dll (this message is harmless)
Changing state: RegisterState
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
StateMachine:UpdateMachine()
GameGUI:Update()
 
(Filename: C:/BuildAgent/work/6bc5f79e0a4296d6/Runtime/ExportGenerated/WebPlayer/BaseClass.cpp Line: 2505)

Platform assembly: C:\Users\UserName\AppData\LocalLow\Unity\WebPlayer\player\3.x.x\Data\lib\CrossDomainPolicyParser.dll (this message is harmless)
Successfully connected to Player.IO!
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
<RegisterAccount>c__AnonStoreyB:<>m__16(Client)
PlayerIOClient.<>c__DisplayClass3:<Connect>b__2(ConnectOutput)
PlayerIOClient.Internal.<>c__DisplayClass3:<Connect>b__2(ConnectOutput)
PlayerIOClient.Internal.<call>d__ff`3:MoveNext()
 
(Filename: C:/BuildAgent/work/6bc5f79e0a4296d6/Runtime/ExportGenerated/WebPlayer/BaseClass.cpp Line: 2505)

Platform assembly: C:\Users\UserName\AppData\LocalLow\Unity\WebPlayer\mono\3.x.x\Data\lib\System.dll (this message is harmless)
SocketPolicyClient1: Incoming GetPolicyStreamForIP

SocketPolicyClient1: About to BeginConnect to 96.127.154.202:843

SocketPolicyClient1: About to WaitOne

SocketPolicyClient1: Socket connected

Log of a normal machine that successfully connects to the server:

110815 23:54:44 ------------------------------------------------------------
110815 23:54:44 Instance starting, version 3.3.0f4_63135
110815 23:54:44 Datafile http://ourserver.com.br/plasmacore/WebPlayer.unity3d
web: player version 3.3.0f4
Direct3D:
    Version:  Direct3D 9.0c [nvd3dum.dll 7.15.11.5669]
    Renderer: NVIDIA GeForce 8400M GS 
    Vendor:   NVIDIA
    VRAM:     128 MB
    Caps:     Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 DF24=0 INTZ=1 RAWZ=0 NULL=1 RESZ=0 SlowINTZ=0
web: load mono
Mono path[0] = 'C:/Users/UserName/AppData/LocalLow/Unity/WebPlayer/player/3.x.x/Data/lib'
Mono path[1] = 'C:/Users/UserName/AppData/LocalLow/Unity/WebPlayer/mono/3.x.x/Data/lib'
Waiting for connection from host...
Timed out. Continuing without host connection.
web: start, src=WebPlayer.unity3d abs=http://ourserver.com.br/plasmacore/WebPlayer.unity3d
Player: init engine
web: sucessfully initialized
110815 23:54:50 loader: start ok
web: parent window change: 37c0758 850x525
110815 23:55:05 Times: download 0.8 load 21.0
Platform assembly: C:\Users\UserName\AppData\LocalLow\Unity\WebPlayer\player\3.x.x\Data\lib\UnityEngine.dll (this message is harmless)
Non platform assembly: data-0D5A0D50 (this message is harmless)
Non platform assembly: data-0D594270 (this message is harmless)
Non platform assembly: data-0D5BF348 (this message is harmless)
Non platform assembly: data-0E650048 (this message is harmless)
Non platform assembly: data-0D601640 (this message is harmless)
<I> Initializing (RawInput).

<RI> Input initialized.

desktop: 1280x800 60Hz; virtual: 2560x800 at -1280,0
Platform assembly: C:\Users\UserName\AppData\LocalLow\Unity\WebPlayer\mono\3.x.x\Data\lib\System.Core.dll (this message is harmless)
Platform assembly: C:\Users\UserName\AppData\LocalLow\Unity\WebPlayer\player\3.x.x\Data\lib\CrossDomainPolicyParser.dll (this message is harmless)
Successfully connected to Player.IO!
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
<ConnectToLobby>c__AnonStorey9:<>m__14(Client)
PlayerIOClient.<>c__DisplayClass3:<Connect>b__2(ConnectOutput)
PlayerIOClient.Internal.<>c__DisplayClass3:<Connect>b__2(ConnectOutput)
PlayerIOClient.Internal.<call>d__ff`3:MoveNext()
 
(Filename: C:/BuildAgent/work/6bc5f79e0a4296d6/Runtime/ExportGenerated/WebPlayer/BaseClass.cpp Line: 2505)

Platform assembly: C:\Users\UserName\AppData\LocalLow\Unity\WebPlayer\mono\3.x.x\Data\lib\System.dll (this message is harmless)
SocketPolicyClient1: Incoming GetPolicyStreamForIP

SocketPolicyClient1: About to BeginConnect to 96.127.166.106:843

SocketPolicyClient1: About to WaitOne

SocketPolicyClient1: Socket connected

Message Received: LoginSuccess
 
(Filename: C:/BuildAgent/work/6bc5f79e0a4296d6/Runtime/ExportGenerated/WebPlayer/BaseClass.cpp Line: 2505)

Joined The Lobby.
 
(Filename: C:/BuildAgent/work/6bc5f79e0a4296d6/Runtime/ExportGenerated/WebPlayer/BaseClass.cpp Line: 2505)

Message Received: AllPlayers
 
(Filename: C:/BuildAgent/work/6bc5f79e0a4296d6/Runtime/ExportGenerated/WebPlayer/BaseClass.cpp Line: 2505)

Message Received: PlayerName
 
(Filename: C:/BuildAgent/work/6bc5f79e0a4296d6/Runtime/ExportGenerated/WebPlayer/BaseClass.cpp Line: 2505)

Message Received: PlayerJoined
 
(Filename: C:/BuildAgent/work/6bc5f79e0a4296d6/Runtime/ExportGenerated/WebPlayer/BaseClass.cpp Line: 2505)

Changing state: LobbyState
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
StateMachine:UpdateMachine()
GameGUI:Update()
 
(Filename: C:/BuildAgent/work/6bc5f79e0a4296d6/Runtime/ExportGenerated/WebPlayer/BaseClass.cpp Line: 2505)

110815 23:55:38 Closing plugin window
web: shutdown player
web: shutdown finished
110815 23:55:38 loader: final cleanup
110815 23:55:38 loader: unload unity dll

Thanks in advance o/
Bruno.

You should post this in the support section.

Thanks appels, I will be doing that.