Deepstream SDK 4.0 Yolo v3 Segmentation Fault

When I run the sample YoloV3 I get the following error

deepstream-app -c config_infer_primary_yoloV3.txt

(deepstream-app:30034): GStreamer-CRITICAL **: 19:58:00.793: gst_element_get_static_pad: assertion ‘GST_IS_ELEMENT (element)’ failed
Segmentation fault (core dumped)

My config file looks like below

[property]
gpu-id=0
net-scale-factor=1
#0=RGB, 1=BGR
model-color-format=0
custom-network-config=yolov3.cfg.1
model-file=yolov3.weights.1
#model-engine-file=model_b1_int8.engine
labelfile-path=labels.txt
#int8-calib-file=yolov3-calibration.table.trt5.1

0=FP32, 1=INT8, 2=FP16 mode

network-mode=2
num-detected-classes=80
gie-unique-id=1
is-classifier=0
maintain-aspect-ratio=1
parse-bbox-func-name=NvDsInferParseCustomYoloV3
custom-lib-path=nvdsinfer_custom_impl_Yolo/libnvdsinfer_custom_impl_Yolo.so

Any ideas?

You are not supposed to use config_infer_primary_yoloV3.txt directly with deepstream-app, you should use
deepstream_app_config_yolo***, the first one is configuration for nvinfer only.

@amycao I understand. This worked Thanks!