nvcamerasrc stops running within an hour

I use one TX1 board as h265 encoder and another TX1 board as h265 decoder. Below are the gstreamer commands I use to encode and decode. I use the onboard camera as a video source.

./gst-launch-1.0 nvcamerasrc fpsRange=“30 30” intent=3 ! nvvidconv flip-method=6 ! ‘video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420, framerate=(fraction)30/1’ ! omxh265enc low-latency=1 control-rate=2 bitrate=4000000 ! ‘video/x-h265, stream-format=(string)byte-stream’ ! h265parse ! rtph265pay mtu=1400 ! udpsink host= port=5000 sync=false async=false

./gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=H265,payload=96 ! rtph265depay ! h265parse ! queue ! omxh265dec ! nvoverlaysink sync=false async=false -e

I could successfully stream h265 video to decoder board. However, running for an hour or so the encoder board stops. Below is the console message when the encoder stops.

Setting pipeline to PAUSED …
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and MjstreamingInside NvxLiteH265DecoderLowLatencyInitNvxLiteH265DecoderLowLatencyInit set DPB and Mjstreaming
Available Sensor modes :
2592 x 1944 FR=30.000000 CF=0x10d9208a isAohdr=0
2592 x 1458 FR=30.000000 CF=0x10d9208a isAohdr=0
1280 x 720 FR=120.000000 CF=0x10d9208a isAohdr=0
2592 x 1944 FR=24.000000 CF=0x10d9208a isAohdr=1
Pipeline is live and does not need PREROLL …

NvCameraSrc: Trying To Set Default Camera Resolution. Selected 720x480 FrameRate = 30.000000 …

Setting pipeline to PLAYING …
New clock: GstSystemClock
Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 8
===== MSENC =====
NvMMLiteBlockCreate : Block : BlockType = 8
===== NVENC blits (mode: 1) into block linear surfaces =====
Socket read error. Camera Daemon …
Received error from camera daemon…exiting…
Got EOS from element “pipeline0”.
Execution ended after 0:16:04.519948242
Setting pipeline to PAUSED …
Setting pipeline to READY …

NvCameraSrc: socket write failed… ret=-1
Setting pipeline to NULL …

NvCameraSrc: socket write failed… ret=-1
Freeing pipeline …

I would appreciate it if someone could make a suggestion on how to fix the issue.

Hi fa357

We believe the issue you encountered is related to a memory leak bug in r23.2. This issue was fixed in r24.1 which is our next release. We currently target to have it available at next 2-3 weeks. But if the release can be ready end of the month, we will do so.