Cannot access second csi camera with Visionworks demos


I would like to use both nvcameras with different Visionworks demos yet, after starting the first app with
with no problem
But when I start the second app with the

throws the error below:

(nvx_sample_object_tracker_nvxcu:11015): GStreamer-CRITICAL **: 14:35:31.265: gst_mini_object_set_qdata: assertion ‘object != NULL’ failed
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:568 Failed to create CaptureSession

Does anybody have suggestion to make it possible to use both csi cameras?


Please check if you can launch second camera in gstreamer pipeline:

$ gst-launch-1.0 nvarguscamerasrc sensor-id=1 ! nvoverlaysink

Hello DaneLLL,

Yes the, gst-launch-1.0 nvarguscamerasrc sensor-id=1 ! nvoverlaysink command works while the sensor-id=0 camera occupied by the Visionworks camera. Visionworks tends to select always the sensor-id=0 even if i give nvcamera?index=1

Since the implementation is open source, please add prints to check if the sensor-id is correctly set. The code is in