Skip to content

RuntimeError: dictionary changed size during iteration #85

@pavtiger

Description

@pavtiger
Exception in thread Thread-1 (game_loop):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pavtiger/Docs/TRON_multiplayer/server.py", line 400, in game_loop
    TheGrid.update()
  File "/home/pavtiger/Docs/TRON_multiplayer/server.py", line 231, in update
    for bike_key in self.AllPlayers.keys():  # Iterate over all players
RuntimeError: dictionary changed size during iteration

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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