Where did I experience the bug
I created multiple Annotations in a loop.
When I tried inspecting them with the OverlayManagerPlugin it showed the properties for only the first Annotation no matter the selection.
What is the root cause of the bug
When Annotations are added to an AnnotationRenderer they are registered as a microservice and assigned a GUID in
mitk::Annotation::RegisterAsMicroservice (in Annotation.cpp starting at line 328)
The GUID is generated using a mitk::UIDGenerator("org.mitk.services.Annotation.id_", 16)
As this function is called in fast succession (in the same second) the time portion for the GUID is the same.
The issue is that the following random part of the GUID also happens to be the same.
When I add annotations in a loop and log the generated GUIDs I get
When I sleep for two seconds inbetween each annotation this is the resulting log output