Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
Jetson AGX Orin 64G
• DeepStream Version
7.0
• JetPack Version (valid for Jetson only)
R36 (release), REVISION: 3.0, GCID: 36923193, BOARD: generic, EABI: aarch64, DATE: Fri Jul 19 23:24:25 UTC 2024
• TensorRT Version
6.0+b106 / 8.6.2.3-1+cuda12.2
• NVIDIA GPU Driver Version (valid for GPU only)
N/A
• Issue Type( questions, new requirements, bugs)
Question
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
Issue: when running GST_DEBUG=3 deepstream-app -c setup2.txt
we’re getting EGL display error:
nvbufsurftransform: Could not get EGL display connection
...
nvbufsurface: Could not get EGL display connection
nvbufsurface: Can't get EGL display
0:00:06.118061411 1453 0xaaaac4f57470 ERROR nvinferallocator gstnvinfer_allocator.cpp:107:gst_nvinfer_allocator_alloc: Error: Could not map EglImage from NvBufSurface for nvinfer
0:00:06.118086019 1453 0xaaaac4f57470 WARN GST_BUFFER gstbuffer.c:958:gst_buffer_new_allocate: failed to allocate 88 bytes
0:00:06.118104035 1453 0xaaaac4f57470 WARN bufferpool gstbufferpool.c:318:do_alloc_buffer:<bufferpool0> alloc function failed
0:00:06.118114147 1453 0xaaaac4f57470 WARN bufferpool gstbufferpool.c:351:default_start:<bufferpool0> failed to allocate buffer
0:00:06.118121955 1453 0xaaaac4f57470 ERROR bufferpool gstbufferpool.c:572:gst_buffer_pool_set_active:<bufferpool0> start failed
0:00:06.118133699 1453 0xaaaac4f57470 WARN nvinfer gstnvinfer.cpp:1008:gst_nvinfer_start:<primary_gie> error: Failed to set buffer pool to active
0:00:06.143608591 1453 0xaaaac4f57470 WARN GST_PADS gstpad.c:1141:gst_pad_set_active:<primary_gie:sink> Failed to activate pad
** ERROR: <main:706>: Failed to set pipeline to PAUSED
Quitting
ERROR from primary_gie: Failed to set buffer pool to active
Debug info: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(1008): gst_nvinfer_start (): /GstPipeline:pipeline/GstBin:primary_gie_bin/GstNvInfer:primary_gie
App run failed
But:
- This’s going to run in a docker w/o display.
- DISPLAY is unset - confirmed:
root@b06176e75a5a:/test# env | grep DISPLAY
root@b06176e75a5a:/test#
- the config file (setup2.txt) is minimal and does not even involve OSD/EGLSink:
[application]
enable-perf-measurement=0
[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP
type=3
uri=file://./test.mp4
num-sources=1
gpu-id=0
cudadec-memtype=0
[sink0]
enable=1
gpu-id=0
type=3
#1=mp4 2=mkv
container=1
#1=h264 2=h265
codec=1
#encoder type 0=Hardware 1=Software
enc-type=0
sync=0
#iframeinterval=10
bitrate=2000000
#H264 Profile - 0=Baseline 2=Main 4=High
#H265 Profile - 0=Main 1=Main10
# set profile only for hw encoder, sw encoder selects profile based on sw-preset
profile=0
output-file=out.mp4
source-id=0
[streammux]
gpu-id=0
##Boolean property to inform muxer that sources are live
live-source=0
batch-size=1
##time out in usec, to wait after the first buffer is available
##to push the batch even if the complete batch is not formed
batched-push-timeout=40000
## Set muxer output width and height
width=1920
height=1080
##Enable to maintain aspect ratio wrt source, and allow black borders, works
##along with width, height properties
enable-padding=0
nvbuf-memory-type=0
## If set to TRUE, system timestamp will be attached as ntp timestamp
## If set to FALSE, ntp timestamp from rtspsrc, if available, will be attached
# attach-sys-ts-as-ntp=1
# config-file property is mandatory for any gie section.
# Other properties are optional and if set will override the properties set in
# the infer config file.
[primary-gie]
enable=1
gpu-id=0
model-engine-file=model_b1_gpu0_fp32.engine
#Required to display the PGIE labels, should be added even when using config-file
#property
batch-size=1
#Required by the app for OSD, not a plugin property
bbox-border-color0=1;0;0;1
bbox-border-color1=0;1;1;1
bbox-border-color2=0;0;1;1
bbox-border-color3=0;1;0;1
interval=0
#Required by the app for SGIE, when used along with config-file property
gie-unique-id=1
nvbuf-memory-type=0
config-file=bin2.txt
[tests]
file-loop=0
Any help?