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

it may happen that annotations are loaded twice #71

Open
r03ert0 opened this issue Aug 27, 2022 · 1 comment
Open

it may happen that annotations are loaded twice #71

r03ert0 opened this issue Aug 27, 2022 · 1 comment

Comments

@r03ert0
Copy link
Member

r03ert0 commented Aug 27, 2022

If you move quickly through slices back and forth, it may happen that slice annotations will be loaded twice. There's code to prevent annotations to land in the wrong slice, and code to prevent annotations to be loaded in a busy slice. However, it may happen that while a slice is still empty, by going back and forth the server gets queried twice, and then the annotations are displayed twice.
The solution would be to check the annotation's uid, and check that there's no annotations with the same uid already present.

@r03ert0
Copy link
Member Author

r03ert0 commented Aug 27, 2022

an easy way of producing the bug is to go to a dataset with a single slice, load it, and push the left and right arrows as many times as you can before the first annotation loads. You'll end up with several overlapping annotations.

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

No branches or pull requests

1 participant