NVIDIA-AI-IOT / argus_camera

Simple Python / C++ interface to CSI camera connected to NVIDIA Jetson.
BSD 3-Clause "New" or "Revised" License
82 stars 39 forks source link

Error when instantiating the camera #4

Open ncant opened 5 years ago

ncant commented 5 years ago

Hello,

I have the following error when doing camera = ArgusCamera():

NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: No module data found
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16---- imager: Found override file [/var/nvidia/nvcam/settings/camera_overrides.isp]. ----
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16---- imager: Found override file [/var/nvidia/nvcam/settings/camera_overrides.isp]. ----
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16---- imager: Found override file [/var/nvidia/nvcam/settings/camera_overrides.isp]. ----
(Argus) Error NotSupported: Failed to initialize EGLDisplay (in src/eglutils/EGLUtils.cpp, function getDefaultDisplay(), line 75)
(Argus) Error NotSupported: Failed to get default display (in src/api/OutputStreamImpl.cpp, function initialize(), line 82)
(Argus) Error NotSupported:  (propagating from src/api/CaptureSessionImpl.cpp, function createOutputStreamInternal(), line 618)
(Argus) Error InvalidState: Unknown stream deleted. (in src/api/CaptureSessionImpl.cpp, function outputStreamDeleted(), line 650)

Any idea? I run the code on TX2, argus 28.2 (v0.96).

LMSAas commented 5 years ago

Does the argus_camera software that comes with arguslib work as expected?

ncant commented 5 years ago

Yes, the argus samples are working fine (though I have difficulties launching them over ssh, but that is another topic...).

ncant commented 5 years ago

Just pinging the issue as it is blocking for us. Does no one else get this error? I start from a fresh installation (jetpack 3.2) and get this immediately.

For information, I also tried to embed the one_shot argus sample and I have the same error. Is there a missing include for swig?

LMSAas commented 5 years ago

I dont get the issue. I think I'm using jetpack 3.3.

ncant commented 5 years ago

Unfortunately we are stuck with this version as we are using an IMX274 from LI, which requires it. Could you point me to some direction for resolving this? I have the feeling that a library or something is missing when compiling or when using swig, but I don't know how to investigate it.

ncant commented 5 years ago

I could go a bit further by modifying the extra_compile_args in the setup.py and I can instantiate a camera and read an image. However, I now have the following error on exit:

(NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/buffermanager/BufferManager.cpp:211) (in Mutex.cpp, function lock(), line 79)
SCF: Error BadParameter: invalid RequirementsId (in src/services/buffermanager/BufferManager.cpp, function idToPool(), line 171)
SCF: Error BadParameter:  (propagating from src/services/buffermanager/BufferManager.cpp, function release(), line 212)
(NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
SCF: Error BadParameter:  (propagating from src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 409)
SCF: Error BadParameter:  (propagating from src/components/stages/BufferReturnStage.h, function doExecute(), line 43)
SCF: Error BadParameter: Sending critical error event (in src/api/Session.cpp, function sendErrorEvent(), line 992)
(NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/buffermanager/BufferManager.cpp:211) (in Mutex.cpp, function lock(), line 79)
SCF: Error BadParameter: invalid RequirementsId (in src/services/buffermanager/BufferManager.cpp, function idToPool(), line 171)
SCF: Error BadParameter:  (propagating from src/services/buffermanager/BufferManager.cpp, function release(), line 212)
(NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
SCF: Error BadParameter:  (propagating from src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 409)
SCF: Error BadParameter:  (propagating from src/components/CaptureContainerImpl.cpp, function returnAllBuffers(), line 539)
(NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/core_scf/src/services/buffermanager/BufferManager.cpp:211) (in Mutex.cpp, function lock(), line 79)
SCF: Error BadParameter: invalid RequirementsId (in src/services/buffermanager/BufferManager.cpp, function idToPool(), line 171)
SCF: Error BadParameter:  (propagating from src/services/buffermanager/BufferManager.cpp, function release(), line 212)
(NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
SCF: Error BadParameter:  (propagating from src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 409)
SCF: Error BadParameter:  (propagating from src/components/CaptureContainerImpl.cpp, function returnAllBuffers(), line 539)
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 689)
(Argus) Error InvalidState:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 689)
(Argus) Error InvalidState:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 689)
(Argus) Error InvalidState:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 689)
(Argus) Error InvalidState:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 689)
(Argus) Error InvalidState:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)

How can I safely dispose of the camera?

Stephen-robot commented 3 years ago

Screenshot from 2021-07-12 15-17-14 hi,everyone, i compile argus samples successfully, a camera producted by other company rather than nvidia. The program result as picture show, so that libargus only support camera with nvidia driver?