Deepstream crash - gstrtspsrc.c - ERROR from source

Jetson Xavier AGX

Hi

My deepstream app randomly crashed with the following error

Ran happily for nearly 6 days then crashed

Is this a problem with the app or with my camera encoders?

Thanks

ERROR from source: Could not read from resource.
Debug info: gstrtspsrc.c(5361): gst_rtspsrc_loop_udp (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin4/GstURIDecodeBin:src_elem/GstRTSPSrc:source:
Could not receive message. (System error)
ERROR from source: Internal data stream error.
Debug info: gstrtspsrc.c(5653): gst_rtspsrc_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin4/GstURIDecodeBin:src_elem/GstRTSPSrc:source:
streaming stopped, reason error (-5)
141:43:00.070203616  9201   0x7ebc006c50 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2decoder0:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
141:43:00.072651808  9201   0x7e10026a30 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2decoder2:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
141:43:00.128386464  9201   0x7e90002630 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2decoder7:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
141:43:00.149829632  9201   0x7ebc006c50 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2decoder0:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
141:43:00.152639520  9201   0x55b32448f0 WARN                 rtspsrc gstrtspsrc.c:5997:gst_rtspsrc_try_send:<source> error: Could not send message. (System error)
141:43:00.152767584  9201   0x55b32448f0 WARN                 rtspsrc gstrtspsrc.c:8244:gst_rtspsrc_pause:<source> error: Could not send message. (System error)
141:43:00.152859136  9201   0x55b32448f0 WARN                 rtspsrc gstrtspsrc.c:5280:gst_rtspsrc_loop_udp:<source> warning: The server closed the connection.
141:43:00.154673184  9201   0x55b3244d40 WARN                 rtspsrc gstrtspsrc.c:5917:gst_rtsp_src_receive_response:<source> error: Could not receive message. (System error)
141:43:00.154776416  9201   0x55b3244d40 WARN                 rtspsrc gstrtspsrc.c:8244:gst_rtspsrc_pause:<source> error: Could not send message. (System error)
141:43:00.154869984  9201   0x55b3244d40 WARN                 rtspsrc gstrtspsrc.c:5280:gst_rtspsrc_loop_udp:<source> warning: The server closed the connection.
141:43:00.182588032  9201   0x7e840264f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2decoder6:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
141:43:00.182963648  9201   0x7e10026a30 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2decoder2:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
141:43:00.377021664  9201   0x55b2eea6d0 WARN                 rtspsrc gstrtspsrc.c:5919:gst_rtsp_src_receive_response:<source> receive interrupted
141:43:00.377097504  9201   0x55b2eea6d0 WARN                 rtspsrc gstrtspsrc.c:7673:gst_rtspsrc_close:<source> TEARDOWN interrupted
141:43:00.389364320  9201   0x55b2e1e720 WARN                 rtspsrc gstrtspsrc.c:5919:gst_rtsp_src_receive_response:<source> receive interrupted
141:43:00.389415904  9201   0x55b2e1e720 WARN                 rtspsrc gstrtspsrc.c:7673:gst_rtspsrc_close:<source> TEARDOWN interrupted
141:43:00.401511744  9201   0x55b3244ad0 WARN                 rtspsrc gstrtspsrc.c:5919:gst_rtsp_src_receive_response:<source> receive interrupted
141:43:00.401569568  9201   0x55b3244ad0 WARN                 rtspsrc gstrtspsrc.c:7673:gst_rtspsrc_close:<source> TEARDOWN interrupted
141:43:00.426780096  9201   0x55b32448f0 WARN                 rtspsrc gstrtspsrc.c:5919:gst_rtsp_src_receive_response:<source> receive interrupted
141:43:00.426823584  9201   0x55b32448f0 WARN                 rtspsrc gstrtspsrc.c:7673:gst_rtspsrc_close:<source> TEARDOWN interrupted
141:43:00.436467136  9201   0x55b3244cf0 WARN                 rtspsrc gstrtspsrc.c:5919:gst_rtsp_src_receive_response:<source> receive interrupted
141:43:00.436555392  9201   0x55b3244cf0 WARN                 rtspsrc gstrtspsrc.c:8246:gst_rtspsrc_pause:<source> PAUSE interrupted
141:43:00.449992576  9201   0x55b3244de0 WARN                 rtspsrc gstrtspsrc.c:5919:gst_rtsp_src_receive_response:<source> receive interrupted
141:43:00.450057504  9201   0x55b3244de0 WARN                 rtspsrc gstrtspsrc.c:8246:gst_rtspsrc_pause:<source> PAUSE interrupted
141:43:00.464388800  9201   0x55b3244d40 WARN                 rtspsrc gstrtspsrc.c:5919:gst_rtsp_src_receive_response:<source> receive interrupted
141:43:00.464450720  9201   0x55b3244d40 WARN                 rtspsrc gstrtspsrc.c:7673:gst_rtspsrc_close:<source> TEARDOWN interrupted

This is a normal gstrtspsrc error. gst/rtsp/gstrtspsrc.c · 1.14 · GStreamer / gst-plugins-good · GitLab
That means the client could not receive correct RTSP message from server. So please check with your RTSP server for the reason. (https://www.ietf.org/rfc/rfc2326.txt)

Thanks Fiona.Chen

I assume that means it is from the IP camera rather than something inside/installed on the Xavier?

Is it possible to increase a timeout anywhere in deepstream to work as a buffer and smooth out if this happens?

Thanks

Yes.

There are some properties for “rtspsrc” to control the timeout. Such as “timeout”, “tcp-timeout”, … Please refer to (rtspsrc)

having a search through the forum

would the reconnection patch help in this situation?

thanks

The patch is for DeepStream 4.0. With deepstream 5.0 and above, it already exists in deepstream. Are you using deepstream-app?

yes 4.0.2

can you point me to a guide on how to add a patch?

The patch is already in deepstream 5.0 and above. You need to work on latest deepstream. If you are using deepstream-app, there is no need to patch any code.

Hi,

I am unable to update to deepstream 5 at the moment. I am working on it but in the mean time I need to know how to implement this patch

How do I do this? Are there any instructions please?

Many thanks for your help

Which DeepStream version do you work on?

4.0.2 at the moment

thanks

So I think you can merge the patch from Deepstream crashes when rtsp fails - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums manually.

We do not support old DeepStream version now.

Thanks Fiona,

Do you think the patch / update will help with this problem? Does this look like a similar error?

30:22:31.505262787 25118   0x7ec0005ca0 WARN            multiudpsink gstmultiudpsink.c:729:gst_multiudpsink_send_messages:<udpsink9> warning: Error sending UDP packets
30:22:31.505372200 25118   0x7ec0005ca0 WARN            multiudpsink gstmultiudpsink.c:729:gst_multiudpsink_send_messages:<udpsink9> warning: client 10.44.132.101:50029, reason: Error sending message: Network is unreachable
WARNING from udpsink9: Error sending UDP packets
Debug info: gstmultiudpsink.c(729): gst_multiudpsink_send_messages (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin3/GstURIDecodeBin:src_elem/GstRTSPSrc:source/GstUDPSink:udpsink9:
client 10.44.132.101:50029, reason: Error sending message: Network is unreachable
30:22:32.197873404 25118   0x7e8c0064a0 WARN            multiudpsink gstmultiudpsink.c:729:gst_multiudpsink_send_messages:<udpsink15> warning: Error sending UDP packets
30:22:32.197929662 25118   0x7e8c0064a0 WARN            multiudpsink gstmultiudpsink.c:729:gst_multiudpsink_send_messages:<udpsink15> warning: client 10.44.132.100:50025, reason: Error sending message: Network is unreachable
WARNING from udpsink15: Error sending UDP packets
Debug info: gstmultiudpsink.c(729): gst_multiudpsink_send_messages (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin7/GstURIDecodeBin:src_elem/GstRTSPSrc:source/GstUDPSink:udpsink15:
client 10.44.132.100:50025, reason: Error sending message: Network is unreachable
30:22:32.371306663 25118   0x7ef0006d90 WARN            multiudpsink gstmultiudpsink.c:729:gst_multiudpsink_send_messages:<udpsink11> warning: Error sending UDP packets
30:22:32.371386187 25118   0x7ef0006d90 WARN            multiudpsink gstmultiudpsink.c:729:gst_multiudpsink_send_messages:<udpsink11> warning: client 10.44.132.101:50021, reason: Error sending message: Network is unreachable
WARNING from udpsink11: Error sending UDP packets
Debug info: gstmultiudpsink.c(729): gst_multiudpsink_send_messages (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstURIDecodeBin:src_elem/GstRTSPSrc:source/GstUDPSink:udpsink11:
client 10.44.132.101:50021, reason: Error sending message: Network is unreachable

We hope to start the update to DS5 soon but if I have another error I want tottery and start investigating that asap as well

Many thanks for your help with this!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.