Segmentation fault when there is sleep in the while loop

Duplicated with VPI v1.1 runs into segmentation fault - Jetson & Embedded Systems / Jetson Xavier NX - NVIDIA Developer Forums