System.IndexOutOfRangeException: Array index is out of range

Options
cnsoft
edited February 2014 in Photon Server
i got this error after i upgrade photon network library to 1.22.
i noticed that " at Photon.MmoDemo.Client.Game.SendOperation (OperationCode operationCode, System.Collections.Generic.Dictionary`2 parameter, Boolean sendReliable, Byte channelId) [0x00000] in <filename unknown>:0 " is the keypoint. right?

the function is declared in Game.cs (include the photon mmo sdk)
public void SendOperation(OperationCode operationCode, Dictionary<byte, object> parameter, bool sendReliable, byte channelId)

here is the error prompt log:

" :oops: System.IndexOutOfRangeException: Array index is out of range.
at ExitGames.Client.Photon.Protocol.SerializeDictionaryHeader (System.IO.MemoryStream writer, System.Object dict, System.Boolean& setKeyType, System.Boolean& setValueType) [0x00000] in <filename unknown>:0
at ExitGames.Client.Photon.Protocol.SerializeDictionary (System.IO.MemoryStream dout, IDictionary serObject, Boolean setType) [0x00000] in <filename unknown>:0
at ExitGames.Client.Photon.Protocol.Serialize (System.IO.MemoryStream dout, System.Object serObject, Boolean setType) [0x00000] in <filename unknown>:0
at ExitGames.Client.Photon.Protocol.SerializeParameterTable (System.IO.MemoryStream memStream, System.Collections.Generic.Dictionary`2 parameters) [0x00000] in <filename unknown>:0
at ExitGames.Client.Photon.Protocol.SerializeOperationRequest (System.IO.MemoryStream memStream, Byte operationCode, System.Collections.Generic.Dictionary`2 parameters, Boolean setType) [0x00000] in <filename unknown>:0
at ExitGames.Client.Photon.EnetPeer.SerializeOperationToMessage (Byte opc, System.Collections.Generic.Dictionary`2 parameters, EgMessageType messageType, Boolean encrypt) [0x00000] in <filename unknown>:0
at ExitGames.Client.Photon.EnetPeer.EnqueueOperation (System.Collections.Generic.Dictionary`2 parameters, Byte opCode, Boolean sendReliable, Byte channelId, Boolean encrypt, EgMessageType messageType) [0x00000] in <filename unknown>:0
at ExitGames.Client.Photon.PeerBase.EnqueueOperation (System.Collections.Generic.Dictionary`2 parameters, Byte opCode, Boolean sendReliable, Byte channelId, Boolean encrypted) [0x00000] in <filename unknown>:0
at ExitGames.Client.Photon.PhotonPeer.OpCustom (Byte customOpCode, System.Collections.Generic.Dictionary`2 customOpParameters, Boolean sendReliable, Byte channelId) [0x00000] in <filename unknown>:0
at Photon.MmoDemo.Client.GameStateStrategies.Connected.SendOperation (Photon.MmoDemo.Client.Game game, OperationCode operationCode, System.Collections.Generic.Dictionary`2 parameter, Boolean sendReliable, Byte channelId) [0x00000] in <filename unknown>:0
at Photon.MmoDemo.Client.Game.SendOperation (OperationCode operationCode, System.Collections.Generic.Dictionary`2 parameter, Boolean sendReliable, Byte channelId) [0x00000] in <filename unknown>:0
at Photon.MmoDemo.Client.Operations.EnterWorld (Photon.MmoDemo.Client.Game game, System.String worldName, System.String username, System.Collections.Hashtable properties, System.Single[] position, System.Single[] rotation, System.Single[] viewDistanceEnter, System.Single[] viewDistanceExit) [0x00000] in <filename unknown>:0
at Photon.MmoDemo.Client.MyItem.EnterWorld () [0x00000] in <filename unknown>:0
at Photon.MmoDemo.Client.GameStateStrategies.WaitingForConnect.OnPeerStatusCallback (Photon.MmoDemo.Client.Game game, StatusCode returnCode) [0x00000] in <filename unknown>:0
at Photon.MmoDemo.Client.Game.OnStatusChanged (StatusCode returnCode) [0x00000] in <filename unknown>:0
UnityEngine.Debug:Log(Object)
MmoEngine:LogError(Game, Exception) (at Assets/Photon/MmoEngine.cs:439)
Photon.MmoDemo.Client.Game:OnStatusChanged(StatusCode)"

Actually, i am running mixture mode photon mmo server and cloud logic always. previous, i use the the version of Photon3Unity3d.dll from PUN+. but it seems in the latest version, something is changed (about serialize?) . so it broken the photon mmo server client side. So may i ask you guys figure out the issue? .

Comments