Unable to draw circle using NvDsDisplayMeta beyond a range

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) dGPU
• DeepStream Version 6.0
• TensorRT Version 8.0.1
• NVIDIA GPU Driver Version (valid for GPU only) CUDA 11.3
• Issue Type( questions, new requirements, bugs) question or bug
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
I am trying to draw some circles on nvosd by modifying NvDsDisplayMeta.
When I try to draw more than 15 circles I got index out of range error.
The same happens while drawing lines or rects also

This is the code I used to draw circles
image

Error when drawing lines or circle using pyds.NvDsDisplayMeta - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums