label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

Region hiding freezes screen when mouse is moving over the region

Open LouisJULIEN opened this issue 1 year ago • 7 comments

Describe the bug It happens when annotating an image, for example with rectangles. When a rectangle is hidden while the mouse is moving over it, the screen freezes for a few seconds. It can only happen when using the shortcut (to have the mouse moving over the region while hiding it)

To Reproduce Steps to reproduce the behavior:

  1. Open a task with an image to label
  2. add a region, for example a rectangle. Select that region
  3. use the shortcut alt+h to make the region appear and disappear. Don't move the mouse. It should work as intended
  4. keep doing 3 while moving the mouse over the region. The screen will freeze and hiding the rectangle will take a few seconds. The freeze stops when the rectangle is finally hidden. The freeze doesn't happen when the mouse is not moving or when the mouse is moving anywhere other than over the selected region.

Expected behavior Screen should not freeze when moving over a region that is being hidden.

Screenshots In this video, I'm hitting alt+h non stop, at constant pace, from 0:13 to 0:28 https://github.com/user-attachments/assets/97cef024-b6cb-43f1-a01b-045a418cee07

Environment (please complete the following information):

  • OS: observed on Mac and Ubuntu
  • Label Studio Version: 1.12.X and develop branch

Additional context This happens to me all the time when I'm adding missing element(s) to a pre-annotated image.

LouisJULIEN avatar Aug 15 '24 15:08 LouisJULIEN

Hi @LouisJULIEN - thanks for this report, running it by some frontend folks on the team :+1:

jombooth avatar Aug 16 '24 18:08 jombooth

/jira create

Workflow run Jira issue TRIAG-793 is created

jombooth avatar Aug 16 '24 18:08 jombooth

I just realised that this also happens on region deletion. The procedure to reproduce the bug is the same, only that the region should be deleted instead of hidden.

LouisJULIEN avatar Aug 19 '24 09:08 LouisJULIEN

Hello, do you have any update on that issue? I encounter it on a daily basis, I don't think I'm the only one.

LouisJULIEN avatar Sep 02 '24 13:09 LouisJULIEN

up @jombooth

LouisJULIEN avatar Sep 06 '24 10:09 LouisJULIEN

Hello @jombooth . Were you able to reproduce? I still have that issue, it's super annoying

LouisJULIEN avatar Sep 25 '24 10:09 LouisJULIEN

up @jombooth

LouisJULIEN avatar Oct 01 '24 12:10 LouisJULIEN