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 right-clicking the left pane after removing all videos/objects from the list. #52

Copy link
Copy link
@miguelgaspar24

Description

@miguelgaspar24
Issue body actions

Bug description
PythonVideoAnnotator crashes when right-clicking the left pane after removing all videos/objects from the list.

To Reproduce

  1. Load a project or open a video.

bug1 1_added_video_annot

  1. Remove all added videos/project objects.

bug1 2_removing_added_video_annot

  1. Right-click the now empty pane.

bug1 3_video_removed_empty_canvas_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_tree.py", line 262, in about_to_show_contextmenu_event
    itemSelected = self.selectedItems()[0]
IndexError: list index out of range

Expected behavior
The expectation would be for the program to not crash, or that right-clicking would open a window with the option to load videos/opening a projecting, similarly to clicking the respective buttons.

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.