Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JeremyatGitHub opened this issue Jun 14, 2024 · 0 comments
Labels
bug issue

Comments

@JeremyatGitHub
Copy link

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 JeremyatGitHub added the bug issue label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue
Projects
None yet
Development

No branches or pull requests

1 participant