nvbuf_utils: Could not get EGL display connection

hello,

so after setting the display to 0 using

export DISPLAY=:0

and using the following command

gst-launch-1.0 videotestsrc ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! nvivafilter cuda-process=true customer-lib-name="libnvsample_cudaprocess.so" ! "video/x-raw(memory:NVMM), format=(string)RGBA" ! nvoverlaysink

the output of the terminal is

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

and the test display showed up like this
https://images.app.goo.gl/RfJ3L6x3K9oXFAXe6

but when I try

export DISPLAY=:1

then do the same command this is the output

nvbuf_utils: Could not get EGL display connection
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...

it just freeze like this and nothing show up