Nvidia-desktop kernel: [407343.357549] (NULL device *): nvhost_channelctl: invalid cmd 0x80685600

Hi,
We have tired but do not observe significant memory increase. How long would it take to observe the issue in your test? And it looks like OpenCV does not send EoS in cvCap.release(). Have seen some discussion in
writing file from Gstreamer pipleine in a VideoCapture on the Tx2 - OpenCV Q&A Forum

We would suggest run like this python sample:
Nvv4l2decoder sometimes fails to negotiate with downstream after several pipeline re-launches - #16 by DaneLLL
Sens EoS and wait for it before switching to NULL state. This seems impossible while running gstreamer pipeline in cv2.VideoCapture().