SoPra-Team-17 / Client

Client für das Softwaregrundpraktikum im WS1920 und SS2020.
GNU General Public License v3.0
2 stars 0 forks source link

Crash bei paste ins IP Feld #138

Closed ottojo closed 4 years ago

ottojo commented 4 years ago

Wenn viel text (aus versehen) gepasted wird, crasht es :smile:

2020-06-08 21:29:49,378 [MainThread  ] [INFO    ] [LobbyView.py         - __init__             - 28  ] Lobby init done
2020-06-08 21:29:49,378 [MainThread  ] [INFO    ] [Controller.py        - init_components      - 76  ] Controller init done
/usr/local/lib/python3.6/dist-packages/pygame_gui/core/ui_font_dictionary.py:155: UserWarning: Finding font with id: fira_code_bold_14 that is not already loaded.
Preload this font with {'name': 'fira_code', 'point_size': 14, 'style': 'bold'}
  warnings.warn(warning_string, UserWarning)
Traceback (most recent call last):
  File "run.py", line 46, in <module>
    main()
  File "run.py", line 42, in main
    controller.loop()
  File "/client/controller/Controller.py", line 95, in loop
    view.draw()
  File "/client/view/MainMenu/MainMenuView.py", line 39, in draw
    screen.draw()
  File "/client/view/MainMenu/SettingsScreen.py", line 70, in draw
    self.manager.update(1 / self.settings.frame_rate)
  File "/usr/local/lib/python3.6/dist-packages/pygame_gui/ui_manager.py", line 225, in update
    self.ui_group.update(time_delta)
  File "/usr/local/lib/python3.6/dist-packages/pygame/sprite.py", line 463, in update
    s.update(*args)
  File "/usr/local/lib/python3.6/dist-packages/pygame_gui/elements/ui_text_entry_line.py", line 414, in update
    self.redraw()
  File "/usr/local/lib/python3.6/dist-packages/pygame_gui/elements/ui_text_entry_line.py", line 223, in redraw
    self._redraw_unselected_text()
  File "/usr/local/lib/python3.6/dist-packages/pygame_gui/elements/ui_text_entry_line.py", line 264, in _redraw_unselected_text
    self.text_surface = self.font.render(self.text, True, self.text_colour)
pygame.error: Width or height is too large
make: *** [Makefile:8: run] Error 1