Jetson Nano with IMX477 randomly started giving error

So I have been using an arducam imx 477 for a few days following this guide (IMX477 - PTZ Camera - Arducam). I have been able to use example codes (e.g without any issue. However I came this morning, booted my Nano and now I can’t run the exact same code I was last week.

Error code:

(Argus) Error InvalidState: Argus client is exiting with 2 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 357)
WARNING Argus: 6 client objects still exist during shutdown:
547436297280 (0x7f5c000ee0)
547441104704 (0x7f5c000c70)
547441104864 (0x7f5c001500)
547441105056 (0x7f5c0013f0)
547441110160 (0x7f5c0031d0)
547441118184 (0x7f5c0032e8)
(torch) user@r1:~/MIPI_Camera/Jetson/

I can see the camera when I use nvgstcapture or when I don’t use a virtualenv, its weird.

Don’t know what kind of virtualenv.
Maybe remove and install again to try.


From your description, I know that you have used the camera before and it worked normally.
Did you check the connection and the GPIO? If you are sure that all the connections are normal, you can replug the camera or reinstall the Python bus for the camera.
Besides, you can use dmesg | grep -E “imx477|imx219|arducam” to check the driver of the camera. Please feel free to let us know.
Best regards,
Arducam Support

I re-installed the Nano OS today from scratch to remove any uncertainty. Here is what works and don’t so:

I first had to modify my .bashrc file to fix the missing cuda problem (noted here), I was then able to verify that cuda was now working by checking nvcc --version.

I then passed onto the camera module (IMX477) and followed the guide here. Checked and everything was working, camera was available and the controls (PTZ) were all functional.

However I need to be able to use the camera in an environment with other libraries hence the virtualenv, I then had build opencv from source (used this) since gstreamer was not by default using pip, I also enabled GTK with QT. Then whenever I try to use the same demo code from earlier It gives that error code. I used the same opencv version (4.1.1) from when using no env.

Fully re-installed the system, same problem. Works outside an environment but whenever I use it in one it gives me that error.