Skip to content

MatchError. Game freezes after someone died #1175

@Nico-Sanchez

Description

@Nico-Sanchez

It happened during a play time. The error was:

** (MatchError) no match of right hand side value: nil
    (arena 0.21.1) lib/arena/game_updater.ex:1910: Arena.GameUpdater.put_player_position/2
    (arena 0.21.1) lib/arena/game_updater.ex:592: Arena.GameUpdater.handle_info/2
    (stdlib 5.2.3) gen_server.erl:1095: :gen_server.try_handle_info/3
    (stdlib 5.2.3) gen_server.erl:1183: :gen_server.handle_msg/6
    (stdlib 5.2.3) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
Last message: {:to_killfeed, 9999, 1}

and lib/arena/game_updater.ex:1910 currently is:

{client_id, _player_id} =
      Enum.find(game_state.client_to_player_map, fn {_, map_player_id} -> map_player_id == player_id end)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions