labelImg icon indicating copy to clipboard operation
labelImg copied to clipboard

Pressing delete without selecting a bounding box crashes Labelimg

Open TheNoodleNinja opened this issue 2 years ago • 1 comments

Pressing delete without having selected a bounding box results in LabelImg crashing instead of nothing happening.

Traceback (most recent call last):
  File "/home/<user>/miniconda3/envs/labelimg/lib/python3.8/site-packages/labelImg/labelImg.py", line 774, in shape_selection_changed
    self.shapes_to_items[shape].setSelected(True)
KeyError: <libs.shape.Shape object at 0x7f9134146bb0>
Aborted (core dumped)
  • OS:Ubuntu 20.04.4 LTS
  • PyQt version: 5.15.6

TheNoodleNinja avatar Apr 19 '22 10:04 TheNoodleNinja

This is a potential duplicate of #858

nine avatar Apr 22 '22 22:04 nine