Gstreamer NvCamerasrc failed to start after non graceful shutdown


I’m running the following gstreamer pipeline using the C APIs

nvcamerasrc sensor_id=0 name=cam_src_0 ! video/x-raw(memory:NVMM), width=2100, height=1176, framerate=(fraction)30/1
                       ! nvvidconv top=0 bottom=1176 left=266 right=1834 ! video/x-raw, width=(int)640, height=(int)480, format=(string)NV12
                       ! queue leaky=downstream max-size-buffers=1
                       ! interpipesink name=cam_0  emit-signals=true forward-events=true max-buffers=1 enable-last-sample=false async=false sync=false

The pipeline is successfully running and read video data from a single MIPI camera.
However sometimes after non-graceful shutdown, the same pipeline cannot be started due to this error

nvcamerasrc gstnvcamerasrc.cpp:2448:gst_nvcamera_open:<cam_src_0> REQ_NVCAM_CREATE_SESSION to camera_daemon failed

We are running on TX1 that is based on JetPack 3.3.

Also reviewed other threads related to this issue with no much help (

We do not want to restart nvcamera-daemon before each execution of our pipeline.

Please suggest a solution that is either

  • kernel patch
  • gstreamer plugin fix
  • code fix
  • code example of how to start and shutdown nvcamerasrc

Thank you in advance,


Re-starting nvcamera-daemon after non-graceful shutdown looks to be required. If it is not good, you may check to avoid the non-graceful shutdown.