Skip to content

Gantt crashes #21

@deuxbot

Description

@deuxbot

Whenever I try to open the Gantt chart the program crashes.

Specs:
Ubuntu 22.04 LTS
Python 3.10.4
SimSo 0.8.5
PyQtWebEngine 5.15.5

Trace:

Traceback (most recent call last):
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/SimulatorWindow.py", line 210, in showGantt
self.main_tab.currentWidget().showGantt()
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/SimulationTab.py", line 106, in showGantt
self._gantt = create_gantt_window(self._model)
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 427, in create_gantt_window
return Gantt(sim, (start_date, end_date, selected_items))
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 403, in init
canvas = GanttCanvas(sim, conf)
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 73, in init
self.plot()
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 81, in plot
self._update()
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 372, in _update
self.plot_gantt(
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 234, in plot_gantt
self.plot_graph(qp, processor.name, start_date, end_date, step,
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 114, in plot_graph
qp.drawText(x + convX(i - start_date) - fw // 2,
TypeError: arguments did not match any overloaded call:
drawText(self, Union[QPointF, QPoint], str): argument 1 has unexpected type 'float'
drawText(self, QRectF, int, str): argument 1 has unexpected type 'float'
drawText(self, QRect, int, str): argument 1 has unexpected type 'float'
drawText(self, QRectF, str, option: QTextOption = QTextOption()): argument 1 has unexpected type 'float'
drawText(self, QPoint, str): argument 1 has unexpected type 'float'
drawText(self, int, int, int, int, int, str): argument 1 has unexpected type 'float'
drawText(self, int, int, str): argument 1 has unexpected type 'float'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions