Skip to content

Region hiding freezes screen when mouse is moving over the region #6213

Open
@LouisJULIEN

Description

@LouisJULIEN

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    community:bugTriaged by the community team + confirmed to be bug.community:reviewedIssue has been reviewed by the Label Studio Community Team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions