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

Brush label mouse over duplicate region in the canvas

Open toddmccolloughellumen opened this issue 8 months ago • 12 comments

Describe the bug We create a brush label. When we mouse over the region for the brush label we see a duplicate region in the canvas. When we mouse away from the region for the brush label we see only the real region and the duplicate region goes away.

To Reproduce Steps to reproduce the behavior:

  1. Set up a project with brush labels.
  2. Label a region.
  3. Mouse over the region in the Regions tab in the side-bar to see the duplicate mask.
  4. Mouse away from the region in the Regions tab in the side-bar to remove the duplicate mask and only see the real mask.

Expected behavior Regardless of mouse over in the Regions tab there should be no duplication of brush labels.

Screenshots

How it should look without duplication Image

How it looks on mouse over with duplication

Image

https://github.com/user-attachments/assets/a3d3c248-5b2a-428f-b0f3-cb5af61d7d39

Environment (please complete the following information): Seen on multiple environments

OS: hosted on Linux Ubuntu 22.04.4 LTS (GNU/Linux 6.8.0-1029-aws x86_64) VM, viewing on Windows/Edge and Mac/Safari. Label Studio Version 1.17

OS: hosted on Windows Server 2025 Datacenter 10.0.26100 VM, viewing on Windows/Edge, Windows/Chrome, and Windows/Firefox and Mac/Safari. Label Studio Version 1.17/1.18/1.19

toddmccolloughellumen avatar May 29 '25 18:05 toddmccolloughellumen

Hello,

Do you mind upgrading LS to 1.19 and see if you can see this behaviour?

Thank you, Abu

Comment by Abubakar Saad Workflow Run

heidi-humansignal avatar Jun 10 '25 19:06 heidi-humansignal

Hi I upgraded LS to 1.19 and still see the issue as reported above, thanks

toddmccolloughellumen avatar Jun 10 '25 19:06 toddmccolloughellumen

Hello,

Do you have any ml-backend connected? Is there interactive view all enabled? I'm having hard time reproducing this issue.

Thank you, Abu

Comment by Abubakar Saad Workflow Run

heidi-humansignal avatar Jun 25 '25 14:06 heidi-humansignal

Hi

This was reproduced both with and without an ml-backend connected so it does occur without any ml-backend and interactive view. Primarily do use an ml-backend and an interactive view though for the use case.

This issue does not happen on every single system and computer tested. It happens on some but not on others. It has been since on viewing on Windows/Edge and Mac/Safari but other systems that have Windows/Edge or Windows/Chrome it is not reproducible on.

toddmccolloughellumen avatar Jun 26 '25 19:06 toddmccolloughellumen

Hello,

Ahh, yes, I've been using chrome and tried it on Firefox as well and its doesn't happen. We do recommend chrome as browser. Safari and Edge are not really supported as of yet.

Thank you, Abu

Comment by Abubakar Saad Workflow Run

heidi-humansignal avatar Jul 10 '25 05:07 heidi-humansignal

Hi so it was not originally reported in the issue above as being a problem in Windows/Chrome and Windows/Firefox but the issue does happen there as well.

Again this issue does not happen on every single system and computer tested. But I do actually have at least one Windows system where the issue DOES happens in Windows/Chrome, Windows/Edge, and Windows/Firefox. I have updated the original issue above to reflect this.

toddmccolloughellumen avatar Jul 10 '25 22:07 toddmccolloughellumen

Hello,

The systems is the VM you are testing it on? Ubuntu that has windows VM for one of the system and the other is window server and VM is on it?

Thank you, Abu

Comment by Abubakar Saad Workflow Run

heidi-humansignal avatar Jul 17 '25 00:07 heidi-humansignal

Hi yes, the servers hosting label studio in this case are VMs in AWS EC2.

toddmccolloughellumen avatar Jul 17 '25 14:07 toddmccolloughellumen

Hello,

Can you upgrade to version 1.20 and see if its happening. There has been some bug fixes and that should be fixed now.

Thank you, Abu

Comment by Abubakar Saad Workflow Run

heidi-humansignal avatar Aug 27 '25 15:08 heidi-humansignal

Hello,

Can you upgrade to version 1.20 and see if its happening. There has been some bug fixes and that should be fixed now.

Thank you, Abu

Comment by Abubakar Saad Workflow Run

Hi

Thanks for the update. Upgraded to version 1.20. Unfortunately continue to see the same issue with duplicate region in the canvas as reported in this thread so does not appear to have fixed it.

toddmccolloughellumen avatar Aug 27 '25 16:08 toddmccolloughellumen

Hello,

Do you mind sharing labeling interface? We are having hard time reproducing this.

Thank you, Abu

Comment by Abubakar Saad Workflow Run

heidi-humansignal avatar Sep 16 '25 14:09 heidi-humansignal

It happens to me also (BrushLabels) - on Edge/Safari (Mac), but not on Firefox (Ubuntu).

szuhow avatar Dec 01 '25 19:12 szuhow