(nvarguscamerasrc) Ungraceful error when trying to open a onboard camera when it is already opened

Hi,
I am trying to open an onboard camera on TX2 that is already being used by an application.
I got the below error and control is not returning.

Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gstnvarguscamera/gstnvarguscamerasrc.cpp, execute:532: Failed to create a capture session

If the camera is being used by another process (or application) the GStreamer should gracefully error out and provide the actual diagnosis information.

Please, someone, help here.

Thanks,
Ramakrishna

You should be able see below message from the /var/log/syslog

CameraProvider initialized (0x7e9c031eb0)(Argus) Error AlreadyAllocated: Device 0 (of 1) is in use

Hi ShaneCCC,

How can it be a graceful exit from the current process?. Showing this error in the command line and exiting the process gracefully helps the users to diagnose the problem correctly. Also the application is getting crashed.

A resolution to this issue can help to write better software.

Thanks,
Ram

@ram469
It’s could be a huge change for this design. However you can run the argus_daemon manually in console with supervisor mode to get the log from the daemon or use argus to implement the software to avoid this kind of problem.