Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash #47

Open
Nostrademous opened this issue Apr 2, 2019 · 1 comment
Open

Crash #47

Nostrademous opened this issue Apr 2, 2019 · 1 comment

Comments

@Nostrademous
Copy link
Collaborator

Nostrademous commented Apr 2, 2019

Ran latest code on local machine over 3-4 days and after 5994 games it spat out an error:

Traceback (most recent call last):
  File "agent.py", line 985, in main
    await game.play(config=config, game_id=game_id)
  File "agent.py", line 898, in play
    player.compute_reward(prev_obs=prev_obs[team_id], obs=obs)
  File "agent.py", line 797, in compute_reward
    reward = get_reward(prev_obs=prev_obs, obs=obs, player_id=self.player_id)
  File "agent.py", line 123, in get_reward
    unit = get_unit(obs, player_id=player_id)
  File "agent.py", line 247, in get_unit
    raise ValueError("unit {} not found in state:\n{}".format(player_id, state))
ValueError: unit 5 not found in state:

Followed by the dump of the protobuf

@Nostrademous
Copy link
Collaborator Author

The last entry in the protobuf was an incomplete unit stub:

units {
  handle: 284
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant