Deepstream application gives segmentation fault with sink

Please provide complete information as applicable to your setup.

**• Hardware Platform GPU
**• DeepStream Version v5.0
**• NVIDIA GPU Driver Version : 440.64.00

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP
type=4
#uri=file://../../streams/sample_1080p_h264.mp4
uri=rtsp://admin:@192.168.1.10:554/mode=real&idc=1&ids=1
num-sources=1
#drop-frame-interval=2
gpu-id=0
# (0): memtype_device   - Memory type Device
# (1): memtype_pinned   - Memory type Host Pinned
# (2): memtype_unified  - Memory type Unified
cudadec-memtype=0

[source1]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP
type=4
#uri=file://../../streams/sample_1080p_h264.mp4
uri=rtsp://admin:@192.168.1.12:554/mode=real&idc=1&ids=1
num-sources=1
#drop-frame-interval=2
gpu-id=0
# (0): memtype_device   - Memory type Device
# (1): memtype_pinned   - Memory type Host Pinned
# (2): memtype_unified  - Memory type Unified
cudadec-memtype=0

[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File
type=1
sync=0
source-id=0
gpu-id=0
nvbuf-memory-type=0

[sink1]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File
type=1
sync=0
source-id=0
gpu-id=0
nvbuf-memory-type=0

When I enable sink0 and sink1 , my application crashes before starting and gives segmentation fault.
When I disable sink1 and enable one of the sink it runs fine. Dont understand why I cannot enable both the sink simultaneously.

Also application crashes when I disable both the sinks

Are you using deepstream-app?
Can you refer to SegFault when enabling multiple sinks with different source id to get the workaround?

I have a segmentation fault too when I use deepstream-apps-python,
here is my topics How to use nvstreamdemux and nvstreammux to process multiple live videos input and output,
Did I use nvstreamdemux correctly?
could you help me?