labelme
labelme copied to clipboard
LabelMe crashes upon usage of up and down arrow keys when nothing is selected.
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