nvvideoconvert crashes on RTSP input + src-crop=x:y:w:h pipeline

Hello

SDK details

deepstream-app version 4.0
DeepStreamSDK 4.0
CUDA Driver Version: 10.1
CUDA Runtime Version: 10.1
TensorRT Version: 5.1
cuDNN Version: 7.6
libNVWarp360 Version: 2.0.0d5

Nvvideoconvert crops fine FILE input stream, but crashes on RTSP input stream

Working pipeline

gst-launch-1.0 uridecodebin uri=FILE_URI ! nvvideoconvert src-crop=0:0:320:200 ! nveglglessink

Crashing pipeline

gst-launch-1.0 uridecodebin uri=RTSP_URI ! nvvideoconvert src-crop=0:0:320:200 ! nveglglessink

with interruption

Caught SIGSEGV

Same happens if I try to build pipeline myself based on deepstream-test3-app.

GDB
gdb tool shows that crash happens somewhere in method:

gst_nvvideoconvert_transform

Backtrace of the thread

gst_nvvideoconvert_transform 0x00007fcc68d902f2    <-- SIGSEGV
default_generate_output 0x00007fcc71db9401
gst_base_transform_chain 0x00007fcc71db8b84
gst_pad_chain_data_unchecked 0x00007fcc7795788b
gst_pad_push_data 0x00007fcc7795788b
gst_pad_push 0x00007fcc7795fbb3
gst_proxy_pad_chain_default 0x00007fcc77945aab
gst_pad_chain_data_unchecked 0x00007fcc7795788b
gst_pad_push_data 0x00007fcc7795788b
gst_pad_push 0x00007fcc7795fbb3
gst_proxy_pad_chain_default 0x00007fcc77945aab
gst_pad_chain_data_unchecked 0x00007fcc7795788b
gst_pad_push_data 0x00007fcc7795788b
gst_pad_push 0x00007fcc7795fbb3
gst_proxy_pad_chain_default 0x00007fcc77945aab
gst_pad_chain_data_unchecked 0x00007fcc7795788b
gst_pad_push_data 0x00007fcc7795788b
gst_pad_push 0x00007fcc7795fbb3
<unknown> 0x00007fcc753c6f1a
gst_video_decoder_finish_frame 0x00007fcc753ce09b
gst_v4l2_video_dec_loop 0x00007fcbd9f676d4
gst_task_func 0x00007fcc7798c269
<unknown> 0x00007fcc773eab60
<unknown> 0x00007fcc773ea195
start_thread 0x00007fcc765556db
clone 0x00007fcc770a688f

Do you have any tips how to overcome this problem?
Thanks

Hi,
Do you run a Jetson platforms or a PC with NVIDIA GPUs?

My first post is about dGPU.

But Jetson Nano shows the same behaviour.

Works

gst-launch-1.0 uridecodebin uri=FILE_URI ! nvvideoconvert src-crop=0:0:320:200 ! nvegltransform ! nveglglessink

RTSP without src-crop also works

gst-launch-1.0 uridecodebin uri=RTSP_URI ! nvvideoconvert ! nvegltransform ! nveglglessink

Crashes

gst-launch-1.0 uridecodebin uri=RTSP_URI ! nvvideoconvert src-crop=0:0:320:200 ! nvegltransform ! nveglglessink

Unfortunately gdb backtrace on Jetson Nano is less verbose:

#0  0x0000007fb725f0b0 in  () at /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvvideoconvert.so
#1  0x0000007fb73bb120 in  () at /usr/lib/aarch64-linux-gnu/libgstbase-1.0.so.0
#2  0x0000005555858760 in  ()

Jetson Nano environment

deepstream-app version 4.0
DeepStreamSDK 4.0
CUDA Driver Version: 10.0
CUDA Runtime Version: 10.0
TensorRT Version: 5.1
cuDNN Version: 7.5
libNVWarp360 Version: 2.0.0d5

Hi,
By launching a rtsp server through test-mp4, we are able to run

$ gst-launch-1.0 uridecodebin uri=rtsp://127.0.0.1:8554/test ! nvvideoconvert src-crop=0:0:320:200 ! nvegltransform ! nveglglessink

More information about your rtsp source should help the debugging. Please run this sample to give the information.

Result of decode.cpp for my RTSP-cam

bufferformat: NvBufferColorFormat_NV12_709_ER

Again, just as a reminder - without src-crop RTSP pipeline runs just fine.

gst-discoverer-1.0 info about target RTSP source

Analyzing RTSP_URI
Done discovering RTSP_URI

Topology:
  container: application/rtsp
    unknown: application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H265, a-videoinfo=(string)"1920\*1080\*30\*4096", npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1, ssrc=(uint)41158
      video: video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, width=(int)1920, height=(int)1080, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, profile=(string)main, tier=(string)main, level=(string)4.1
        Tags:
          video codec: H.265 (Main Profile)
        
        Codec:
          video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, width=(int)1920, height=(int)1080, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, profile=(string)main, tier=(string)main, level=(string)4.1
        Additional info:
          None
        Stream ID: 2ffb6221bc2cc0cce8151d555fbb5fee45dfeea0a3340f0a33b4c596326bbb89/0/video:0:0:RTP:AVP:96
        Width: 1920
        Height: 1080
        Depth: 24
        Frame rate: 0/1
        Pixel aspect ratio: 1/1
        Interlaced: false
        Bitrate: 0
        Max bitrate: 0
    unknown: application/x-rtp, media=(string)audio, payload=(int)0, clock-rate=(int)8000, encoding-name=(string)PCMU, a-ptime=(string)20, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1, ssrc=(uint)41030
      audio: audio/x-mulaw, channels=(int)1, rate=(int)8000
        Tags:
          None
        
        Codec:
          audio/x-mulaw, channels=(int)1, rate=(int)8000
        Additional info:
          None
        Stream ID: 2ffb6221bc2cc0cce8151d555fbb5fee45dfeea0a3340f0a33b4c596326bbb89/1/audio:0:0:RTP:AVP:0
        Language: <unknown>
        Channels: 1 (unknown layout)
        Sample rate: 8000
        Depth: 16
        Bitrate: 0
        Max bitrate: 0

Properties:
  Duration: 99:99:99.999999999
  Seekable: no
  Live: yes
  Tags: 
      video codec: H.265 (Main Profile)

Hi,
Please apply the prebuilt libs and try again.

I’ve already completed instructions from that thread before starting current conversation to be able to run deepstream-app with RTSP-cam stream.

RTSP, tiler, eglsink work fine on both dGPU and Jetson Nano.

Problem arises when I want to crop input.

It is nvvideoconvert’s src-crop functionality what is failing with RTSP source on dGPU and Jetson.

Pavel, quick question. When your RTSP stream is being established, does it fail back to using TCP? I keep getting seg faults in nvvideoconvert when I try to do a resize and it fails back to TCP. It takes 5 seconds to fail UDP and then boom. If I force tcp (protocols=tcp) it seg faults without the delay.

I’m doing a resize not a crop, but this is feeling pretty similar so I thought I’d ask. If I remove my resize everything works fine (UDP or TCP).

Hello Shawn,

Yes, absolutely. Switching to TCP after 5 seconds of waiting for packets on UDP is GStreamer’s default behavior.

I’m forcing TCP usage by providing ‘rtspt’ (notice the ‘t’ at the end) as a protocol in URI string (again GStreamer’s feature), like this:

rtspt://user:password@localhost:554

And yes, your situation is pretty similar to mine.

I think that nvvideoconvert library fails to transform image format (unable to recognize or something)

NvBufferColorFormat_NV12_709_ER

Same way like nvmultistreamtiler and nvegltransform caused issues with this format on Jetson Nano. Here is the thread about the issue
https://devtalk.nvidia.com/default/topic/1058086/deepstream-sdk/how-to-run-rtp-camera-in-deepstream-on-nano/post/5367501/#5367501

Maybe you could try UDP and see if it still fails? Mine is fine with UDP, but if I jump through two NATs to get to my camera UDP isn’t an option and I’m forced into TCP (which seg faults). I have none of nvidia’s source code to look at so I can’t figure out the correlation between resizing and TCP, but it’s the only connection I have right now.

Hi,
We are able to run the pipeline on r32.2/TX2 + prebuilt lib

Looks like it may be specific to Jetson Nano. We will try to reproduce it on Jetson Nano.

I’m experiencing the crash on all available platforms:

  • Jetson Nano

  • GeForce GTX 1050Ti

  • GeForce GTX 1080

I’m aware that DeepStream 4.0 has no official support for my dGPUs, but it works identically as on my Jetson Nano, and I have no Teslas.

We tested src-crop here and it fails in the way described by Pavel; we have this failing on a GTX 1050Ti and a Tesla T4.

Hi,
We can observe it on Jetson Nano. Checking and will update.

Hi,
Please try to run the commands on GTX or Tesla platforms.

$ export GST_DEBUG=*FACTORY*:4
$ gst-launch-1.0 uridecodebin uri=RTSP_URI ! nvvideoconvert src-crop=0:0:320:200 ! <b>'video/x-raw(memory:NVMM),width=320,height=200'</b> ! nveglglessink

If it still triggers crash, please share what elements are created by uridecodebin. It should have nvv4l2decoder.

Hello,

Yes, the crash is there. GTX 1050Ti

Command

gst-launch-1.0 uridecodebin uri=RTSP_URI ! nvvideoconvert src-crop=0:0:320:200 ! 'video/x-raw(memory:NVMM),width=320,height=200' ! nveglglessink

Output

0:00:00.019883944  9092 0x55da731ee520 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "uridecodebin"
0:00:00.052262948  9092 0x55da731ee520 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "nvvideoconvert"
0:00:00.053516026  9092 0x55da731ee520 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "nveglglessink"
0:00:00.053655482  9092 0x55da731ee520 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "pipeline"
0:00:00.054058710  9092 0x55da731ee520 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "capsfilter"
Setting pipeline to PAUSED ...
0:00:00.069545022  9092 0x55da731ee520 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "rtspsrc" named "source"
0:00:00.070102175  9092 0x55da731ee520 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtspreal"
0:00:00.070468950  9092 0x55da731ee520 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtspwms"
Pipeline is live and does not need PREROLL ...
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Progress: (open) Opening Stream
Progress: (connect) Connecting to RTSP_URI
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
0:00:00.562200318  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "rtpbin" named "manager"
0:00:00.562767507  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpsession"
0:00:00.563208874  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpssrcdemux"
0:00:00.564316448  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpstorage"
0:00:00.564447617  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "funnel"
0:00:00.564549381  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "funnel"
Progress: (request) SETUP stream 1
0:00:00.611695160  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpsession"
0:00:00.611825231  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpssrcdemux"
0:00:00.611892937  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpstorage"
0:00:00.611961826  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "funnel"
0:00:00.612004200  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "funnel"
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
0:00:00.727590221  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpjitterbuffer"
0:00:00.727887790  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpptdemux"
0:00:00.731926265  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpjitterbuffer"
0:00:00.732009188  9092 0x55da73292a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpptdemux"
0:00:02.683606399  9092 0x7f2418008b20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "decodebin"
0:00:02.683842829  9092 0x7f2418008b20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "typefind" named "typefind"
0:00:02.684345853  9092 0x7f2418056c50 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "decodebin"
0:00:02.684432543  9092 0x7f2418056c50 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "typefind" named "typefind"
0:00:02.687710544  9092 0x7f2418008b20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtppcmudepay"
0:00:02.687973479  9092 0x7f2418056c50 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtph265depay"
0:00:02.688643622  9092 0x7f2418008b20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "mulawdec"
0:00:02.689381826  9092 0x7f2418056c50 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "h265parse"
0:00:02.689809305  9092 0x7f2418056c50 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "capsfilter"
0:00:02.693056872  9092 0x7f2418056c50 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "nvv4l2decoder"
Caught SIGSEGV
Spinning.  Please run 'gdb gst-launch-1.0 9092' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.

The nvv4l2decoder is here at the end.

Hi,
Please dump the stream and share to us so that we can try to reproduce the issue. 15-sec content should be enough.

$ gst-launch-1.0 rtspsrc location=RTSP_URI ! rtph265depay ! h265parse ! matroskamux ! filesink location=a.mkv

Also please check if downscaling to 320x200 works:

$ gst-launch-1.0 uridecodebin uri=RTSP_URI ! nvvideoconvert ! 'video/x-raw(memory:NVMM),width=320,height=200' ! nveglglessink
  1. I don't see any ways how you could reproduce the issue with prerecorded video. As I said earlier - the pipeline works fine with file-sources file://FILE_PATH. I've just checked on video recorded with your command and it works as expected without any issues. I think that issue is only reproducible with live rtsp source. Anyway, you can grab the stream dumped with your command from my test camera here (27sec, 6MB): http://178.236.245.94:11200/download/a.mkv
  2. Downscaling example also crashes on RTSP_URI, but works great with FILE_URI on both Jetson Nano and GTX1050Ti Command GTX1050Ti
    $ gst-launch-1.0 uridecodebin uri=RTSP_URI ! nvvideoconvert ! 'video/x-raw(memory:NVMM),width=320,height=200' ! nveglglessink
    

    Output on GTX1050Ti

    0:00:00.020635197  9670 0x555be85ffb20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "uridecodebin"
    0:00:00.051682454  9670 0x555be85ffb20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "nvvideoconvert"
    0:00:00.052868515  9670 0x555be85ffb20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "nveglglessink"
    0:00:00.053016100  9670 0x555be85ffb20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "pipeline"
    0:00:00.053441306  9670 0x555be85ffb20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "capsfilter"
    Setting pipeline to PAUSED ...
    0:00:00.068201501  9670 0x555be85ffb20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "rtspsrc" named "source"
    0:00:00.068817975  9670 0x555be85ffb20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtspreal"
    0:00:00.069187165  9670 0x555be85ffb20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtspwms"
    Pipeline is live and does not need PREROLL ...
    Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
    Progress: (open) Opening Stream
    Progress: (connect) Connecting to RTSP_URI
    Progress: (open) Retrieving server options
    Progress: (open) Retrieving media info
    Progress: (request) SETUP stream 0
    0:00:00.639618440  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "rtpbin" named "manager"
    0:00:00.640175930  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpsession"
    0:00:00.640661804  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpssrcdemux"
    0:00:00.642077562  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpstorage"
    0:00:00.642214033  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "funnel"
    0:00:00.642318447  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "funnel"
    Progress: (request) SETUP stream 1
    0:00:00.687683120  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpsession"
    0:00:00.687759546  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpssrcdemux"
    0:00:00.687832449  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpstorage"
    0:00:00.687899383  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "funnel"
    0:00:00.687940051  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "funnel"
    Progress: (open) Opened Stream
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    Progress: (request) Sending PLAY request
    Progress: (request) Sending PLAY request
    Progress: (request) Sent PLAY request
    0:00:00.781310915  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpjitterbuffer"
    0:00:00.781571615  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpptdemux"
    0:00:00.887883421  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpjitterbuffer"
    0:00:00.887980421  9670 0x555be86a5a80 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpptdemux"
    0:00:02.783233975  9670 0x7f3130058450 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "decodebin"
    0:00:02.783479225  9670 0x7f3130058450 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "typefind" named "typefind"
    0:00:02.784014800  9670 0x7f3130008b20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "decodebin"
    0:00:02.784081150  9670 0x7f3130008b20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "typefind" named "typefind"
    0:00:02.787250755  9670 0x7f3130058450 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtppcmudepay"
    0:00:02.787539341  9670 0x7f3130008b20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtph265depay"
    0:00:02.788175018  9670 0x7f3130058450 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "mulawdec"
    0:00:02.789048707  9670 0x7f3130008b20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "h265parse"
    0:00:02.789540915  9670 0x7f3130008b20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "capsfilter"
    0:00:02.793090265  9670 0x7f3130008b20 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "nvv4l2decoder"
    Caught SIGSEGV
    Spinning.  Please run 'gdb gst-launch-1.0 9670' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
    

    Output on Jetson Nano

    0:00:00.053764281 11579   0x5579110f30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "uridecodebin"
    0:00:00.099873902 11579   0x5579110f30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "nvvideoconvert"
    0:00:00.101378980 11579   0x5579110f30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "nvegltransform"
    0:00:00.102744732 11579   0x5579110f30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "fakesink"
    0:00:00.103060570 11579   0x5579110f30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "pipeline"
    0:00:00.103478546 11579   0x5579110f30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "capsfilter"
    Setting pipeline to PAUSED ...
    0:00:00.110063135 11579   0x5579110f30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "rtspsrc" named "source"
    0:00:00.112414424 11579   0x5579110f30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtspreal"
    0:00:00.113491577 11579   0x5579110f30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtspwms"
    Pipeline is live and does not need PREROLL ...
    Progress: (open) Opening Stream
    Progress: (connect) Connecting to RTSP_URI
    Progress: (open) Retrieving server options
    Progress: (open) Retrieving media info
    Progress: (request) SETUP stream 0
    0:00:00.446474307 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "rtpbin" named "manager"
    0:00:00.449814676 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpsession"
    0:00:00.451409025 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpssrcdemux"
    0:00:00.454674652 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpstorage"
    0:00:00.455004606 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "funnel"
    0:00:00.455193828 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "funnel"
    Progress: (request) SETUP stream 1
    0:00:00.490966402 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpsession"
    0:00:00.491812614 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpssrcdemux"
    0:00:00.492280539 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpstorage"
    0:00:00.492830183 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "funnel"
    0:00:00.493138313 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "funnel"
    Progress: (open) Opened Stream
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    Progress: (request) Sending PLAY request
    Progress: (request) Sending PLAY request
    Progress: (request) Sent PLAY request
    0:00:00.590629520 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpjitterbuffer"
    0:00:00.593674154 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpptdemux"
    0:00:00.689179962 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpjitterbuffer"
    0:00:00.690699102 11579   0x55791b60a0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtpptdemux"
    0:00:02.564304578 11579   0x7fa4008e30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "decodebin"
    0:00:02.566637898 11579   0x7fa4008e30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "typefind" named "typefind"
    0:00:02.570698174 11579   0x7fa4067000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "decodebin"
    0:00:02.571292767 11579   0x7fa4067000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "typefind" named "typefind"
    0:00:02.582193157 11579   0x7fa4008e30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtppcmudepay"
    0:00:02.582672071 11579   0x7fa4067000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "rtph265depay"
    0:00:02.584214284 11579   0x7fa4008e30 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "mulawdec"
    0:00:02.585167738 11579   0x7fa4067000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "h265parse"
    0:00:02.586277183 11579   0x7fa4067000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "capsfilter"
    0:00:02.593447511 11579   0x7fa4067000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "nvv4l2decoder"
    Opening in BLOCKING MODE 
    NvMMLiteOpen : Block : BlockType = 279 
    NVMEDIA: Reading vendor.tegra.display-size : status: 6 
    NvMMLiteBlockCreate : Block : BlockType = 279 
    Caught SIGSEGV
    #0  0x0000007fb184b048 in __GI___poll (fds=0x55791dc6b0, nfds=548440212080, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:41
    #1  0x0000007fb1957e40 in  () at /usr/lib/aarch64-linux-gnu/libglib-2.0.so.0
    #2  0x0000005578f223d0 in  ()
    Spinning.  Please run 'gdb gst-launch-1.0 11579' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
    

I’ve found publicly available live RTSP source (Hessdalen, Norway, h264, 1280x720) using which you can reproduce the issue:

rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream

THe RTSP source is publicly shared on “Project Hessdalen” website: http://freja.hiof.no/station/stream1.shtml

Works Simple rendering

$ gst-launch-1.0 uridecodebin uri=rtspt://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream ! nveglglessink

Crashes Scaling

$ gst-launch-1.0 uridecodebin uri=rtspt://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream ! nvvideoconvert ! 'video/x-raw(memory:NVMM),width=320,height=200' ! nveglglessink

Crashes Cropping

$ gst-launch-1.0 uridecodebin uri=rtspt://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream ! nvvideoconvert src-crop=0:0:320:200 ! nveglglessink

UPDATE

Here is another one (h264, 240x160):

rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov

Crashing with:

$ gst-launch-1.0 uridecodebin uri=rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov ! nvvideoconvert src-crop=0:0:200:100 ! nveglglessink

and

$ gst-launch-1.0 uridecodebin uri=rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov ! nvvideoconvert ! 'video/x-raw(memory:NVMM),width=200,height=100' ! nveglglessink

Hi,
Could you try YUV dump?

$ gst-launch-1.0 uridecodebin uri=rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream ! nvvideoconvert src-crop=0:0:200:100 ! 'video/x-raw(memory:NVMM),width=200,height=100' ! nvvideoconvert ! video/x-raw,format=I420 ! multifilesink location=tmp/dump%05d.yuv

I can run it on Tesla P4. Please try it on GTX platforms. Also the gstreamer version is

$ gst-inspect-1.0 --version
gst-inspect-1.0 version 1.14.5
GStreamer 1.14.5