Libgstnvarguscamerasrc libray is different from public source of nvarguscamerasrc on TX2 with SDK32.4.3

I am using jetson Tx2 custom device with SDK 32.4.3.

it has default nvarguscamerasrc library at path /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvarguscamerasrc.so.

is there any difference between default shared library libgstnvarguscamerasrc.so and source code provided at public source code path

when i download gst-nvarguscamera_src.tbz2 and compiled the library its size is coming greater than default shared library.

is there any difference between public source code and default nvarguscamerasrc shared library?

hello anupam.kumar,

those sources having no difference,


BTW,
there’s known issue (i.e. Segmentation fault) with argus_camera application if you build from source release package.
please refer to Topic 141432 and having header file “CameraDevice.h” and “Settings.h” updates, then recompile argus_camera application for l4t-r32.4.3 release.
thanks

But if i compare the shared library size with default sdk and compiled one,there is size difference.

I am using gst-launch-1.0 nvarguscamerasrc command…

with default library libgstnvarguscamerasrc.so,i am unable to capture the video but when i compiled the source code on board and replace it …it is working…is there any dependency of these library on custom TX2 board?

hello anupam.kumar,

may I know what’s the error, please share some logs for reference,
thanks

with default nvargus shared libary for R32.4.3

I am getting below error first time while firing command.

==============================failure logs during video capture===================
root@tegra-ubuntu:/home/ubuntu#
ltransform ! nveglglessink)1920 , height=(int)1080 , format=(string)NV12’ ! nvegl

Setting pipeline to PAUSED …

Using winsys: x11

Using winsys: x11

Using winsys: x11
Pipeline is live and does not need PREROLL …
Got context from element ‘eglglessink2’: gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Setting pipeline to PLAYING …
New clock: GstSystemClock
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:557 No cameras avae
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:557 No cameras avae
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason error (-5)
Execution ended after 0:00:00.201851456
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …
(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), lin)
(Argus) Error EndOfFile: Receive worker failure, notifying 1 waiting threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recv)
(Argus) Error InvalidState: Argus client is exiting with 1 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, func)
(Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper)
(Argus) Error EndOfFile: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line)
(Argus) Error EndOfFile: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 87)

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

root@tegra-ubuntu:/home/ubuntu# cat /var/log/syslog | grep nvargus
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: === NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections…=== gst-launch-0
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module2
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: NvPclHwGetModuleList: No module data found
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: message repeated 2 times: [ NvPclHwGetModuleList: No module data found]
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: ---- imager: Found override file [/var/nvidia/nvcam/settings/e33_topleft_P5V27C.isp]. ----
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: NvCameraIspConfigFileLoad: type = 0x75 Config file “sensor.cfg” Line 220: Error: Invalid i"
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: NvCameraIspUnpackingBlob 156: Blob: Wrong magic number!
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: ---- imager: Found override file [/var/nvidia/nvcam/settings/e33_centerright_P5V27C.isp]. -
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: NvCameraIspConfigFileLoad: type = 0x75 Config file “sensor.cfg” Line 220: Error: Invalid i"
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: NvCameraIspUnpackingBlob 156: Blob: Wrong magic number!
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: CheckOverridesPermissions: Error: override file [/var/nvidia/nvcam/settings/e33_centerleft.
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: ---- imager: No override file found. ----
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: NvCameraIspConfigFileLoad: type = 0x75 Config file “sensor.cfg” Line 220: Error: Invalid i"
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: NvCameraIspUnpackingBlob 156: Blob: Wrong magic number!
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: LSC: LSC surface is not based on full res!
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon: E/ libnvphs:socket: Error[2]: socket connection /var/lib/nvphs/nvphsd.ctl to PHS failed: No suchy
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon: D/ libnvphs:socket: Warning: connecting to Power Hinting Service failed. Is PHS running?
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: === gst-launch-1.0[9814]: CameraProvider initialized (0x7f70c633a0)SCF: Error BadValue: Nv)
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon: E/ libnvphs:socket: Error[2]: socket connection /var/lib/nvphs/nvphsd.ctl to PHS failed: No suchy
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon: D/ libnvphs:socket: Warning: connecting to Power Hinting Service failed. Is PHS running?
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon: E/ libnvphs: Error: NvPHSSendThroughputHints[usecase=camera, hint=MinCPU, value=4294967295, timed
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: NvCameraIspConfigFileLoad: type = 0x75 Config file “sensor.cfg” Line 220: Error: Invalid i"
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: NvCameraIspUnpackingBlob 156: Blob: Wrong magic number!
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: CAM: serial no file already exists, skips storing againNvCameraIspConfigFileLoad: type = 0"
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: NvCameraIspUnpackingBlob 156: Blob: Wrong magic number!
Mar 1 10:26:12 tegra-ubuntu nvargus-daemon[7269]: CAM: serial no file already exists, skips storing againLSC: LSC surface is not based on fu!
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, functio)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, functio)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, functio)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, functio)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, functio)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: === gst-launch-1.0[9814]: Connection closed (7F75B681D0)=== gst-launch-1.0[9814]: WARNING:)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, functio)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error InvalidState: 5 buffers still pending during EGLStreamProducer destruction (pro)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, functio)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error InvalidState: 4 buffers still pending during EGLStreamProducer destruction (pro)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, functio)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: === gst-launch-1.0[9814]: WARNING: Cleaning up 3 outstanding stream settings…=== gst-lau)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error BadParameter: Buffer is not pending (in src/services/gl/EGLStreamProducer.cpp, )
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error BadParameter: (propagating from src/services/gl/EGLStreamProducer.cpp, functio)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error BadParameter: (propagating from src/components/CaptureContainerImpl.cpp, funct)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error BadParameter: (propagating from src/components/stages/BufferReturnStage.h, fun)
Mar 1 10:37:12 tegra-ubuntu nvargus-daemon[7269]: SCF: Error BadParameter: Sending critical error event (in src/api/Session.cpp, function se)
Mar 1 10:38:13 tegra-ubuntu systemd[1]: nvargus-daemon.service: Main process exited, code=killed, status=11/SEGV
Mar 1 10:38:13 tegra-ubuntu systemd[1]: nvargus-daemon.service: Failed with result ‘signal’.
Mar 1 10:38:14 tegra-ubuntu systemd[1]: nvargus-daemon.service: Service hold-off time over, scheduling restart.
Mar 1 10:38:14 tegra-ubuntu systemd[1]: nvargus-daemon.service: Scheduled restart job, restart counter is at 1.

can you please update on this

hello anupam.kumar,

it shows error that there’s no cameras available.
had you check you’re able to access the camera stream with v4l2 standard control?
thanks

with v4l2 utility it is working fine.

when i am killing nvargus deamon and again restarting the gst-launch ,it is working fine…can you please tell what could be the issue

hello anupam.kumar,

BTW, it seems you’re having v4l2src to access the camera stream.
may I know what’s the sensor type it is? could you please also contact with Jetson Camera Partners for camera solutions.
thanks