GST Argus End of Stream

I have a Jetson Nano running Jetpack 4.5 from USB with a picam2. I’m running a deepstream pipeline using nvargus that is based on the python demo deepstream-test1. Prior to running my application I always restart the nvargus-daemon service. However, my application runs into an End-of-Stream and shuts down unexpectedly. Sometimes it will only run for a couple of minutes, and sometimes it runs for about half an hour. I’m not sure if this a hardware problem, an nvargus issue, or something about how I’ve set up my queues. Here is an excerpt from my logs:

  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: Setup Complete, Starting captures for 0 seconds
  GST_ARGUS: Starting repeat capture requests.
  CONSUMER: Producer has connected; continuing.
  2021-04-06 11:20:10.270369: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully 
  opened dynamic library libcublas.so.10
  2021-04-06 11:20:12.481668: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudnn.so.8
  04-06:11:20:53,445 INFO     [mqtt_client.py:86] Occupany published to AWS
  04-06:11:20:57,732 INFO     [mqtt_client.py:86] Occupany published to AWS
  04-06:11:20:58,816 INFO     [mqtt_client.py:86] Occupany published to AWS
  04-06:11:21:00,867 INFO     [mqtt_client.py:86] Occupany published to AWS
  04-06:11:21:01,889 INFO     [mqtt_client.py:86] Occupany published to AWS
  CONSUMER: Done Success
  04-06:11:21:03,878 INFO     [mqtt_client.py:86] Occupany published to AWS
  04-06:11:21:05,847 INFO     [mqtt_client.py:86] Occupany published to AWS
  04-06:11:21:07,815 INFO     [mqtt_client.py:86] Occupany published to AWS
  04-06:11:21:09,796 INFO     [mqtt_client.py:86] Occupany published to AWS
  04-06:11:21:11,752 INFO     [mqtt_client.py:86] Occupany published to AWS
  04-06:11:21:13,660 INFO     [mqtt_client.py:86] Occupany published to AWS
  End-of-stream
  04-06:11:21:13,692 INFO     [main.py:716] Cleaning up
  (Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
  (Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 87)
  GST_ARGUS: Cleaning up
  (Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
  (Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 87)
  GST_ARGUS: Done Success
  04-06:11:23:24,917 INFO     [main.py:718] quiting loop
  04-06:11:23:24,917 INFO     [main.py:720] Done cleaning up.
  04-06:11:23:24,918 INFO     [main.py:721] exiting from cleanup
  (Argus) Error InvalidState: Argus client is exiting with 2 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 357)

Any guidance on how to trouble shoot this is much appreciated. I can post relevant excerpts from my code if needed.

Hi,
It looks like the camera source is not stable. Please check if you also hit the issue in gst-launch-1.0 command:

gst-launch-1.0 nvarguscamerasrc ! nvegltransform ! nveglglessink

And does picam2 means Pi camera v2? Would like to confirm which camera you use.