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

Error on rendering tablecontentdelegate #7107

Closed
xoriole opened this issue Oct 25, 2022 · 0 comments · Fixed by #7108
Closed

Error on rendering tablecontentdelegate #7107

xoriole opened this issue Oct 25, 2022 · 0 comments · Fixed by #7108
Assignees
Milestone

Comments

@xoriole
Copy link
Contributor

xoriole commented Oct 25, 2022

Loading a channel view sometimes crashes with the following stacktrace. Also happens on the search results page.

[PID:1429702] 2022-10-25 17:07:38,414 - ERROR <error_handler:32> ErrorHandler.gui_error(): Traceback (most recent call last):
  File "/home/<user>/tudelft/dev/tribler/src/tribler/gui/widgets/tablecontentdelegate.py", line 272, in paint
    if not self.paint_exact(painter, option, index):
  File "/home/<user>/tudelft/dev/tribler/src/tribler/gui/widgets/tablecontentdelegate.py", line 280, in paint_exact
    return drawing_action(painter, option, index, data_item)
  File "/home/<user>/tudelft/dev/tribler/src/tribler/gui/widgets/tablecontentdelegate.py", line 592, in draw_health_column
    self.health_status_widget.paint(painter, option.rect, index, hover=index == self.hover_index)
  File "/home/<user>/tudelft/dev/tribler/src/tribler/gui/widgets/tablecontentdelegate.py", line 857, in paint
    self.paint_elements(painter, rect, panel_y, health, data_item, hover)
  File "/home/<user>/tudelft/dev/tribler/src/tribler/gui/widgets/tablecontentdelegate.py", line 873, in paint_elements
    indicator_rect = QRect(x, y, w, h)
TypeError: arguments did not match any overloaded call:
  QRect(): too many arguments
  QRect(int, int, int, int): argument 2 has unexpected type 'float'
  QRect(QPoint, QPoint): argument 1 has unexpected type 'int'
  QRect(QPoint, QSize): argument 1 has unexpected type 'int'
  QRect(QRect): argument 1 has unexpected type 'int'

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Tribler's version: current main

Looking at the exception, the relevant line seems:

   QRect(int, int, int, int): argument 2 has unexpected type 'float'

y value appears to be float.

@xoriole xoriole mentioned this issue Oct 25, 2022
@drew2a drew2a added this to the 7.13.0 milestone Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants