InfiniteRasa/Rasa.NET

Game server crash on first map load

Opened this issue · 1 comments

The game server crashes on the first attempt to load into the game after character selection.

Steps to Reproduce:

  1. Start the auth and game servers
  2. Launch the game client and login in and select a character.
  3. Double click the character to load into the game

Actual Results:
The game server crashes and the client disconnects. The exception thrown is here: https://github.com/InfiniteRasa/Rasa.NET/blob/master/src/Rasa.Utils/Cryptography/GameCryptManager.cs#L66

Expected Results:
Game server does not crash.

Workaround:
Restart the game server and leave the game client running

Additional Info:
It was suspected that there is a packet being sent on first load related to telemetry.

Debugging this again and it looks like this is hit:

https://github.com/InfiniteRasa/Rasa.NET/blob/dev-creatures/src/Rasa.Game/Packets/Protocol/ProtocolPacket.cs#L46

The Size is 49 and br.BaseStream.Length is 36.