Overflow Exception

GAGA
GAGA
edited October 2021 in Photon Server

System.OverflowException: 陣列維度超出支援的範圍。

  於 ExitGames.Client.Photon.Protocol.DeserializeString(MemoryStream din) 於 h:\svncontent\photon-sdk-dotnet\PhotonDotNet\Protocol.cs: 行 1639

  於 ExitGames.Client.Photon.Protocol.Deserialize(MemoryStream din, Byte type) 於 h:\svncontent\photon-sdk-dotnet\PhotonDotNet\Protocol.cs: 行 1401

  於 ExitGames.Client.Photon.Protocol.DeserializeParameterTable(MemoryStream memoryStream) 於 h:\svncontent\photon-sdk-dotnet\PhotonDotNet\Protocol.cs: 行 790

  於 ExitGames.Client.Photon.Protocol.DeserializeOperationResponse(MemoryStream memoryStream) 於 h:\svncontent\photon-sdk-dotnet\PhotonDotNet\Protocol.cs: 行 727

  於 ExitGames.Client.Photon.PeerBase.DeserializeMessageAndCallback(Byte[] inBuff) 於 h:\svncontent\photon-sdk-dotnet\PhotonDotNet\PeerBase.cs: 行 767

  於 ExitGames.Client.Photon.TPeer.DispatchIncomingCommands() 於 h:\svncontent\photon-sdk-dotnet\PhotonDotNet\TPeer.cs: 行 392

  於 ExitGames.Client.Photon.PhotonPeer.DispatchIncomingCommands() 於 h:\svncontent\photon-sdk-dotnet\PhotonDotNet\PhotonPeer.cs: 行 1227

  於 ExitGames.Client.Photon.PhotonPeer.Service() 於 h:\svncontent\photon-sdk-dotnet\PhotonDotNet\PhotonPeer.cs: 行 1140

  於 Photon.StarDust.Client.Connections.ClientConnection.PeerService() 於 C:\Work\Violetace\goldstar-server\src-server\Loadbalancing\Stardust.Client\Connections\ClientConnection.cs: 行 143

  於 Photon.StarDust.Client.ConnectionStates.LoadBalancing.ConnectedToMaster.OnUpdate(ClientConnection client) 於 C:\Work\Violetace\goldstar-server\src-server\Loadbalancing\Stardust.Client\ConnectionStates\LoadBalancing\ConnectedToMaster.cs: 行 170

  於 Photon.StarDust.Client.Connections.ClientConnection.Update() 於 C:\Work\Violetace\goldstar-server\src-server\Loadbalancing\Stardust.Client\Connections\ClientConnection.cs: 行 179

  於 ExitGames.Concurrency.Core.TimerAction.ExecuteOnFiberThread() 於 c:\(Work)\(EG)\exitgames-libs\src\Core\Concurrency\Core\TimerAction.cs: 行 57

  於 ExitGames.Threading.FailSafeBatchExecutor.Execute(Action action) 於 c:\(Work)\(EG)\exitgames-libs\src\Core\Threading\FailSafeBatchExecutor.cs: 行 111


I have an error running the Stardust.Client.

with more then 500 clinets


Photon.StarDust.Client.exe.config

<add key="NumClientsPerGame" value="3" />

<add key="NumGames" value="210" />


how can i fix it ?

Answers

  • hi, @GAGA

    this is something new.

    how did you start it?

    what version of sdk are you using?


    best,

    ilya

  • JohnTube
    JohnTube ✭✭✭✭✭

    Hi @GAGA,

    Thank you for choosing Photon!

    StartDust is no longer part of Photon Server SDK starting from v5.

    I think we don't support it anymore but maybe @chvetsov can help you out if you really need this.

    At least tell us what are you doing with it.

  • GAGA
    GAGA
    edited October 2021

    I use Version photon-server-sdk_v4-0-29-11263.

    I want to Stress and Load Testing more then 500 clients,

    Best more then 5,000 clients.

    How can i do it?

  • Photon-OnPremise-Server-SDK_v4-0-29-11263\src-server\Loadbalancing\Stardust.Client

    change Photon.StarDust.Client.exe.config

    and run Photon.StarDust.Client.exe

    wait more then 500 clients,

    I well get the Error.

  • hi, @GAGA

    unfortunately there is not good way to start many clients. you have to write it your self using client lib, but client lib is not very good in this sense, because it creates one thread per connection.

    are you sending custom types in your test? It looks like this somehow breaks client


    best,

    ilya