Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PythonVideoAnnotator crashes when left-clicking on any listed graph whose trace has already been removed from the timeline. #54

Copy link
Copy link
@miguelgaspar24

Description

@miguelgaspar24
Issue body actions

Bug description
PythonVideoAnnotator crashes when left-clicking on any listed graph whose trace has already been removed from the timeline.

To Reproduce

  1. Add a value to the timeline from the current opened project.

bug3 1_add_value_to_timeline_annot

  1. Remove everything from the timeline.

bug3 3_removing_everything_annot

  1. Right-click the the timeline and open the "Graphs" window.

bug3 4_open_graphs_annot

  1. Left-click on the removed value's listed name.

bug3 5_graphs_annot

Output error trace:

Traceback (most recent call last):
  File "c:\users\miguel gaspar\desktop\my_virtual_environments\video_annotator\lib\site-packages\pyforms_gui\controls\control_list.py", line 422, in tableWidgetItemSelectionChanged
    self.item_selection_changed_event()
  File "c:\users\miguel gaspar\desktop\my_virtual_environments\video_annotator\lib\site-packages\pyforms_gui\controls\control_event_timeline\graphs\win_graph_properties.py", line 137, in __graphs_list_selection_changed
    graph = self.selected_graph
  File "c:\users\miguel gaspar\desktop\my_virtual_environments\video_annotator\lib\site-packages\pyforms_gui\controls\control_event_timeline\graphs\win_graph_properties.py", line 94, in selected_graph
    return self._timeline._graphs[index] if (index is not None) else None
IndexError: list index out of range

Expected behavior
The expectation would be for the program to remove the value from the "Graphs" listing when the "Remove everything" operation is performed so as to avoid crashing.

Desktop and Versioning Details

OS: Microsoft Windows 10 Pro x64

Virtual Environment Python: 3.6.2

Python Video Annotator and Modules:

Python-video-annotator                                 3.306
Python-video-annotator-models                          0.8.82
Python-video-annotator-models-gui                      0.7.63
Python-video-annotator-module-background-finder        0.5.21
Python-video-annotator-module-contours-images          0.5.28
Python-video-annotator-module-create-paths             0.5.15
Python-video-annotator-module-deeplab                  0.902.21
Python-video-annotator-module-distances                0.5.18
Python-video-annotator-module-eventstats               0.5.15
Python-video-annotator-module-find-orientation         0.5.18
Python-video-annotator-module-import-export            0.5.23
Python-video-annotator-module-motion-counter           0.5.26
Python-video-annotator-module-path-editor              0.5.28
Python-video-annotator-module-path-map                 0.6.16
Python-video-annotator-module-regions-filter           0.5.18
Python-video-annotator-module-smooth-paths             0.5.19
Python-video-annotator-module-timeline                 0.6.26
Python-video-annotator-module-tracking                 0.6.38
Python-video-annotator-module-virtual-object-generator 0.6.26
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.