labelme icon indicating copy to clipboard operation
labelme copied to clipboard

LabelMe crashes upon usage of up and down arrow keys when nothing is selected.

Open JeremyatGitHub opened this issue 2 months ago • 0 comments

Provide environment information

Python 3.9.13 , labelme 5.4.1

What OS are you using?

macOS 12.7.5

Describe the Bug

Without the selection of any files or text boxes in label , pressing on the down or up arrow keys will cause an instant crash.

Terminal will spit out : File "/Users/Name/opt/anaconda3/lib/python3.9/site-packages/labelme/widgets/canvas.py", line 973, in keyReleaseEvent index = self.shapes.index(self.selectedShapes[0]) ValueError: <labelme.shape.Shape object at 0x2abbc2820> is not in list zsh: abort labelme

Expected Behavior

Expected nothing to happen. It should not crash

To Reproduce

Open a set of files into label me and as long no text boxes are active , usage of down or up key will cause label me to instantly crash

JeremyatGitHub avatar Jun 14 '24 14:06 JeremyatGitHub