unexpected dissconect

1) create a room (CreateRoom)
2) I load the room (PhotonNetwork.Loadlevel)
3) The selected level is loaded
4) Disconnects from the room almost immediately

FULL INFO:
System Information

======================

System

----------------------

Operating System - Android OS 4.4.2 / API-19 (KOT49H/A536_S186_150813_ROW)

Device Type - Handheld

Device Model - LENOVO Lenovo A536

CPU Type - ARMv7 VFPv3 NEON

CPU Count - 4

System Memory - 965 MB

Unity

----------------------

Version - 5.6.2f1

Debug - False

Unity Pro - False

Genuine - Yes (Untrusted)

System Language - Russian

Platform - Android

IL2CPP - No

SRDebugger Version - 1.6.2

Display

----------------------

Resolution - 854x480

DPI - 240

Fullscreen - True

Orientation - Landscape

Runtime

----------------------

Play Time - 73.57458

Level Play Time - 8.377418

Current Level - 6 (Index: 9)

Quality Level - Beautiful (4)

Features

----------------------

Location - True

Accelerometer - True

Gyroscope - False

Vibration - True

Graphics

----------------------

Device Name - Mali-400 MP

Device Vendor - ARM

Device Version - OpenGL ES 2.0

Max Tex Size - 4096

NPOT Support - Full

Render Textures - Yes (1)

3D Textures - False

Compute Shaders - False

Image Effects - True

Cubemaps - True

Shadows - True

Stencil - 1

Sparse Textures - False

Console Log (Oldest First)

======================

[Warning] [SRDebugger] No EventSystem found in scene - creating a default one.

(^ repeats 1 time)

[Log] FingerGestures: using Touch Input Provider

[Log] AN: Using proxy for class: com.androidnative.features.common.AndroidNativeUtility method:GetFromCacheStorage

[Warning] Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.

[Log] Using Facebook Unity SDK v7.9.4 with FBAndroidSDK/4.17.0

[Log] Connect()

[Log] CSharpSocket: UDP, Unity3d.

[Log] IPhotonSocket.Connect() ns.exitgames.com:5058 this.Protocol: Udp

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 1/0 st/r#/rt:0/0/0) channel seq# r/u: 0/0

[Log] OnStatusChanged: Connect current State: ConnectingToNameServer

[Log] Connected to NameServer.

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 2/0 st/r#/rt:0/0/0) channel seq# r/u: 1/0

[Log] OnStatusChanged: EncryptionEstablished current State: ConnectingToNameServer

[Log] OpAuthenticate()

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 3/0 st/r#/rt:0/0/0) channel seq# r/u: 2/0

[Log] OperationResponse 230: ReturnCode: 0.

[Log] Received your UserID from server. Updating local value to: Player#723

[Log] CSharpSocket.Disconnect()

[Log] OnStatusChanged: Disconnect current State: DisconnectingFromNameServer

[Log] Connect()

[Log] CSharpSocket: UDP, Unity3d.

[Log] IPhotonSocket.Connect() 50.22.246.4:5055 this.Protocol: Udp

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 1/0 st/r#/rt:0/0/0) channel seq# r/u: 0/0

[Log] OnStatusChanged: Connect current State: ConnectingToMasterserver

[Log] Connected to masterserver.

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 2/0 st/r#/rt:0/0/0) channel seq# r/u: 1/0

[Log] OnStatusChanged: EncryptionEstablished current State: Authenticating

[Log] OpAuthenticate()

[Log] queueIncomingCommand() CMD(7 c#:0 r/u: 2/1 st/r#/rt:0/0/0) channel seq# r/u: 2/0

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 3/0 st/r#/rt:0/0/0) channel seq# r/u: 2/0

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 4/0 st/r#/rt:0/0/0) channel seq# r/u: 2/0

[Log] OnEvent: Event 226.

[Log] OnEvent: Event 224.

[Log] OperationResponse 230: ReturnCode: 0.

[Log] OpJoinLobby()

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 5/0 st/r#/rt:0/0/0) channel seq# r/u: 4/1

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 6/0 st/r#/rt:0/0/0) channel seq# r/u: 4/1

[Log] OperationResponse 229: ReturnCode: 0.

[Log] OnEvent: Event 230.

[Warning] Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.

(^ repeats 27 times)

[Log] OpCreateRoom()

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 7/0 st/r#/rt:0/0/0) channel seq# r/u: 6/1

[Log] OperationResponse 227: ReturnCode: 0.

[Log] CSharpSocket.Disconnect()

[Log] OnStatusChanged: Disconnect current State: DisconnectingFromMasterserver

[Log] Connect()

[Log] CSharpSocket: UDP, Unity3d.

[Log] IPhotonSocket.Connect() 50.22.246.8:5056 this.Protocol: Udp

[Log] CSharpSocket.Disconnect()

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 1/0 st/r#/rt:0/0/0) channel seq# r/u: 0/0

[Log] OnStatusChanged: Connect current State: ConnectingToGameserver

[Log] Connected to gameserver.

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 2/0 st/r#/rt:0/0/0) channel seq# r/u: 1/0

[Log] OnStatusChanged: EncryptionEstablished current State: ConnectedToGameserver

[Log] OpAuthenticate()

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 3/0 st/r#/rt:0/0/0) channel seq# r/u: 2/0

[Log] OperationResponse 230: ReturnCode: 0.

[Log] OpCreateRoom()

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 4/0 st/r#/rt:0/0/0) channel seq# r/u: 3/0

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 5/0 st/r#/rt:0/0/0) channel seq# r/u: 3/0

[Log] OperationResponse 227: ReturnCode: 0.

[Log] OpSetPropertiesOfRoom()

[Warning] The tree Container1 must use the Nature/Soft Occlusion shader. Otherwise billboarding/lighting will not work correctly.

[Log] Registered PhotonView: 3

[Warning] There is already an instance of FingerGestures created (FingerGestures). Destroying new one.

[Log] Registered PhotonView: 1001

[Log] Registered PhotonView: 1002

[Log] OpSetPropertiesOfRoom()

[Log] Sending RPC "ChangeParamPlayer" to target: OthersBuffered or player:.

[Warning] [PV] MicWrapper does not support suggested frequency 24000 (min: 44100, max: 44100). Setting to 44100

[Warning] PUNVoice: [PV] Local voice #1 audio source frequency 44100 and encoder sampling rate 24000 do not match. Resampling will occur before encoding.

[Log] PUNVoice: [PV] Local v#1 ch#1 added enc: c=AudioOpus f=24000 ch=1 d=20000 s=480 b=30000 w=0 h=0 ud=1001

[Log] PUNVoice: [PV] Local v#1 ch#1: Starting data encode thread

[Log] queueIncomingCommand() CMD(6 c#:0 r/u: 6/0 st/r#/rt:0/0/0) channel seq# r/u: 4/0

(^ repeats 1 time)

[Log] Info: command was received before! Old/New: CMD(6 c#:0 r/u: 6/0 st/r#/rt:0/0/0)/CMD(6 c#:0 r/u: 6/0 st/r#/rt:0/0/0) inReliableSeq#: 4

[Log] Server 50.22.246.8:5056 sent disconnect. PeerId: 22695 RTT/Variance:184/13 reason byte: 2

[Log] OnStatusChanged: DisconnectByServer current State: Joined

[Log] CSharpSocket.Disconnect()

[Log] OnStatusChanged: Disconnect current State: Disconnecting

[Log] Network destroy Instantiated GO: Player#1

[Log] Network destroy Instantiated GO: Body

[Log] CSharpSocket.Disconnect()

[Log] PUNVoice: [PV] Local v#1 ch#1 removed

[Log] PUNVoice: [PV] Local v#1 ch#1: Exiting data encode thread

[Exception] NullReferenceException: Object reference not set to an instance of an object

MainScript.Update ()

(^ repeats 7 times)

Answers

  • Fabien
    Fabien
    edited July 2017
    Why there is a trip from the room?
    Exception -> PhotonNetwork.room.PlayerCount

    P.S. On some devices everything works fine, and on some devices it turns off