Problem with DispatchIncomingCommands()

Options
We have a room to matchmake players and it's good for sometime, but when the number of players increase, we get this certain error.


ArgumentOutOfRangeException: Argument is out of range.
Parameter name: capacity
System.Collections.Generic.Dictionary`2[TKey,TValue].Init (Int32 capacity, IEqualityComparer`1 hcp) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:265)
System.Collections.Generic.Dictionary`2[TKey,TValue]..ctor (Int32 capacity) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:239)
ExitGames.Client.Photon.Hashtable..ctor (Int32 x)
ExitGames.Client.Photon.Protocol16.DeserializeHashTable (ExitGames.Client.Photon.StreamBuffer din)
ExitGames.Client.Photon.Protocol16.Deserialize (ExitGames.Client.Photon.StreamBuffer din, Byte type)
ExitGames.Client.Photon.Protocol16.DeserializeParameterTable (ExitGames.Client.Photon.StreamBuffer stream)
ExitGames.Client.Photon.Protocol16.DeserializeOperationResponse (ExitGames.Client.Photon.StreamBuffer stream)
ExitGames.Client.Photon.PeerBase.DeserializeMessageAndCallback (System.Byte[] inBuff)
ExitGames.Client.Photon.EnetPeer.DispatchIncomingCommands ()
ExitGames.Client.Photon.PhotonPeer.DispatchIncomingCommands ()
PhotonHandler.Update () (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:158)


Can anyone tell me how to solve this issue? Thanks.

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited May 2019
    Options
    Hi @Sophie,

    Thank you for choosing Photon!

    This is PUN Classic.
    What version is this?
    if not latest could you update?
    of course, migration to PUN2 is the best recommendation.

    Are you connected to Photon Cloud or to your self-hosted Photon Server?

    How often does this occur?

    How can we 100% reproduce this with minimal steps?

    the number of players increase
    How many players (playersCount) in the room at the same time? what is the maximum ActorNumber (player.ID) reached?