Currently using Gstreamer’s videotestsrc can be tested and shown to be normal, but currently DeepStream is aborted.
root@nvidia-desktop:/opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app# deepstream-app -c source4_1080p_dec_preprocess_infer-resnet_preprocess_sgie_tiled_display_int8.txt
debug3: receive packet: type 90
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 50696
debug2: fd 7 setting TCP_NODELAY
debug2: fd 7 setting O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug3: send packet: type 91
debug3: receive packet: type 96
debug2: channel 1: rcvd eof
debug2: channel 1: output open -> drain
debug2: channel 1: obuf empty
debug2: chan_shutdown_write: channel 1: (i0 o1 sock 7 wfd 7 efd -1 [closed])
debug2: channel 1: output drain -> closed
debug1: channel 1: FORCE input drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug3: send packet: type 96
debug2: channel 1: input drain -> closed
debug2: channel 1: send close
debug3: send packet: type 97
debug3: receive packet: type 90
debug1: client_input_channel_open: ctype x11 rchan 4 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 50698
debug2: fd 8 setting TCP_NODELAY
debug2: fd 8 setting O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 2: new [x11]
debug1: confirm x11
debug3: send packet: type 91
debug3: channel 1: will not send data after close
debug3: receive packet: type 97
debug2: channel 1: rcvd close
debug3: channel 1: will not send data after close
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: x11, nchannels 3
debug3: channel 1: status: The following connections are open:
#0 client-session (t4 r0 i0/0 o0/0 e[write]/0 fd 4/5/6 sock -1 cc -1)
#1 x11 (t4 r3 i3/0 o3/0 e[closed]/0 fd 7/7/-1 sock 7 cc -1)
#2 x11 (t7 r4 i0/0 o0/0 e[closed]/0 fd 8/8/-1 sock 8 cc -1)
debug3: receive packet: type 96
debug2: channel 2: rcvd eof
debug2: channel 2: output open -> drain
debug2: channel 2: obuf empty
debug2: chan_shutdown_write: channel 2: (i0 o1 sock 8 wfd 8 efd -1 [closed])
debug2: channel 2: output drain -> closed
debug1: channel 2: FORCE input drain
debug2: channel 2: ibuf empty
debug2: channel 2: send eof
debug3: send packet: type 96
debug2: channel 2: input drain -> closed
debug2: channel 2: send close
debug3: send packet: type 97
debug3: receive packet: type 97
debug2: channel 2: rcvd close
debug3: receive packet: type 90
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 50700
debug2: fd 7 setting TCP_NODELAY
debug2: fd 7 setting O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug3: send packet: type 91
debug3: channel 2: will not send data after close
debug2: channel 2: is dead
debug2: channel 2: garbage collecting
debug1: channel 2: free: x11, nchannels 3
debug3: channel 2: status: The following connections are open:
#0 client-session (t4 r0 i0/0 o0/0 e[write]/0 fd 4/5/6 sock -1 cc -1)
#1 x11 (t7 r3 i0/0 o0/0 e[closed]/0 fd 7/7/-1 sock 7 cc -1)
#2 x11 (t4 r4 i3/0 o3/0 e[closed]/0 fd 8/8/-1 sock 8 cc -1)
debug3: receive packet: type 96
debug2: channel 1: rcvd eof
debug2: channel 1: output open -> drain
debug2: channel 1: obuf empty
debug2: chan_shutdown_write: channel 1: (i0 o1 sock 7 wfd 7 efd -1 [closed])
debug2: channel 1: output drain -> closed
debug1: channel 1: FORCE input drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug3: send packet: type 96
debug2: channel 1: input drain -> closed
debug2: channel 1: send close
debug3: send packet: type 97
debug3: receive packet: type 90
debug1: client_input_channel_open: ctype x11 rchan 4 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 50702
debug2: fd 8 setting TCP_NODELAY
debug2: fd 8 setting O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 2: new [x11]
debug1: confirm x11
debug3: send packet: type 91
debug3: channel 1: will not send data after close
debug3: receive packet: type 97
debug2: channel 1: rcvd close
debug3: channel 1: will not send data after close
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: x11, nchannels 3
debug3: channel 1: status: The following connections are open:
#0 client-session (t4 r0 i0/0 o0/0 e[write]/0 fd 4/5/6 sock -1 cc -1)
#1 x11 (t4 r3 i3/0 o3/0 e[closed]/0 fd 7/7/-1 sock 7 cc -1)
#2 x11 (t7 r4 i0/0 o0/0 e[closed]/0 fd 8/8/-1 sock 8 cc -1)
debug3: receive packet: type 90
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 50704
debug2: fd 7 setting TCP_NODELAY
debug2: fd 7 setting O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug3: send packet: type 91
debug3: receive packet: type 90
debug1: client_input_channel_open: ctype x11 rchan 5 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 50706
debug2: fd 9 setting TCP_NODELAY
debug2: fd 9 setting O_NONBLOCK
debug3: fd 9 is O_NONBLOCK
debug1: channel 3: new [x11]
debug1: confirm x11
debug3: send packet: type 91
debug2: client_check_window_change: changed
debug2: channel 0: request window-change confirm 0
debug3: send packet: type 98
0:00:04.156054365 3997 0xfffedc002320 INFO nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<secondary_gie_2> NvDsInferContext[UID 5]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1909> [UID = 5]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app/../../models/Secondary_CarMake/resnet18.caffemodel_b16_gpu0_int8.engine
INFO: [Implicit Engine Info]: layers num: 2
0 INPUT kFLOAT input_1 3x224x224
1 OUTPUT kFLOAT predictions/Softmax 20x1x1
0:00:04.326382996 3997 0xfffedc002320 INFO nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<secondary_gie_2> NvDsInferContext[UID 5]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2012> [UID = 5]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app/../../models/Secondary_CarMake/resnet18.caffemodel_b16_gpu0_int8.engine
0:00:04.333316753 3997 0xfffedc002320 INFO nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<secondary_gie_2> [UID 5]: Load new model:/opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app/config_infer_secondary_carmake.txt sucessfully
0:00:07.088126241 3997 0xfffedc002320 INFO nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<secondary_gie_1> NvDsInferContext[UID 4]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1909> [UID = 4]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app/../../models/Secondary_CarColor/resnet18.caffemodel_b16_gpu0_int8.engine
INFO: [Implicit Engine Info]: layers num: 2
0 INPUT kFLOAT input_1 3x224x224
1 OUTPUT kFLOAT predictions/Softmax 12x1x1
0:00:07.267363936 3997 0xfffedc002320 INFO nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<secondary_gie_1> NvDsInferContext[UID 4]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2012> [UID = 4]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app/../../models/Secondary_CarColor/resnet18.caffemodel_b16_gpu0_int8.engine
0:00:07.270145353 3997 0xfffedc002320 INFO nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<secondary_gie_1> [UID 4]: Load new model:/opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app/config_infer_secondary_carcolor.txt sucessfully
0:00:09.447529996 3997 0xfffedc002320 INFO nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<secondary_gie_0> NvDsInferContext[UID 3]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1909> [UID = 3]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app/../../models/Secondary_VehicleTypes/resnet18.caffemodel_b16_gpu0_int8.engine
INFO: [Implicit Engine Info]: layers num: 2
0 INPUT kFLOAT input_1 3x224x224
1 OUTPUT kFLOAT predictions/Softmax 6x1x1
0:00:09.628561061 3997 0xfffedc002320 INFO nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<secondary_gie_0> NvDsInferContext[UID 3]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2012> [UID = 3]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app/../../models/Secondary_VehicleTypes/resnet18.caffemodel_b16_gpu0_int8.engine
0:00:09.629980553 3997 0xfffedc002320 INFO nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<secondary_gie_0> [UID 3]: Load new model:/opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app/config_infer_secondary_vehicletypes.txt sucessfully
debug3: receive packet: type 90
debug1: client_input_channel_open: ctype x11 rchan 6 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 50708
debug2: fd 10 setting TCP_NODELAY
debug2: fd 10 setting O_NONBLOCK
debug3: fd 10 is O_NONBLOCK
debug1: channel 4: new [x11]
debug1: confirm x11
debug3: send packet: type 91
debug3: receive packet: type 96
debug2: channel 4: rcvd eof
debug2: channel 4: output open -> drain
debug2: channel 4: obuf empty
debug2: chan_shutdown_write: channel 4: (i0 o1 sock 10 wfd 10 efd -1 [closed])
debug2: channel 4: output drain -> closed
debug1: channel 4: FORCE input drain
debug2: channel 4: ibuf empty
debug2: channel 4: send eof
debug3: send packet: type 96
debug2: channel 4: input drain -> closed
debug2: channel 4: send close
debug3: send packet: type 97
nvbufsurface: Failed to create EGLImage.
debug3: channel 4: will not send data after close
debug3: receive packet: type 97
debug2: channel 4: rcvd close
debug3: channel 4: will not send data after close
debug2: channel 4: is dead
debug2: channel 4: garbage collecting
debug1: channel 4: free: x11, nchannels 5
debug3: channel 4: status: The following connections are open:
#0 client-session (t4 r0 i0/0 o0/0 e[write]/0 fd 4/5/6 sock -1 cc -1)
#1 x11 (t4 r3 i0/0 o0/0 e[closed]/0 fd 7/7/-1 sock 7 cc -1)
#2 x11 (t4 r4 i0/0 o0/0 e[closed]/0 fd 8/8/-1 sock 8 cc -1)
#3 x11 (t4 r5 i0/0 o0/0 e[closed]/0 fd 9/9/-1 sock 9 cc -1)
#4 x11 (t4 r6 i3/0 o3/0 e[closed]/0 fd 10/10/-1 sock 10 cc -1)
** ERROR: <main:716>: Failed to set pipeline to PAUSED
Quitting
nvstreammux: Successfully handled EOS for source_id=0
nvstreammux: Successfully handled EOS for source_id=1
nvstreammux: Successfully handled EOS for source_id=2
nvstreammux: Successfully handled EOS for source_id=3
ERROR from secondary_preprocess_0: Failed to set buffer pool to active
Debug info: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvdspreprocess/gstnvdspreprocess.cpp(661): gst_nvdspreprocess_start (): /GstPipeline:pipeline/GstBin:secondary_preprocess_bin/GstNvDsPreProcess:secondary_preprocess_0
debug3: receive packet: type 96
debug2: channel 3: rcvd eof
debug2: channel 3: output open -> drain
debug2: channel 3: obuf empty
debug2: chan_shutdown_write: channel 3: (i0 o1 sock 9 wfd 9 efd -1 [closed])
debug2: channel 3: output drain -> closed
debug1: channel 3: FORCE input drain
debug2: channel 3: ibuf empty
debug2: channel 3: send eof
debug3: send packet: type 96
debug2: channel 3: input drain -> closed
debug2: channel 3: send close
debug3: send packet: type 97
debug3: channel 3: will not send data after close
debug3: receive packet: type 97
debug2: channel 3: rcvd close
debug3: channel 3: will not send data after close
debug2: channel 3: is dead
debug2: channel 3: garbage collecting
debug1: channel 3: free: x11, nchannels 4
debug3: channel 3: status: The following connections are open:
#0 client-session (t4 r0 i0/0 o0/0 e[write]/0 fd 4/5/6 sock -1 cc -1)
#1 x11 (t4 r3 i0/0 o0/0 e[closed]/0 fd 7/7/-1 sock 7 cc -1)
#2 x11 (t4 r4 i0/0 o0/0 e[closed]/0 fd 8/8/-1 sock 8 cc -1)
#3 x11 (t4 r5 i3/0 o3/0 e[closed]/0 fd 9/9/-1 sock 9 cc -1)
debug3: receive packet: type 96
debug2: channel 1: rcvd eof
debug2: channel 1: output open -> drain
debug2: channel 1: obuf empty
debug2: chan_shutdown_write: channel 1: (i0 o1 sock 7 wfd 7 efd -1 [closed])
debug2: channel 1: output drain -> closed
debug1: channel 1: FORCE input drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug3: send packet: type 96
debug2: channel 1: input drain -> closed
debug2: channel 1: send close
debug3: send packet: type 97
debug3: channel 1: will not send data after close
App run failed
debug3: channel 1: will not send data after close
debug3: receive packet: type 97
debug2: channel 1: rcvd close
debug3: channel 1: will not send data after close
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: x11, nchannels 3
debug3: channel 1: status: The following connections are open:
#0 client-session (t4 r0 i0/0 o0/0 e[write]/0 fd 4/5/6 sock -1 cc -1)
#1 x11 (t4 r3 i3/0 o3/0 e[closed]/0 fd 7/7/-1 sock 7 cc -1)
#2 x11 (t4 r4 i0/0 o0/0 e[closed]/0 fd 8/8/-1 sock 8 cc -1)
debug3: receive packet: type 96
debug2: channel 2: rcvd eof
debug2: channel 2: output open -> drain
debug2: channel 2: obuf empty
debug2: chan_shutdown_write: channel 2: (i0 o1 sock 8 wfd 8 efd -1 [closed])
debug2: channel 2: output drain -> closed
debug1: channel 2: FORCE input drain
debug2: channel 2: ibuf empty
debug2: channel 2: send eof
debug3: send packet: type 96
debug2: channel 2: input drain -> closed
debug2: channel 2: send close
debug3: send packet: type 97
debug3: channel 2: will not send data after close
debug3: receive packet: type 97
debug2: channel 2: rcvd close
debug3: channel 2: will not send data after close
debug2: channel 2: is dead
debug2: channel 2: garbage collecting
debug1: channel 2: free: x11, nchannels 2
debug3: channel 2: status: The following connections are open:
#0 client-session (t4 r0 i0/0 o0/0 e[write]/0 fd 4/5/6 sock -1 cc -1)
#2 x11 (t4 r4 i3/0 o3/0 e[closed]/0 fd 8/8/-1 sock 8 cc -1)
Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• 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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
• The pipeline being used
Are you want display video over x11-forwarding
? DeepStream don’t support it currently.
You can try sink to file or rtsp for display result.
Thanks
ok, I always thought it could be displayed
How should the image be displayed in docker
Start docker like below
docker run --gpus "device=0" -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -e CUDA_CACHE_DISABLE=0 nvcr.io/nvidia/deepstream:6.2-triton
When your server had monitor plugged, you can see the video.
I am using jetson orin NX and it is also reporting an X11 problem in Docker
sudo docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-6.2 -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/deepstream-l4t:6.2-base
root@nvidia-desktop:/opt/nvidia/deepstream/deepstream-6.2# cd samples/configs/deepstream-app
root@nvidia-desktop:/opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app# ls
config_infer_primary.txt config_tracker_IOU.yml source30_1080p_dec_infer-resnet_tiled_display_int8.txt
config_infer_primary.yml config_tracker_NvDCF_accuracy.yml source30_1080p_dec_infer-resnet_tiled_display_int8.yml
config_infer_secondary_carcolor.txt config_tracker_NvDCF_max_perf.yml source30_1080p_dec_preprocess_infer-resnet_tiled_display_int8.txt
config_infer_secondary_carcolor.yml config_tracker_NvDCF_perf.yml source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
config_infer_secondary_carmake.txt config_tracker_NvDeepSORT.yml source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.yml
config_infer_secondary_carmake.yml config_tracker_NvSORT.yml source4_1080p_dec_preprocess_infer-resnet_preprocess_sgie_tiled_display_int8.txt
config_infer_secondary_vehicletypes.txt source1_csi_dec_infer_resnet_int8.txt source6_csi_dec_infer_resnet_int8.txt
config_infer_secondary_vehicletypes.yml source1_usb_dec_infer_resnet_int8.txt sources_30.csv
config_preprocess.txt source2_1080p_dec_infer-resnet_demux_int8.txt sources_4.csv
config_preprocess_sgie.txt source2_csi_usb_dec_infer_resnet_int8.txt
root@nvidia-desktop:/opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app# deepstream-app -c source4_1080p_dec_preprocess_infer-resnet_preprocess_sgie_tiled_display_int8.txt
No EGL Display
nvbufsurftransform: Could not get EGL display connection
(Argus) Error FileOperationFailed: Connecting to nvargus-daemon failed: No such file or directory (in src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 204)
(Argus) Error FileOperationFailed: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 106)
(gst-plugin-scanner:497): GStreamer-WARNING **: 02:12:16.212: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so': libtritonserver.so: cannot open shared object file: No such file or directory
(gst-plugin-scanner:497): GStreamer-WARNING **: 02:12:16.243: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so': librivermax.so.0: cannot open shared object file: No such file or directory
No EGL Display
nvbufsurftransform: Could not get EGL display connection
** ERROR: <main:716>: Failed to set pipeline to PAUSED
Quitting
nvstreammux: Successfully handled EOS for source_id=0
nvstreammux: Successfully handled EOS for source_id=1
nvstreammux: Successfully handled EOS for source_id=2
nvstreammux: Successfully handled EOS for source_id=3
ERROR from sink_sub_bin_sink1: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Debug info: gstbasesink.c(5367): gst_base_sink_change_state (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/GstNv3dSink:sink_sub_bin_sink1:
Failed to start
App run failed
root@nvidia-desktop:/opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app# echo $DISPLAY
localhost:10.0
root@nvidia-desktop:/opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app#
What’s the output of xrandr
? Is the value of DISPLAY
correct ?
Before run docker, try run this command.
xhost +
Output DISPLAY
echo $DISPLAY
localhost:10.0
I can’t call xhost +
run xhost +
with root
is is required. otherwise it won’t work.
If you don’t have root
, I recommend you to sink to file/rtsp/fakesink.
I am currently running under root
There may be some issues with sudo
.
try to use root user.
or try replace DISPLAY=$DISPLAY
to DISPLAY=localhost:10.0
This setting is still the above error
The value of the environment variable looks a bit abnormal.
This value is usually :0 or :1, Close your local x11-server
229616726:
localhost:10.0
try export DISPLAY=:0
or export DISPLAY=:1
in you ssh.
ok, it has been confirmed, but when I compile my own development software, I lack cuda_runtime_api.h and other header files. How do I install this?
Is there any output from nvcc --version
command?
If yes, cuda is usually installed to /usr/local/cuda
.
If no, deepstream app not be compile too.
you can try jetpack for install it.
If you have more questions. please open a new topic.
Thanks
I used this command today and got an error again : Could not get EGL display connection
run commond echo $DISPLAY
:0
sudo docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-6.2 -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/deepstream-l4t:6.2-base
Use root
user,don’t use sudo
or you can try DISPLAY=:0
Some environment variables do not take effect under sudo
I am using the root identity