HumanSignal / HumanSignal/label-studio

Bug: When using the Brush tool, "incomplete brush" error occurs

Open
#7,385 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**
When using the Brush tool in Label Studio v1.17.0, an error occurs during or after drawing. Sometimes the brush region becomes unusable, and a browser console error is thrown related to a BrushRegionModel being accessed after removal from the state tree.

**To Reproduce**
Steps to reproduce the behavior:
1. Open a labeling task with the Brush tool.
2. Press the left mouse button to begin drawing a brush region.
3. Release the left mouse button, browser console shows MobX-State-Tree errors about accessing a disposed BrushRegionModel.
4. Press the left mouse button outside the region to drawing new brush region, The UI throws an "incomplete brush" error until release the left mouse button.

**Expected behavior**
Release the left mouse button to end the current brush region, press the left mouse button again to start a new brush region.

**Screenshots**

![Image](https://github.com/user-attachments/assets/ef518b63-2d03-4b32-8fda-68b6d381f7cc)

**Environment (please complete the following information):**
- OS: MacOS 15.4
- Browser: Chrome
- Label Studio Version v1.17.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.