cuGraphicsGLRegisterBuffer failed with error(219) gst_eglglessink_cuda_init texture = 1

Hi, I am running

  deepstream-app -c source1_primary_detector.txt

in nvcr.io/nvidia/deepstream:5.0-dp-20.04-triton docker. My card is T4.
The following error occurred. How to fit it?

**PERF: FPS 0 (Avg)
**PERF: 0.00 (0.00)
** INFO: <bus_callback:181>: Pipeline ready

WARNING from primary_gie: Configuration file batch-size reset to: 1
Debug info: gstnvinferserver_impl.cpp(242): validatePluginConfig (): /GstPipeline:pipeline/GstBin:primary_gie_bin/GstNvInferServer:primary_gie
WARNING from primary_gie: Configuration file unique-id reset to: 1
Debug info: gstnvinferserver_impl.cpp(248): validatePluginConfig (): /GstPipeline:pipeline/GstBin:primary_gie_bin/GstNvInferServer:primary_gie
** INFO: <bus_callback:167>: Pipeline running

cuGraphicsGLRegisterBuffer failed with error(219) gst_eglglessink_cuda_init texture = 1
0:00:17.627072763 176 0x7f07881cbb60 WARN nvinferserver gstnvinferserver.cpp:506:gst_nvinfer_server_push_buffer:<primary_gie> error: Internal data stream error.
0:00:17.627123950 176 0x7f07881cbb60 WARN nvinferserver gstnvinferserver.cpp:506:gst_nvinfer_server_push_buffer:<primary_gie> error: streaming stopped, reason not-negotiated (-4)
ERROR from primary_gie: Internal data stream error.
Debug info: gstnvinferserver.cpp(506): gst_nvinfer_server_push_buffer (): /GstPipeline:pipeline/GstBin:primary_gie_bin/GstNvInferServer:primary_gie:
streaming stopped, reason not-negotiated (-4)
Quitting
ERROR from sink_bin_queue: Internal data stream error.
Debug info: gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstQueue:sink_bin_queue:
streaming stopped, reason not-negotiated (-4)
ERROR from qtdemux0: Internal data stream error.
Debug info: qtdemux.c(6073): gst_qtdemux_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:
streaming stopped, reason not-negotiated (-4)
I0503 01:32:50.002590 176 model_repository_manager.cc:703] unloading: ssd_inception_v2_coco_2018_01_28:1
I0503 01:32:50.074989 176 model_repository_manager.cc:808] successfully unloaded ‘ssd_inception_v2_coco_2018_01_28’ version 1
I0503 01:32:50.075666 176 server.cc:180] Waiting for in-flight inferences to complete.
I0503 01:32:50.075697 176 server.cc:195] Timeout 30: Found 0 live models and 0 in-flight requests
App run failed

HI
from your error,
cuGraphicsGLRegisterBuffer failed with error(999) gst_eglglessink_cuda_init texture = 1
I guess you do not install nvidia opengl while install display driver, am i right? if yes, please reinstall driver with nvidia opengl, and if your card is Tesla series, noted it’s compute card, not for display, you may follow this link for setting up virtual display, https://elinux.org/Deepstream/FAQ , another option, you may change sink type to Fakesink of File

Thanks. Using Fakesink works.

@amycao What do you mean reinstall driver with nvidia opengl? I’ve been using GTX1660 with the driver installed correctly, this wasn’t a problem with DS4.0 but now with 5.0 I’m getting the same error as op.

More details:

  • gst-launch-1.0 uridecodebin uri=$URI ! nvvideoconvert ! nveglglessink - gives error(219)
  • gst-launch-1.0 uridecodebin uri=$URI ! nvvideoconvert ! glimagesink - works fine (with additional ubuntu package gstreamer1.0-gl).

Please create a new topic, seems not a much similar issue,
we will get you there, thanks.