[Jetson Nano + Sony IMX219] (Argus) Error BadParameter: Unable to get fd (in src/eglstream/ImageImpl.cpp, function copyToNvBuffer(), line 498)

Hello everyone!

I am developing a GStreamer application on QT platform.

  • Device : Jetson Nano (API version 32.3)
  • Camera Module : Arducam 8MP Sony IMX219
  • GStreamer : “nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1 ! nvvidconv flip-method=0 ! video/x-raw, width=(int)3264, height=(int)2464, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink”
    from (https://github.com/JetsonHacksNano/CSI-Camera/blob/master/simple_camera.cpp)

My problem is that show following error after about 10 minutes:

  • (Argus) Error BadParameter: Unable to get fd (in src/eglstream/ImageImpl.cpp, function copyToNvBuffer(), line 498)
    Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:476 IImageNativeBuffer not supported by Image.
    Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:177 (propagating)

I already applied related patch from DaneLLL. But, it’s not working.

Any help is much appreciated!

Hi,
It is more like instability of the sensor. Please check if you can run

gst-launch-1.0 nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1 ! ! nvvidconv flip-method=0 ! video/x-raw, width=(int)3264, height=(int)2464, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! fakesink

for more than 10 minutes without seeing the error.

This may not help since you don’t use nvjpegenc.

First of all, thanks for your quick reply :)

But, it’s not working.
It just shows “segmentation fault” as follow:
“nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1 ! ! nvvidconv flip-method=0 ! video/x-raw, width=(int)3264, height=(int)2464, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! fakesink”
nvbuf_utils: Could not get EGL display connection
[ WARN:0] OpenCV | GStreamer warning: Error opening bin: syntax error
[ WARN:0] OpenCV | GStreamer warning: GStreamer: pipeline have not been created
Segmentation fault (core dumped)

Please, let me know how is different appsink and fakesink.

Thanks,

It show follow errors(/var/log/syslog) when occurred error:

Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error Timeout: (propagating from src/components/CaptureContainerImpl.cpp, function assignAllBuffersFromStream(), line 230)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error Timeout: (propagating from src/components/stages/CCDataSetupStage.cpp, function doHandleRequest(), line 68)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error Timeout: (propagating from src/components/stages/OrderedStage.cpp, function doExecute(), line 158)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error Timeout: Sending critical error event (in src/api/Session.cpp, function sendErrorEvent(), line 990)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Jun 2 21:19:05 LH-S100 nvargus-daemon[8207]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)

And, I found some errors about nvargus-daemo in the /var/log/syslog file when start gstreamer.

Jun 2 21:02:18 LH-S100 nvargus-daemon[4989]: === NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections…=== P_LH_S100[7928]: Connection established (7FA32A91D0)OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
Jun 2 21:02:19 LH-S100 nvargus-daemon[4989]: OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
Jun 2 21:02:19 LH-S100 nvargus-daemon[4989]: ---- imager: No override file found. ----
Jun 2 21:02:19 LH-S100 nvargus-daemon[4989]: LSC: LSC surface is not based on full res!
Jun 2 21:02:19 LH-S100 nvargus-daemon[4989]: === P_LH_S100[7928]: CameraProvider initialized (0x7f9c835120)LSC: LSC surface is not based on full res!
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: === P_LH_S100[7928]: Connection closed (7FA32A91D0)=== P_LH_S100[7928]: WARNING: CameraProvider was not destroyed before client connection terminated.=== P_LH_S100[7928]: The client may have abnormally terminated. Destroying CameraProvider…=== P_LH_S100[7928]: CameraProvider destroyed (0x7f9c835120)=== P_LH_S100[7928]: WARNING: Cleaning up 1 outstanding requests…=== P_LH_S100[7928]: WARNING: Cleaning up 1 outstanding streams…SCF: Error InvalidState: 5 buffers still pending during EGLStreamProducer destruction (propagating from src/services/gl/EGLStreamProducer.cpp, function freeBuffers(), line 305)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, function ~EGLStreamProducer(), line 50)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: === P_LH_S100[7928]: WARNING: Cleaning up 1 outstanding stream settings…=== P_LH_S100[7928]: WARNING: Cleaning up 1 outstanding sessions…(NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:497) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: SCF: Error BadParameter: Buffer is not pending (in src/services/gl/EGLStreamProducer.cpp, function presentBufferInternal(), line 501)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: SCF: Error BadParameter: (propagating from src/services/gl/EGLStreamProducer.cpp, function presentBuffer(), line 486)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: SCF: Error BadParameter: (propagating from src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 447)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: SCF: Error BadParameter: (propagating from src/components/stages/BufferReturnStage.h, function doExecute(), line 43)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: SCF: Error BadParameter: Sending critical error event (in src/api/Session.cpp, function sendErrorEvent(), line 990)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:497) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:533) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: SCF: Error BadParameter: (propagating from src/services/gl/EGLStreamProducer.cpp, function presentBufferInternal(), line 538)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:551) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:497) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:533) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: SCF: Error BadParameter: (propagating from src/services/gl/EGLStreamProducer.cpp, function presentBufferInternal(), line 538)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:551) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:497) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:533) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: SCF: Error BadParameter: (propagating from src/services/gl/EGLStreamProducer.cpp, function presentBufferInternal(), line 538)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:551) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:27 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:28 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:497) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:28 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:28 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:533) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:28 LH-S100 nvargus-daemon[4989]: SCF: Error BadParameter: (propagating from src/services/gl/EGLStreamProducer.cpp, function presentBufferInternal(), line 538)
Jun 2 21:02:28 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:28 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/gl/EGLStreamProducer.cpp:551) (in Mutex.cpp, function lock(), line 79)
Jun 2 21:02:28 LH-S100 nvargus-daemon[4989]: (NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
Jun 2 21:02:32 LH-S100 nvargus-daemon[4989]: waitForIdleLocked remaining request 234
Jun 2 21:02:32 LH-S100 nvargus-daemon[4989]: waitForIdleLocked remaining request 233
Jun 2 21:02:32 LH-S100 nvargus-daemon[4989]: waitForIdleLocked remaining request 232
Jun 2 21:02:32 LH-S100 nvargus-daemon[4989]: waitForIdleLocked remaining request 231
Jun 2 21:02:32 LH-S100 nvargus-daemon[4989]: SCF: Error Timeout: waitForIdle() timed out (in src/api/Session.cpp, function waitForIdleLocked(), line 920)
Jun 2 21:02:32 LH-S100 nvargus-daemon[4989]: (Argus) Error Timeout: (propagating from src/api/CaptureSessionImpl.cpp, function destroy(), line 166)
Jun 2 21:02:34 LH-S100 pulseaudio[8176]: Daemon already running.
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: waitForIdleLocked remaining request 234
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: waitForIdleLocked remaining request 233
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: waitForIdleLocked remaining request 232
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: waitForIdleLocked remaining request 231
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: SCF: Error Timeout: waitForIdle() timed out (in src/api/Session.cpp, function waitForIdleLocked(), line 920)
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: SCF: Error Timeout: (propagating from src/api/Session.cpp, function abortCaptures(), line 886)
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: SCF: Error Timeout: (propagating from src/api/Session.cpp, function shutdown(), line 400)
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: PowerServiceCore:handleRequests: timePassed = 5090
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: SCF: Error Timeout: (propagating from src/api/Session.cpp, function shutdown(), line 500)
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: SCF: Error Timeout: (propagating from src/api/CameraDriver.cpp, function deleteSession(), line 619)
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: (Argus) Error Timeout: (propagating from src/api/CaptureSessionImpl.cpp, function destroy(), line 191)
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: === P_LH_S100[7928]: NOTE: Destroy all libargus objects before destroying the CameraProvider to avoid these warnings.FiberScheduler: 4 fibers still exist!
Jun 2 21:02:37 LH-S100 nvargus-daemon[4989]: === P_LH_S100[7928]: Connection cleaned up (7FA32A91D0)free(): invalid size
Jun 2 21:02:38 LH-S100 systemd[1]: nvargus-daemon.service: Main process exited, code=killed, status=6/ABRT
Jun 2 21:02:38 LH-S100 systemd[1]: nvargus-daemon.service: Failed with result ‘signal’.
Jun 2 21:02:38 LH-S100 systemd[1]: nvargus-daemon.service: Service hold-off time over, scheduling restart.
Jun 2 21:02:38 LH-S100 systemd[1]: nvargus-daemon.service: Scheduled restart job, restart counter is at 1.
Jun 2 21:02:38 LH-S100 systemd[1]: Stopped Argus daemon.
Jun 2 21:02:38 LH-S100 systemd[1]: Started Argus daemon.
Jun 2 21:02:47 LH-S100 nvargus-daemon[8207]: === NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections…=== P_LH_S100[8253]: Connection established (7F7A7F01D0)OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
Jun 2 21:02:47 LH-S100 nvargus-daemon[8207]: OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
Jun 2 21:02:47 LH-S100 nvargus-daemon[8207]: ---- imager: No override file found. ----
Jun 2 21:02:47 LH-S100 nvargus-daemon[8207]: LSC: LSC surface is not based on full res!
Jun 2 21:02:48 LH-S100 nvargus-daemon[8207]: === P_LH_S100[8253]: CameraProvider initialized (0x7f74836010)LSC: LSC surface is not based on full res!

Are you sure that your sensor supports this mode @21 fps ?

sudo apt-get install v4l-utils
v4l2-ctl -d0 --list-formats-ext

Hi, Honey_Patouceul

I’m using the frame rate from GST_ARGUS info shown when start the “nvarguscamerasrc …”.

GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3264 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 3264 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1280 x 720 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 0
Output Stream W = 3264 H = 2464
seconds to Run = 0
Frame Rate = 21.000000
GST_ARGUS: PowerService: requested_clock_Hz=36945216
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
[ WARN:0] OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1

Thanks

v4l2-ctl -d0 --list-formats-ext

ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘RG10’
Name : 10-bit Bayer RGRG/GBGB
Size: Discrete 3264x2464
Interval: Discrete 0.048s (21.000 fps)
Size: Discrete 3264x1848
Interval: Discrete 0.036s (28.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.017s (60.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.017s (60.000 fps)

Sorry, but it is unclear to me what works or not. Do you get this error as starting the pipeline or after a few minutes ?

I may not be able to advise much further, but for the sake of your case’s understanding you may tell more.
Please also tell the context where you’re using this pipeline.

Hi,
Please make sure you run the commad through gst-launch-1.0

gst-launch-1.0 nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1 ! ! nvvidconv flip-method=0 ! video/x-raw, width=(int)3264, height=(int)2464, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! fakesink

If segment fault is still present, please try

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1' ! ! nvvidconv flip-method=0 ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080' ! nvoverlaysink

I’v tried both command through gst-launch-1.0 (Version 1.14.5)

First command shows syntax error as follow:

gst-launch-1.0 nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1 ! ! nvvidconv flip-method=0 ! video/x-raw, width=(int)3264, height=(int)2464, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! fakesink
-bash: syntax error near unexpected token `('

And, second log is as follow:

gst-launch-1.0 nvarguscamerasrc ! ‘video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1’ ! ! nvvidconv flip-method=0 ! ‘video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080’ ! nvoverlaysink
nvbuf_utils: Could not get EGL display connection
WARNING: erroneous pipeline: syntax error

I don’w know why these command doesn’t work on my board through gst-launch-1.0.
I was only using this command on QT Application using ‘appsink’.

Thanks.

Hi,

The errir indicates certain version mismatch in your system. Suggest you do clean installation through SDKManager.