Nvargus deamon going into bad state in jetson Tx2 SDK 32.4.3

Hi,
I am using TX2 sdk 32.4.3 and trying to capture video of sensor ov9732 using gstlaunch+ nvargus camerasrc.

using this command:
gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! ‘video/x-raw(memory:NVMM),width=1280, height=720, framerate=30/1, format=NV12’ ! omxh264enc control-rate=2 bitrate=2000000 ! splitmuxsink max-files=3 send-keyframe-requests=true location=/home/ubuntu/videos/left_video%02d.mp4 max-size-time=30000000000 -e &

I am getting below nvargus deamon error during capture

===========console log===================
root@tegra-ubuntu:/home/ubuntu# Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 66, Level = 40
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:557 No cameras avaie
ERROR: from element /GstPipeline:pipeline0/GstSplitMuxSink:splitmuxsink0/GstMP4Mux:muxer: Downstream is not seekable - will not be able to cree
Additional debug info:
gstqtmux.c(2780): gst_qt_mux_start_file (): /GstPipeline:pipeline0/GstSplitMuxSink:splitmuxsink0/GstMP4Mux:muxer
EOS on shutdown enabled – waiting for EOS after Error
Waiting for EOS…

================syslog======================

an 27 10:26:29 localhost nvargus-daemon[7940]: === NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections…=== gst-launch-1.0[
8150]: Connection established (7F9AB551D0)OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
Jan 27 10:26:29 localhost nvargus-daemon[7940]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
Jan 27 10:26:29 localhost nvargus-daemon[7940]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module2
Jan 27 10:26:29 localhost nvargus-daemon[7940]: NvPclHwGetModuleList: No module data found
Jan 27 10:26:29 localhost kernel: [ 189.234064] ov2735 2-003c: ov2735_power_on: power on exit
Jan 27 10:26:29 localhost kernel: [ 189.273600] ov2735 2-003c: ov2735_power_on: power on exit
Jan 27 10:26:29 localhost nvargus-daemon[7940]: message repeated 2 times: [ NvPclHwGetModuleList: No module data found]
Jan 27 10:26:29 localhost nvargus-daemon[7940]: OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
Jan 27 10:26:29 localhost nvargus-daemon[7940]: ---- imager: Found override file [/var/nvidia/nvcam/settings/e33_topleft_P5V27C.isp]. ----
Jan 27 10:26:29 localhost nvargus-daemon[7940]: NvCameraIspConfigFileLoad: type = 0x75 Config file “sensor.cfg” Line 220: Error: Invalid isp c
onfig attribute: “detailenhancement.NumOfEntries=9”
Jan 27 10:26:29 localhost nvargus-daemon[7940]: NvCameraIspUnpackingBlob 156: Blob: Wrong magic number!
Jan 27 10:26:29 localhost nvargus-daemon[7940]: CAM: serial no file already exists, skips storing again---- imager: Found override file [/var/
nvidia/nvcam/settings/e33_centerright_P5V27C.isp]. ----
Jan 27 10:26:29 localhost nvargus-daemon[7940]: NvCameraIspConfigFileLoad: type = 0x75 Config file “sensor.cfg” Line 220: Error: Invalid isp c
onfig attribute: “detailenhancement.NumOfEntries=9”
Jan 27 10:26:29 localhost nvargus-daemon[7940]: NvCameraIspUnpackingBlob 156: Blob: Wrong magic number!
Jan 27 10:26:29 localhost nvargus-daemon[7940]: CAM: serial no file already exists, skips storing again---- imager: No override file found. -

Jan 27 10:26:29 localhost nvargus-daemon[7940]: LSC: LSC surface is not based on full res!
Jan 27 10:26:29 localhost nvargus-daemon: E/ libnvphs:socket: Error[2]: socket connection /var/lib/nvphs/nvphsd.ctl to PHS failed: No such fil
e or directory
Jan 27 10:26:29 localhost nvargus-daemon: D/ libnvphs:socket: Warning: connecting to Power Hinting Service failed. Is PHS running?
Jan 27 10:26:29 localhost nvargus-daemon[7940]: === gst-launch-1.0[8150]: CameraProvider initialized (0x7f94c89d70)SCF: Error BadValue: NvPHSS
endThroughputHints (in src/common/CameraPowerHint.cpp, function sendCameraPowerHint(), line 56)
Jan 27 10:26:29 localhost nvargus-daemon: E/ libnvphs:socket: Error[2]: socket connection /var/lib/nvphs/nvphsd.ctl to PHS failed: No such fil
e or directory
Jan 27 10:26:29 localhost nvargus-daemon: D/ libnvphs:socket: Warning: connecting to Power Hinting Service failed. Is PHS running?
Jan 27 10:26:29 localhost nvargus-daemon: E/ libnvphs: Error: NvPHSSendThroughputHints[usecase=camera, hint=MinCPU, value=4294967295, timeout_
ms=1000]: queue_or_send() failed
Jan 27 10:26:29 localhost nvargus-daemon[7940]: LSC: LSC surface is not based on full res!
Jan 27 10:26:29 localhost nvargus-daemon[7940]: NvCameraIspConfigFileLoad: type = 0x75 Config file “sensor.cfg” Line 220: Error: Invalid isp c
onfig attribute: “detailenhancement.NumOfEntries=9”
Jan 27 10:26:29 localhost nvargus-daemon[7940]: NvCameraIspUnpackingBlob 156: Blob: Wrong magic number!
Jan 27 10:26:29 localhost nvargus-daemon[7940]: CAM: serial no file already exists, skips storing againNvCameraIspConfigFileLoad: type = 0x75
Config file “sensor.cfg” Line 220: Error: Invalid isp config attribute: “detailenhancement.NumOfEntries=9”
Jan 27 10:26:29 localhost nvargus-daemon[7940]: NvCameraIspUnpackingBlob 156: Blob: Wrong magic number!

Jan 27 10:27:17 localhost nvargus-daemon[7940]: CAM: serial no file already exists, skips storing again=== gst-launch-1.0[8150]: Connection cl
osed (7F9AB551D0)=== gst-launch-1.0[8150]: WARNING: CameraProvider was not destroyed before client connection terminated.=== gst-launch-1.0[81
50]: The client may have abnormally terminated. Destroying CameraProvider…=== gst-launch-1.0[8150]: CameraProvider destroyed (0x7f9
4c89d70)=== gst-launch-1.0[8150]: WARNING: Cleaning up 3 outstanding requests…=== gst-launch-1.0[8150]: WARNING: Cleaning up 3 outstanding s
treams…SCF: Error InvalidState: 5 buffers still pending during EGLStreamProducer destruction (propagating from src/services/gl/EGLStreamProd
ucer.cpp, function freeBuffers(), line 306)
Jan 27 10:27:17 localhost nvargus-daemon[7940]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, function ~E
GLStreamProducer(), line 50)
Jan 27 10:27:17 localhost nvargus-daemon[7940]: SCF: Error InvalidState: 5 buffers still pending during EGLStreamProducer destruction (propaga
ting from src/services/gl/EGLStreamProducer.cpp, function freeBuffers(), line 306)
Jan 27 10:27:17 localhost nvargus-daemon[7940]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, function ~E
GLStreamProducer(), line 50)
Jan 27 10:27:17 localhost nvargus-daemon[7940]: SCF: Error InvalidState: 5 buffers still pending during EGLStreamProducer destruction (propaga
ting from src/services/gl/EGLStreamProducer.cpp, function freeBuffers(), line 306)
Jan 27 10:27:17 localhost nvargus-daemon[7940]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, function ~E
GLStreamProducer(), line 50)

any help will be appricated,using SDK 32.4.3

The error show no camera available, that could be the device tree context have problem.
Have a search should be able get more information.

Hi shane,

this error we are getting only first time,after killing gst-launch or nvargus-deamon when we are starting the command again it is capturing the video properly.

only it is failing at first time

Wow, interesting! Get failed every first time after reboot?

yes…and when we are killing nvargusdeamon forcefully and then running command we are able to capture video all the time.

using v4l2 utils we are able to capture video all the time.

why nvargus deamon is creating issue…

Could you try below command?

gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1280,height=720,format=NV12' ! nvvidconv ! fpsdisplaysink video-sink=xvimagesink sync=false

please get the output of your command.

laysink video-sink=xvimagesink sync=false=720,format=NV12’ ! nvvidconv ! fpsdispl
Setting pipeline to PAUSED …
ERROR: Pipeline doesn’t want to pause.
ERROR: from element /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstXvImageSink:xvimagesink0: Could not initialise Xv output
Additional debug info:
xvimagesink.c(1773): gst_xv_image_sink_open (): /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstXvImageSink:xvimagesink0:
Could not open display (null)
Setting pipeline to NULL …
Freeing pipeline …

we are using TX2,custom board.

can you please tell what is the issue here

Set below configure first.
export DISPLAY=:0

is the source code of nvargus-deamon is avilable publicly?

see we dont have any HDMI port in device so we cannot see in screen only we can capture.

can you please tell nvargus-deamon source code…where it is avilable?

You can download it from download center.

https://developer.nvidia.com/embedded/l4t/r32_release_v5.1/r32_release_v5.1/sources/t186/public_sources.tbz2

is this version is compatible for R32.4.3

No, please download the source from J4.4.x

is this link is fine.

https://developer.nvidia.com/embedded/linux-tegra-r32.4.3

Yes, that should be correct.