Hi there,
we're currently experiencing a crash when trying to create a new room, but only on iOS device, in Unity Editor the problem does not occur.
Here is the code (simplified):
We're using Photon v1.83. Anyone experiencing similar problems?
we're currently experiencing a crash when trying to create a new room, but only on iOS device, in Unity Editor the problem does not occur.
Here is the code (simplified):
int rank = 1234;
RoomOptions roomOptions = new RoomOptions();
roomOptions.CustomRoomProperties = new ExitGames.Client.Photon.Hashtable()
{
{ "C0", rank }
};
roomOptions.CustomRoomPropertiesForLobby = new string[] { "C0" };
roomOptions.MaxPlayers = 2;
PhotonNetwork.CreateRoom(null, roomOptions, null);
This leads to following exception:NotSupportedException: Strings that exceed a UTF8-encoded byte-length of 32767 (short.MaxValue) are not supported. Yours is: 66588
at ExitGames.Client.Photon.Protocol16.SerializeDictionaryHeader (ExitGames.Client.Photon.StreamBuffer writer, System.Object dict, Boolean& setKeyType, Boolean& setValueType) [0x00000] in :0
at ExitGames.Client.Photon.Protocol16.Serialize (ExitGames.Client.Photon.StreamBuffer dout, System.Object serObject, Boolean setType) [0x00000] in :0
at ExitGames.Client.Photon.Protocol16.SerializeHashTable (ExitGames.Client.Photon.StreamBuffer dout, ExitGames.Client.Photon.Hashtable serObject, Boolean setType) [0x00000] in :0
at ExitGames.Client.Photon.Protocol16.Serialize (ExitGames.Client.Photon.StreamBuffer dout, System.Object serObject, Boolean setType) [0x00000] in :0
at ExitGames.Client.Photon.Protocol16.SerializeParameterTable (ExitGames.Client.Photon.StreamBuffer stream, System.Collections.Generic.Dictionary`2 parameters) [0x00000] in :0
at ExitGames.Client.Photon.EnetPeer.SerializeOperationToMessage (Byte opCode, System.Collections.Generic.Dictionary`2 parameters, EgMessageType messageType, Boolean encrypt) [0x00000] in :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 :0
at ExitGames.Client.Photon.PhotonPeer.OpCustom (Byte customOpCode, System.Collections.Generic.Dictionary`2 customOpParameters, Boolean sendReliable, Byte channelId) [0x00000] in :0
at LoadBalancingPeer.OpJoinRoom (.EnterRoomParams opParams) [0x00000] in :0
at NetworkingPeer.OnOperationResponse (ExitGames.Client.Photon.OperationResponse operationResponse) [0x00000] in :0
at ExitGames.Client.Photon.PeerBase.DeserializeMessageAndCallback (System.Byte[] inBuff) [0x00000] in :0
at ExitGames.Client.Photon.EnetPeer.DispatchIncomingCommands () [0x00000] in :0
at ExitGames.Client.Photon.PhotonPeer.DispatchIncomingCommands () [0x00000] in :0
at PhotonHandler.Update () [0x00000] in :0
at ExitGames.Client.Photon.Protocol16.SerializeDictionaryHeader (ExitGames.Client.Photon.StreamBuffer writer, System.Object dict, Boolean& setKeyType, Boolean& setValueType) [0x00000] in :0
at ExitGames.Client.Photon.Protocol16.Serialize (ExitGames.Client.Photon.StreamBuffer dout, System.Object serObject, Boolean setType) [0x00000] in :0
at ExitGames.Client.Photon.Protocol16.SerializeHashTable (ExitGames.Client.Photon.StreamBuffer dout, ExitGames.Client.Photon.Hashtable serObject, Boolean setType) [0x00000] in :0
at ExitGames.Client.Photon.Protocol16.Serialize (ExitGames.Client.Photon.StreamBuffer dout, System.Object serObject, Boolean setType) [0x00000] in :0
at ExitGames.Client.Photon.Protocol16.SerializeParameterTable (ExitGames.Client.Photon.StreamBuffer stream, System.Collections.Generic.Dictionary`2 parameters) [0x00000] in :0
at ExitGames.Client.Photon.EnetPeer.SerializeOperationToMessage (Byte opCode, System.Collections.Generic.Dictionary`2 parameters, EgMessageType messageType, Boolean encrypt) [0x00000] in :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 :0
at ExitGames.Client.Photon.PhotonPeer.OpCustom (Byte customOpCode, System.Collections.Generic.Dictionary`2 customOpParameters, Boolean sendReliable, Byte channelId) [0x00000] in :0
at LoadBalancingPeer.OpJoinRoom (.EnterRoomParams opParams) [0x00000] in :0
at NetworkingPeer.OnOperationResponse (ExitGames.Client.Photon.OperationResponse operationResponse) [0x00000] in :0
at ExitGames.Client.Photon.PeerBase.DeserializeMessageAndCallback (System.Byte[] inBuff) [0x00000] in :0
at ExitGames.Client.Photon.EnetPeer.DispatchIncomingCommands () [0x00000] in :0
at ExitGames.Client.Photon.PhotonPeer.DispatchIncomingCommands () [0x00000] in :0
at PhotonHandler.Update () [0x00000] in :0
We're using Photon v1.83. Anyone experiencing similar problems?