How to recover camera images without restart nvargus-daemon

R35.4.1

  1. I have a serdes with four image inputs(vc 0-3).
  2. use nvgst-lanch.1.0 --sensor-id= [0-3] cam play video for sensor

At this point, if one of the camera outputs is interrupted,after the hardware is ready I can only resume playback of that one by systemctl restart nvagrs-deamon,

But this affects the other three outputs. Can I restore one display without affecting the others?

Try the sample userAutoExposure of MAPI. This sample code implement error handling to terminal the APP to avoid daemon crash.

The above approach does not circumvent the problem of

My scenario is: accessing 4 channels imx390, when 1 channel of csi (vc=0) signal stops outputting,dmesg log as below: (nvagus-deamon with Environment=“enableCamInfiniteTimeout=1”)

[49753.086420] host1x 13e40000.host1x: ViCsiHw frameCo: syncpoint id 42 (progress) stuck waiting 10985647, timeout=-1
[49753.086479] host1x 13e40000.host1x: ViCsiHw frameSt: syncpoint id 42 (progress) stuck waiting 10985644, timeout=-1
[49753.097108] ---- syncpts ----
[49753.097116] id 1 (nvkms-fence) min 2984134 max 0 refs 1 (previous client : 15810000.se)
[49753.097136] id 16 (nvkms-fence) min 2589461 max 0 refs 1 (previous client : )
[49753.107830] id 20 (ga10b_511) min 55018711 max 0 refs 1 (previous client : )
[49753.107845] id 21 (ga10b_510) min 11 max 0 refs 1 (previous client : )
[49753.107856] id 22 (ga10b_509) min 12948445 max 12 refs 1 (previous client : ga10b_509)
[49753.107862] id 23 (progress) min 16956320 max 16953923 refs 1 (previous client : progress)
[49753.107868] id 24 (stats_progress) min 50582269 max 50574505 refs 1 (previous client : stats_progress)
[49753.107887] id 42 (progress) min 10985643 max 10985643 refs 1 (previous client : progress)
[49753.107898] id 43 (embdata) min 1420833 max 1420833 refs 1 (previous client : embdata)
[49753.107902] id 44 (nvargus-daemon) min 33993 max 33993 refs 2 (previous client : argus_demosaicO)
[49753.107906] id 46 (ga10b_505) min 5 max 3 refs 1 (previous client : argus_demosaicO)
[49753.107936] ---- syncpts ----

[49753.108758] id 1 (nvkms-fence) min 2984135 max 0 refs 1 (previous client : 15810000.se)
[49753.108776] id 16 (nvkms-fence) min 2589461 max 0 refs 1 (previous client : )
[49753.108784] id 20 (ga10b_511) min 55018711 max 0 refs 1 (previous client : )
[49753.108789] id 21 (ga10b_510) min 11 max 0 refs 1 (previous client : )
[49753.108794] id 22 (ga10b_509) min 12948445 max 12 refs 1 (previous client : ga10b_509)
[49753.108798] id 23 (progress) min 16956320 max 16953923 refs 1 (previous client : progress)
[49753.108803] id 24 (stats_progress) min 50582269 max 50574505 refs 1 (previous client : stats_progress)
[49753.108824] id 42 (progress) min 10985643 max 10985643 refs 1 (previous client : progress)
[49753.108829] id 43 (embdata) min 1420833 max 1420833 refs 1 (previous client : embdata)
[49753.108834] id 44 (nvargus-daemon) min 33993 max 33993 refs 2 (previous client : argus_demosaicO)
[49753.108840] id 46 (ga10b_505) min 5 max 3 refs 1 (previous client : argus_demosaicO)


Re-use nvgstcapture/nvarus_demo[useAutoExpure…] it is not possible to open the other cameras (vc=1~3).

When imx390 (vc=0), when the device is restored, it can’t be reopened, only systemctl restart nvagus-demaon after four channels can be opened normally.

At this point, if I try to use v4l2-ctl:

yt@yt-desktop:~/demo$ v4l2-ctl -d0 --set-ctrl bypass_mode=0 --stream-mmap --stream-to=./10.raw --stream-count=100
VIDIOC_S_EXT_CTRLS: failed: Device or resource busy
bypass_mode: Device or resource busy
                VIDIOC_REQBUFS returned -1 (Device or resource busy)

if without "#Environment=“enableCamInfiniteTimeout=1"”

Argus::Status status; Argus::UniqueObj<Argus::CaptureSession> captureSession( iCameraProvider->createCaptureSession(device, &status)); EXIT_IF_NOT_OK(status, "Failed to create capture session");

journalctl -u nvargus-daemon.service

log

6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module3
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: NvPclHwGetModuleList: No module data found
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: NvPclHwGetModuleList: No module data found
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: NvPclHwGetModuleList: No module data found
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: NvPclHwGetModuleList: No module data found
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: ---- imager: No override file found. ----
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: LSC: LSC surface is not based on full res!
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: ---- imager: No override file found. ----
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: LSC: LSC surface is not based on full res!
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: ---- imager: No override file found. ----
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: LSC: LSC surface is not based on full res!
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: ---- imager: No override file found. ----
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: LSC: LSC surface is not based on full res!
6月 18 10:51:46 yt-desktop nvargus-daemon[16811]: === argus_userautoexposure[16936]: CameraProvider initialized (0xffff7c2d0fa0)LSC: LSC surface is not based on full res!
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]: SCF: Error Timeout: Sending critical error event for Session 4
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]:  (in src/api/Session.cpp, function sendErrorEvent(), line 1039)
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]: SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 96 draining session frameStart e>
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]:  (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 535)
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]: SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 97 draining session frameStart e>
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]:  (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 535)
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]: SCF: Error InvalidState: Sensor 4 already in same state
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]:  (in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]: SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 94 draining session frameEnd eve>
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]:  (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 638)
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]: PowerServiceCore:handleRequests: timePassed = 6126
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]: Module_id 30 Severity 2 : (fusa) Error: Timeout  propagating from:/capture/src/fusaViHandler.cpp 777
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]: SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), lin>
6月 18 10:51:57 yt-desktop nvargus-daemon[16811]: SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), lin>
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]: Module_id 30 Severity 2 : (fusa) Error: Timeout  propagating from:/capture/src/fusaViHandler.cpp 777
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]: SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 95 draining session frameEnd eve>
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]:  (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 638)
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]: SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), lin>
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]: SCF: Error InvalidState: Sensor 4 already in same state
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]:  (in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]: SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 96 draining session frameEnd eve>
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]:  (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 638)
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]: SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), lin>
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]: SCF: Error InvalidState: Sensor 4 already in same state
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]:  (in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]: SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 97 draining session frameEnd eve>
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]:  (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 638)
6月 18 10:52:03 yt-desktop nvargus-daemon[16811]: SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), lin>
6月 18 10:52:19 yt-desktop nvargus-daemon[16811]: === argus_userautoexposure[17004]: Connection established (FFFF72175900)=== argus_userautoexposure[17004]: CameraProvider ini>
yt@yt-desktop:~/demo$ journalctl -u nvargus-daemon.service ^C

Can’t use enableCamInfiniteTimeout=1 for error handle.
If use the useAutoExposure sample it should terminal while receiving error event then reopen the camera should be without problem.

Thanks

use userAutoWhiteBalance demo, when stop csi stream

log
Unhandled hotplug event,
I didn’t find the source code for this. How do I need to subscribe to this event?

Still experiencing the inability to open it again
console log

yt@yt-desktop:~/jetson_multimedia_api/argus/build/samples/userAutoWhiteBalance$ ./argus_userautowhitebalance -d1 -r 0,0,768,432 -f200
Executing Argus Sample: argus_userautowhitebalance
Argus Version: 0.99.3.3 (multi-process)
PREVIEW CONSUMER: Creating OpenGL context.
PREVIEW CONSUMER: Connecting to EGLStream(s).
PREVIEW CONSUMER: Connected to stream(s).
PREVIEW CONSUMER: Waiting until producer(s) connect...
PREVIEW CONSUMER: Producer(s) connected; continuing.
PREVIEW CONSUMER: Acquired frame 1. Rendering.
Histogram Intensity: r:108.309 gO:126.444 gE:126.299 b:79.839   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.584
PREVIEW CONSUMER: Acquired frame 2. Rendering.
Histogram Intensity: r:108.330 gO:126.473 gE:126.328 b:79.865   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.584
PREVIEW CONSUMER: Acquired frame 3. Rendering.
Histogram Intensity: r:108.339 gO:126.500 gE:126.359 b:79.891   WBGains: r:1.168 gO:1.000 gE:1.001 b:1.583
PREVIEW CONSUMER: Acquired frame 4. Rendering.
Histogram Intensity: r:108.366 gO:126.533 gE:126.394 b:79.927   WBGains: r:1.168 gO:1.000 gE:1.001 b:1.583
PREVIEW CONSUMER: Acquired frame 5. Rendering.
Histogram Intensity: r:108.373 gO:126.544 gE:126.390 b:79.954   WBGains: r:1.168 gO:1.000 gE:1.001 b:1.583
PREVIEW CONSUMER: Acquired frame 6. Rendering.
Histogram Intensity: r:108.348 gO:126.493 gE:126.355 b:79.938   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 7. Rendering.
Histogram Intensity: r:108.321 gO:126.450 gE:126.301 b:79.917   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 8. Rendering.
Histogram Intensity: r:108.305 gO:126.434 gE:126.288 b:79.908   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 9. Rendering.
Histogram Intensity: r:108.295 gO:126.400 gE:126.254 b:79.897   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 10. Rendering.
Histogram Intensity: r:108.292 gO:126.402 gE:126.241 b:79.890   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 11. Rendering.
Histogram Intensity: r:108.286 gO:126.392 gE:126.229 b:79.884   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 12. Rendering.
Histogram Intensity: r:108.302 gO:126.389 gE:126.237 b:79.890   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 13. Rendering.
Histogram Intensity: r:108.293 gO:126.391 gE:126.239 b:79.889   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 14. Rendering.
Histogram Intensity: r:108.296 gO:126.384 gE:126.228 b:79.886   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 15. Rendering.
Histogram Intensity: r:108.305 gO:126.388 gE:126.238 b:79.892   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 16. Rendering.
Histogram Intensity: r:108.314 gO:126.382 gE:126.237 b:79.898   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 17. Rendering.
Histogram Intensity: r:108.317 gO:126.408 gE:126.241 b:79.907   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 18. Rendering.
Histogram Intensity: r:108.323 gO:126.411 gE:126.252 b:79.921   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 19. Rendering.
Histogram Intensity: r:108.338 gO:126.413 gE:126.253 b:79.935   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.581
PREVIEW CONSUMER: Acquired frame 20. Rendering.
Histogram Intensity: r:108.387 gO:126.453 gE:126.287 b:79.995   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.581
PREVIEW CONSUMER: Acquired frame 21. Rendering.
Histogram Intensity: r:108.397 gO:126.444 gE:126.300 b:80.018   WBGains: r:1.166 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 22. Rendering.
Histogram Intensity: r:108.410 gO:126.477 gE:126.304 b:80.025   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 23. Rendering.
Histogram Intensity: r:108.418 gO:126.473 gE:126.313 b:80.041   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 24. Rendering.
Histogram Intensity: r:108.420 gO:126.478 gE:126.318 b:80.058   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 25. Rendering.
Histogram Intensity: r:108.420 gO:126.489 gE:126.317 b:80.072   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 26. Rendering.
Histogram Intensity: r:108.419 gO:126.472 gE:126.310 b:80.073   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.579
PREVIEW CONSUMER: Acquired frame 27. Rendering.
Histogram Intensity: r:108.393 gO:126.464 gE:126.299 b:80.062   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 28. Rendering.
Histogram Intensity: r:108.378 gO:126.452 gE:126.304 b:80.042   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 29. Rendering.
Histogram Intensity: r:108.380 gO:126.448 gE:126.287 b:80.042   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 30. Rendering.
Histogram Intensity: r:108.386 gO:126.463 gE:126.298 b:80.046   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 31. Rendering.
Histogram Intensity: r:108.394 gO:126.475 gE:126.312 b:80.055   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 32. Rendering.
Histogram Intensity: r:108.406 gO:126.482 gE:126.316 b:80.055   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 33. Rendering.
Histogram Intensity: r:108.411 gO:126.494 gE:126.333 b:80.054   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 34. Rendering.
Histogram Intensity: r:108.412 gO:126.478 gE:126.322 b:80.039   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.580
PREVIEW CONSUMER: Acquired frame 35. Rendering.
Histogram Intensity: r:108.421 gO:126.511 gE:126.354 b:80.027   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.581
PREVIEW CONSUMER: Acquired frame 36. Rendering.
Histogram Intensity: r:108.378 gO:126.471 gE:126.298 b:79.984   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.581
PREVIEW CONSUMER: Acquired frame 37. Rendering.
Histogram Intensity: r:108.259 gO:126.336 gE:126.165 b:79.895   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.581
PREVIEW CONSUMER: Acquired frame 38. Rendering.
Histogram Intensity: r:108.196 gO:126.240 gE:126.060 b:79.820   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 39. Rendering.
Histogram Intensity: r:108.160 gO:126.186 gE:126.003 b:79.779   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 40. Rendering.
Histogram Intensity: r:108.127 gO:126.159 gE:125.971 b:79.732   WBGains: r:1.167 gO:1.000 gE:1.001 b:1.582
PREVIEW CONSUMER: Acquired frame 41. Rendering.
Histogram Intensity: r:107.557 gO:125.736 gE:125.540 b:79.219   WBGains: r:1.169 gO:1.000 gE:1.002 b:1.587
PREVIEW CONSUMER: Acquired frame 42. Rendering.
Histogram Intensity: r:105.429 gO:124.416 gE:124.216 b:76.880   WBGains: r:1.180 gO:1.000 gE:1.002 b:1.618
PREVIEW CONSUMER: Acquired frame 43. Rendering.
Histogram Intensity: r:102.124 gO:122.845 gE:122.591 b:73.489   WBGains: r:1.203 gO:1.000 gE:1.002 b:1.672
PREVIEW CONSUMER: Acquired frame 44. Rendering.
Histogram Intensity: r:94.182 gO:119.964 gE:119.538 b:67.055   WBGains: r:1.274 gO:1.000 gE:1.004 b:1.789
PREVIEW CONSUMER: Acquired frame 45. Rendering.
Histogram Intensity: r:87.932 gO:116.462 gE:115.932 b:62.829   WBGains: r:1.324 gO:1.000 gE:1.005 b:1.854
PREVIEW CONSUMER: Acquired frame 46. Rendering.
Histogram Intensity: r:100.304 gO:123.459 gE:123.138 b:71.700   WBGains: r:1.231 gO:1.000 gE:1.003 b:1.722
PREVIEW CONSUMER: Acquired frame 47. Rendering.
Histogram Intensity: r:107.609 gO:125.936 gE:125.745 b:78.482   WBGains: r:1.170 gO:1.000 gE:1.002 b:1.605
PREVIEW CONSUMER: Acquired frame 48. Rendering.
Histogram Intensity: r:107.903 gO:126.038 gE:125.870 b:79.037   WBGains: r:1.168 gO:1.000 gE:1.001 b:1.595
PREVIEW CONSUMER: Acquired frame 49. Rendering.
Histogram Intensity: r:107.401 gO:125.817 gE:125.643 b:78.599   WBGains: r:1.171 gO:1.000 gE:1.001 b:1.601
PREVIEW CONSUMER: Acquired frame 50. Rendering.
Histogram Intensity: r:107.093 gO:125.622 gE:125.433 b:78.307   WBGains: r:1.173 gO:1.000 gE:1.002 b:1.604
PREVIEW CONSUMER: Acquired frame 51. Rendering.
Histogram Intensity: r:106.993 gO:125.491 gE:125.306 b:78.245   WBGains: r:1.173 gO:1.000 gE:1.001 b:1.604
PREVIEW CONSUMER: Acquired frame 52. Rendering.
Histogram Intensity: r:106.964 gO:125.443 gE:125.251 b:78.245   WBGains: r:1.173 gO:1.000 gE:1.002 b:1.603
PREVIEW CONSUMER: Acquired frame 53. Rendering.
Histogram Intensity: r:106.950 gO:125.391 gE:125.224 b:78.245   WBGains: r:1.172 gO:1.000 gE:1.001 b:1.603
PREVIEW CONSUMER: Acquired frame 54. Rendering.
Histogram Intensity: r:106.946 gO:125.349 gE:125.168 b:78.240   WBGains: r:1.172 gO:1.000 gE:1.001 b:1.602
PREVIEW CONSUMER: Acquired frame 55. Rendering.
Histogram Intensity: r:106.918 gO:125.332 gE:125.135 b:78.225   WBGains: r:1.172 gO:1.000 gE:1.002 b:1.602
PREVIEW CONSUMER: Acquired frame 56. Rendering.
Histogram Intensity: r:106.904 gO:125.301 gE:125.119 b:78.208   WBGains: r:1.172 gO:1.000 gE:1.001 b:1.602
PREVIEW CONSUMER: Acquired frame 57. Rendering.
Histogram Intensity: r:106.882 gO:125.294 gE:125.099 b:78.181   WBGains: r:1.172 gO:1.000 gE:1.002 b:1.603
PREVIEW CONSUMER: Acquired frame 58. Rendering.
Histogram Intensity: r:106.851 gO:125.275 gE:125.084 b:78.145   WBGains: r:1.172 gO:1.000 gE:1.002 b:1.603
PREVIEW CONSUMER: Acquired frame 59. Rendering.
Histogram Intensity: r:106.818 gO:125.265 gE:125.078 b:78.111   WBGains: r:1.173 gO:1.000 gE:1.001 b:1.604
PREVIEW CONSUMER: Acquired frame 60. Rendering.
Histogram Intensity: r:106.806 gO:125.273 gE:125.085 b:78.085   WBGains: r:1.173 gO:1.000 gE:1.001 b:1.604
PREVIEW CONSUMER: Acquired frame 61. Rendering.
Histogram Intensity: r:106.798 gO:125.268 gE:125.097 b:78.068   WBGains: r:1.173 gO:1.000 gE:1.001 b:1.605
PREVIEW CONSUMER: Acquired frame 62. Rendering.
Histogram Intensity: r:106.792 gO:125.275 gE:125.098 b:78.050   WBGains: r:1.173 gO:1.000 gE:1.001 b:1.605
PREVIEW CONSUMER: Acquired frame 63. Rendering.
Histogram Intensity: r:106.795 gO:125.288 gE:125.105 b:78.035   WBGains: r:1.173 gO:1.000 gE:1.001 b:1.606
PREVIEW CONSUMER: Acquired frame 64. Rendering.
Histogram Intensity: r:106.792 gO:125.307 gE:125.102 b:78.019   WBGains: r:1.173 gO:1.000 gE:1.002 b:1.606
PREVIEW CONSUMER: Acquired frame 65. Rendering.
Histogram Intensity: r:106.780 gO:125.284 gE:125.097 b:77.999   WBGains: r:1.173 gO:1.000 gE:1.001 b:1.606
PREVIEW CONSUMER: Acquired frame 66. Rendering.
Histogram Intensity: r:106.777 gO:125.276 gE:125.091 b:77.979   WBGains: r:1.173 gO:1.000 gE:1.001 b:1.607
PREVIEW CONSUMER: Acquired frame 67. Rendering.
Histogram Intensity: r:106.772 gO:125.276 gE:125.081 b:77.964   WBGains: r:1.173 gO:1.000 gE:1.002 b:1.607
PREVIEW CONSUMER: Acquired frame 68. Rendering.
Histogram Intensity: r:106.772 gO:125.283 gE:125.088 b:77.963   WBGains: r:1.173 gO:1.000 gE:1.002 b:1.607
PREVIEW CONSUMER: Acquired frame 69. Rendering.
Histogram Intensity: r:106.770 gO:125.267 gE:125.089 b:77.966   WBGains: r:1.173 gO:1.000 gE:1.001 b:1.607
PREVIEW CONSUMER: Acquired frame 70. Rendering.
Histogram Intensity: r:106.774 gO:125.277 gE:125.089 b:77.968   WBGains: r:1.173 gO:1.000 gE:1.002 b:1.607
PREVIEW CONSUMER: Acquired frame 71. Rendering.
Histogram Intensity: r:106.763 gO:125.275 gE:125.081 b:77.963   WBGains: r:1.173 gO:1.000 gE:1.002 b:1.607
PREVIEW CONSUMER: Acquired frame 72. Rendering.
Histogram Intensity: r:106.765 gO:125.273 gE:125.074 b:77.959   WBGains: r:1.173 gO:1.000 gE:1.002 b:1.607
PREVIEW CONSUMER: Acquired frame 73. Rendering.
Histogram Intensity: r:106.728 gO:125.232 gE:125.022 b:77.935   WBGains: r:1.173 gO:1.000 gE:1.002 b:1.607
PREVIEW CONSUMER: Acquired frame 74. Rendering.
Histogram Intensity: r:106.619 gO:124.986 gE:124.793 b:77.924   WBGains: r:1.172 gO:1.000 gE:1.002 b:1.604
PREVIEW CONSUMER: Acquired frame 75. Rendering.
Histogram Intensity: r:106.605 gO:124.942 gE:124.744 b:77.935   WBGains: r:1.172 gO:1.000 gE:1.002 b:1.603
PREVIEW CONSUMER: Acquired frame 76. Rendering.
Histogram Intensity: r:106.586 gO:124.920 gE:124.740 b:77.933   WBGains: r:1.172 gO:1.000 gE:1.001 b:1.603
PREVIEW CONSUMER: Acquired frame 77. Rendering.
Histogram Intensity: r:106.582 gO:124.930 gE:124.741 b:77.928   WBGains: r:1.172 gO:1.000 gE:1.002 b:1.603
No events in queue
PREVIEW CONSUMER: No more frames. Cleaning up.
PREVIEW CONSUMER: Done.
yt@yt-desktop:~/jetson_multimedia_api/argus/build/samples/userAutoWhiteBalance$ ./argus_userautowhitebalance -d1 -r 0,0,768,432 -f200
Executing Argus Sample: argus_userautowhitebalance
Argus Version: 0.99.3.3 (multi-process)
PREVIEW CONSUMER: Creating OpenGL context.
PREVIEW CONSUMER: Connecting to EGLStream(s).
PREVIEW CONSUMER: Connected to stream(s).
PREVIEW CONSUMER: Waiting until producer(s) connect...
PREVIEW CONSUMER: Producer(s) connected; continuing.
PREVIEW CONSUMER: Acquired frame 1. Rendering.
Histogram Intensity: r:106.920 gO:125.030 gE:124.901 b:78.135   WBGains: r:1.169 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 2. Rendering.
Histogram Intensity: r:106.923 gO:125.049 gE:124.917 b:78.130   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.601
PREVIEW CONSUMER: Acquired frame 3. Rendering.
Histogram Intensity: r:106.935 gO:125.053 gE:124.921 b:78.148   WBGains: r:1.169 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 4. Rendering.
Histogram Intensity: r:106.955 gO:125.091 gE:124.945 b:78.180   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 5. Rendering.
Histogram Intensity: r:106.967 gO:125.091 gE:124.956 b:78.177   WBGains: r:1.169 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 6. Rendering.
Histogram Intensity: r:106.966 gO:125.111 gE:124.968 b:78.181   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 7. Rendering.
Histogram Intensity: r:106.968 gO:125.109 gE:124.960 b:78.176   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 8. Rendering.
Histogram Intensity: r:106.974 gO:125.119 gE:124.974 b:78.183   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 9. Rendering.
Histogram Intensity: r:106.978 gO:125.131 gE:124.981 b:78.191   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 10. Rendering.
Histogram Intensity: r:106.982 gO:125.139 gE:125.004 b:78.197   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 11. Rendering.
Histogram Intensity: r:106.992 gO:125.144 gE:125.019 b:78.203   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 12. Rendering.
Histogram Intensity: r:106.994 gO:125.152 gE:125.011 b:78.201   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 13. Rendering.
Histogram Intensity: r:106.984 gO:125.156 gE:125.013 b:78.198   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 14. Rendering.
Histogram Intensity: r:106.974 gO:125.145 gE:125.006 b:78.192   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 15. Rendering.
Histogram Intensity: r:106.962 gO:125.134 gE:124.994 b:78.185   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.600
PREVIEW CONSUMER: Acquired frame 16. Rendering.
Histogram Intensity: r:106.955 gO:125.131 gE:124.978 b:78.171   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.601
PREVIEW CONSUMER: Acquired frame 17. Rendering.
Histogram Intensity: r:106.943 gO:125.125 gE:124.973 b:78.148   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.601
PREVIEW CONSUMER: Acquired frame 18. Rendering.
Histogram Intensity: r:106.913 gO:125.093 gE:124.945 b:78.134   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.601
PREVIEW CONSUMER: Acquired frame 19. Rendering.
Histogram Intensity: r:106.899 gO:125.076 gE:124.916 b:78.119   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.601
PREVIEW CONSUMER: Acquired frame 20. Rendering.
Histogram Intensity: r:106.890 gO:125.051 gE:124.903 b:78.104   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.601
PREVIEW CONSUMER: Acquired frame 21. Rendering.
Histogram Intensity: r:106.873 gO:125.031 gE:124.889 b:78.098   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.601
PREVIEW CONSUMER: Acquired frame 22. Rendering.
Histogram Intensity: r:106.872 gO:125.036 gE:124.883 b:78.086   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.601
PREVIEW CONSUMER: Acquired frame 23. Rendering.
Histogram Intensity: r:106.874 gO:125.042 gE:124.886 b:78.082   WBGains: r:1.170 gO:1.000 gE:1.001 b:1.601
No events in queue
PREVIEW CONSUMER: No more frames. Cleaning up.
PREVIEW CONSUMER: Done.
(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 91)
(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 91)
(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 91)
(Argus) Error InvalidState: Argus client is exiting with 3 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 366)
yt@yt-desktop:~/jetson_multimedia_api/argus/build/samples/userAutoWhiteBalance$ ./argus_userautowhitebalance -d1 -r 0,0,768,432 -f200
Executing Argus Sample: argus_userautowhitebalance
Argus Version: 0.99.3.3 (multi-process)
Cannot get Capture Session Interface

journalctl -u nvargus-daemon.service
lines 1-53/53 (END)
-- Logs begin at Tue 2024-06-18 15:09:45 CST, end at Tue 2024-06-18 15:10:59 CST. --
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: === argus_userautowhitebalance[2786]: Connection established (FFFFBBBC5900)OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module2
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module3
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: NvPclHwGetModuleList: No module data found
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: NvPclHwGetModuleList: No module data found
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: NvPclHwGetModuleList: No module data found
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: NvPclHwGetModuleList: No module data found
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: ---- imager: No override file found. ----
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: LSC: LSC surface is not based on full res!
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: ---- imager: No override file found. ----
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: LSC: LSC surface is not based on full res!
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: ---- imager: No override file found. ----
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: LSC: LSC surface is not based on full res!
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: ---- imager: No override file found. ----
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: LSC: LSC surface is not based on full res!
6月 18 15:09:57 yt-desktop nvargus-daemon[969]: === argus_userautowhitebalance[2786]: CameraProvider initialized (0xffffb41cb7b0)LSC: LSC surface is not based on full res!
6月 18 15:09:58 yt-desktop nvargus-daemon[969]: PowerServiceCore:handleRequests: timePassed = 463
6月 18 15:10:05 yt-desktop nvargus-daemon[969]: SCF: Error Timeout: Sending critical error event for Session 4
6月 18 15:10:05 yt-desktop nvargus-daemon[969]:  (in src/api/Session.cpp, function sendErrorEvent(), line 1039)
6月 18 15:10:05 yt-desktop nvargus-daemon[969]: SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 27 draining session frameStart events 1
6月 18 15:10:05 yt-desktop nvargus-daemon[969]:  (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 535)
6月 18 15:10:05 yt-desktop nvargus-daemon[969]: PowerServiceCore:handleRequests: timePassed = 6064
6月 18 15:10:05 yt-desktop nvargus-daemon[969]: SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 28 draining session frameStart events 1
6月 18 15:10:05 yt-desktop nvargus-daemon[969]:  (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 535)
6月 18 15:10:05 yt-desktop nvargus-daemon[969]: Module_id 30 Severity 2 : (fusa) Error: Timeout  propagating from:/capture/src/fusaViHandler.cpp 777
6月 18 15:10:05 yt-desktop nvargus-daemon[969]: SCF: Error InvalidState: Sensor 4 already in same state
6月 18 15:10:05 yt-desktop nvargus-daemon[969]:  (in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
6月 18 15:10:05 yt-desktop nvargus-daemon[969]: SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 25 draining session frameEnd events 4
6月 18 15:10:05 yt-desktop nvargus-daemon[969]:  (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 638)
6月 18 15:10:05 yt-desktop nvargus-daemon[969]: SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
6月 18 15:10:05 yt-desktop nvargus-daemon[969]: SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
6月 18 15:10:11 yt-desktop nvargus-daemon[969]: Module_id 30 Severity 2 : (fusa) Error: Timeout  propagating from:/capture/src/fusaViHandler.cpp 777
6月 18 15:10:11 yt-desktop nvargus-daemon[969]: SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 26 draining session frameEnd events 3
6月 18 15:10:11 yt-desktop nvargus-daemon[969]:  (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 638)
6月 18 15:10:11 yt-desktop nvargus-daemon[969]: SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
6月 18 15:10:11 yt-desktop nvargus-daemon[969]: SCF: Error InvalidState: Sensor 4 already in same state
6月 18 15:10:11 yt-desktop nvargus-daemon[969]:  (in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
6月 18 15:10:11 yt-desktop nvargus-daemon[969]: SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 27 draining session frameEnd events 2
6月 18 15:10:11 yt-desktop nvargus-daemon[969]:  (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 638)
6月 18 15:10:11 yt-desktop nvargus-daemon[969]: SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
6月 18 15:10:11 yt-desktop nvargus-daemon[969]: SCF: Error InvalidState: Sensor 4 already in same state
6月 18 15:10:11 yt-desktop nvargus-daemon[969]:  (in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
6月 18 15:10:11 yt-desktop nvargus-daemon[969]: SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 28 draining session frameEnd events 1
6月 18 15:10:11 yt-desktop nvargus-daemon[969]:  (in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 638)
6月 18 15:10:11 yt-desktop nvargus-daemon[969]: SCF: Error BadParameter: CC has already been disposed (in src/components/CaptureContainerManager.cpp, function dispose(), line 161)
6月 18 15:10:59 yt-desktop nvargus-daemon[969]: === argus_userautowhitebalance[2866]: Connection established (FFFFA986B900)=== argus_userautowhitebalance[2866]: CameraProvider initialized (0xffff6c001a80)(Argus) Error AlreadyAllocated: Device 0 (of 1) is in use (

Terminal log I tried 2 times, the first time it worked, but the second time it failed
journalctl log only record the second time (failed reopen after csi stop )

There is one more line of log that can be recovered after a problem; release this camera, why it didn’t trigger the second time
(Argus) Error InvalidState: Unknown stream deleted. (in src/api/CaptureSessionImpl.cpp, function outputStreamDeleted(), line 1104)

Please confirm userAutoWhiteBalance receive the error event and terminal itselft.

            } else if (iEvent->getEventType() == EVENT_TYPE_CAPTURE_STARTED) {
                /* ToDo: Remove the empty after the bug is fixed */
                continue;
            } else if (iEvent->getEventType() == EVENT_TYPE_ERROR) {
                const IEventError* iEventError =
                    interface_cast<const IEventError>(event);
                EXIT_IF_NOT_OK(iEventError->getStatus(), "ERROR event");

As the above log shows, the EVENT_TYPE_ERROR branch does not execute to the

What’s the BSP version?

cat /etc/nv_tegra_release

yt@yt-desktop:~$ cat /etc/nv_tegra_release

R35 (release), REVISION: 4.1, GCID: 33958178, BOARD: t186ref, EABI: aarch64, DATE: Tue Aug 1 19:57:35 UTC 2023

orin nano 8gb devkit

Multiple attempts can sometimes be received:

PREVIEW CONSUMER: Acquired frame 50. Rendering.
PREVIEW CONSUMER: Acquired frame 51. Rendering.
No events in queue time:2024-06-18 16:17:54.547
Error : Failed to get IEvent interface
ERROR event
PREVIEW CONSUMER: No more frames. Cleaning up.
PREVIEW CONSUMER: Done.
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), l                                                ine 137)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch                                                (), line 91)
autobalance release ptr:0xaaaaf55f22b0 time: 2024-06-18 16:18:09.549
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), l                                                ine 137)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch                                                (), line 91)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), l                                                ine 137)
(Argus) Error Timeout:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch                                                (), line 91)
(Argus) Error InvalidState: Argus client is exiting with 3 outstanding client threads (in src/rpc/socket/cl                                                ient/ClientSocketManager.cpp, function recvThreadCore(), line 366)

But it still breaks the reopen afterward, it seems that capturesession is not released here, can I force it to be released before exit

There’s an error in the description here, and here’s the code I changed to execute it in

        if(iQueue->getSize() == 0)
        {
            std::cout<<"No events in queue time:"<<stamp()<<'\n';
            iSession->cancelRequests();
            iSession->stopRepeat();
        }

        const Event* event = iQueue->getEvent(iQueue->getSize() - 1);
        const IEvent* iEvent = interface_cast<const IEvent>(event);
        if (!iEvent)
            printf("Error : Failed to get IEvent interface\n");
        else {

Could you verify by argus_userautoexposure?

USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 6875022, Analog Gain 22.250000                 │
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.184, currently within target range                     │
USER AUTO EXPOSURE SAMPLE: ERROR event                                                                │
PREVIEW CONSUMER: No more frames. Cleaning up.                                                        │
PREVIEW CONSUMER: Done.                                                     

There seems to be no difference between the two codes and phenomena; USER AUTO EXPOSURE SAMPLE: No events in queue

yt@yt-desktop:~$ cat a.log
REVIEW CONSUMER: Acquired frame 33. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1770000, Analog Gain 500.000000
USER AUTO EXPOSURE SAMPLE: avg 0 Exposure level at 0.062, ANAANANANAN gain to 500.000000
EXPEXPRXP Time to 5
PREVIEW CONSUMER: Acquired frame 34. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1770000, Analog Gain 500.000000
USER AUTO EXPOSURE SAMPLE: avg 0 Exposure level at 0.062, ANAANANANAN gain to 500.000000
EXPEXPRXP Time to 5
USER AUTO EXPOSURE SAMPLE: No events in queue
PREVIEW CONSUMER: No more frames. Cleaning up.
PREVIEW CONSUMER: Done.
(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 91)
(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 91)
(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 91)
(Argus) Error InvalidState: Argus client is exiting with 3 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 366)

As an added bonus, I updated the dynamic libraries provided here; as the same stability issues were encountered and resolved with the update
https://forums.developer.nvidia.com/t/argus-image-acquisition-crashes-after-a-few-days/285577

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.