AmalgamEngine icon indicating copy to clipboard operation
AmalgamEngine copied to clipboard

Crash when attempting to reconnect after timing out

Open Net5F opened this issue 1 year ago • 0 comments

Steps to reproduce

Not sure if 100%, but it occurred after the following steps:

  1. Press "connect" on client
  2. Be disconnected due to timing out (turn off internet and turn it back on, for example)
  3. Try to connect again
  4. Observe crash

Log

        Tick 0: Detected a request for multiple Sim update calls in the same frame. Update was delayed by: 0.08108s.
        Tick 0: Detected a request for multiple Sim update calls in the same frame. Update was delayed by: 0.04775s.
        Tick 0: Sim update missed its ideal call time. Update was delayed by 0.01442s.
        Tick 0: Detected a request for multiple UserInterface update calls in the same frame. Update was delayed by: 2.38201s.
        Tick 0: Detected a request for multiple Network update calls in the same frame. Update was delayed by: 2.38202s.
        Tick 0: Detected a request for multiple Renderer update calls in the same frame. Update was delayed by: 2.39762s.
        Tick 0: Received connection response. ID: 1048577, tick: 6568890, pos: (1060.0000, 1788.0000)
        Tick 0: Setting map size to: (4, 4)ch.
        Error at file: ..\Libraries\AmalgamEngine\Source\ClientLib\Simulation\Private\NpcMovementSystem.cpp, line: 233, during tick: 6568895
        Received update for invalid entity: 4194306. Message tick: 6568770

Not clear in log but the ID 4194306 was not the original ID given to the peer on first connection. Not sure if it was the ID given on attempted reconnection.

Net5F avatar Mar 06 '23 04:03 Net5F