Broken string serialization
Options
In the Version 4.1.4.0 (27. April 2020 - rev5468)
A new bug was introduced when sending a string with characters bigger than 1 byte via RPC
I don't have access to the dll but probably you are sending the string length instead of the byte length for the serialization
A new bug was introduced when sending a string with characters bigger than 1 byte via RPC
I don't have access to the dll but probably you are sending the string length instead of the byte length for the serialization
ArgumentOutOfRangeException: ArgRange_StringRange Parameter name: charCount System.Text.UTF8Encoding.GetBytes (System.String s, Int32 charIndex, Int32 charCount, System.Byte[] bytes, Int32 byteIndex) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Text/UTF8Encoding.cs:388) ExitGames.Client.Photon.Protocol16.SerializeString (ExitGames.Client.Photon.StreamBuffer stream, System.String value, Boolean setType) ExitGames.Client.Photon.Protocol16.Serialize (
1
Comments
-
Thx for the report. Will look into this immediately.1
-
Should be fixed in this update:
https://www.dropbox.com/s/enostxqx78pu169/Photon3Unity3D-v4-1-4-1.zip?dl=1
UTF8.GetBytes was called with byte-count instead of character-count as parameter.1 -
Great, is working fine now
Thanks1