Deepstream-test1 running forever

I was able to run all of the tests deepstream-test1 to deepstream-test3 after installation and configuring. The video output looked correct and as described, however after I rebooted and tried running it again I am getting an error as below with no video output:

$ GST_DEBUG=2 ./deepstream-test1-app …/…/…/…/samples/streams/sample_720p.h264
Output:
Now playing: …/…/…/…/samples/streams/sample_720p.h264
0:00:00.051414928 23349 0x1e234a0 ERROR nveglglessink ext/eglgles/gsteglglessink.c:826:gst_eglglessink_start: Couldn’t start
Running…

I added the below to my .bashrc for reference:

export LD_LIBRARY_PATH=/home/max/TensorRT-5.0.2.6/lib:/usr/local/cuda-10.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1${PATH:+:${PATH}}

Any ideas regarding a fix?

If you don’t have or don’t need display, you can disable eglsink.

[Sink0]
enable=0
type=2

When I replaced those lines it didn’t run without the display, however when I rebooted the system a few minutes ago the applications started working as normal with video display enabled.

The only difference I can find is that now torch.cuda.is_available() is returning True when run in a Python3 shell, meaning that the GPU was probably unavailable for some reason before. Not sure if that’s related.