Erorr when linking elements in Pipeline (Deepstream-5.1)

did you enable display with xhost and DISPLAY as below?