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

fix: read masks immediately to avoid crash and memory leaks #1303

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

homuler
Copy link
Owner

@homuler homuler commented Jan 12, 2025

Currently, when drawing a segmentation mask for annotation, data is not read immediately, so the AnnotationController manages the lifecycle of the mask. Depending on how the code is written, this can easily lead to crashes.

In this PR, we changed the process to read the segmentation mask immediately, allowing the mask to be disposed of without relying on the AnnotationController.

@homuler homuler self-assigned this Jan 12, 2025
@homuler homuler merged commit c28b6a3 into master Jan 12, 2025
13 checks passed
@homuler homuler deleted the fix/read-segmentation-crash branch January 12, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant