We use 2 different process to acquire images from 2 cameras, and every single process working correctly.
But if two processes running at the same time, the second process will report an error:
FM_STATS data size wrong: 0 != 8192
SCF: Error InvalidSize: (propagating from src/services/autocontrol/isp_stats/IspLegacyStatsDecoder.cpp, function decodeIspStats(), line 58)
SCF: Error InvalidSize: There was an error decoding stats for frame 1, frame stats will be invalid (in src/services/autocontrol/isp_stats/IspLegacyStatsDecoder.cpp, function decodeIspStats(), line 66)
totalCount of histogram is zero
[I] 1517874534.224 | 1894.445 frame in, camera=1, number=1, timestamp=1517874534.204ms, exposure=1.000ms, lux=1000.00
AWB: M3Stats VWindows = 0 != 64
Could you attached you code and binary. Also what’s the version?
argus_camera_single (2.1 MB)
Hi, ShaneCCC:
Test binary uploaded. Running method:
# console 1
./argus_camera_single -d 0
# console 2
./argus_camera_single -d 1
Thanks.
What’s the different with reference APP argus_camera?
Hi, ShaneCCC:
We will check the difference with the argus_camera.
Thanks.
Yes, there’s no problem to run two sensor in two sessions with argus_camera.
Hi, ShaneCCC:
We have test using argus_camera.
If argus_camera using EGL_DEFAULT_DISPLAY, then two argus_camera application instances can’t run at the same time.
Please apply attached patch, and check it.
Thanks.
argus_camera_patch_use_default_display.patch (861 Bytes)
I don’t know if this modification is correct or not. But can you tell why do this modification?
Our application doesn’t have GUI, so we using EGL_DEFAULT_DISPLAY.
Thanks.
What’s the error message?
- libnvargus print following errors in second application, and first camera application also halt.
FM_STATS data size wrong: 0 != 8192
SCF: Error InvalidSize: (propagating from src/services/autocontrol/isp_stats/IspLegacyStatsDecoder.cpp, function decodeIspStats(), line 58)
SCF: Error InvalidSize: There was an error decoding stats for frame 1, frame stats will be invalid (in src/services/autocontrol/isp_stats/IspLegacyStatsDecoder.cpp, function decodeIspStats(), line 66)
Segmentation fault
Thanks.
I try the yuvjpeg sample code without display the UI without problem by below command.
./argus_yuvjpeg -o 0 -d 0 & ./argus_yuvjpeg -o 0 -d 1
yuvJpeg.patch (1.4 KB)
Hi, ShaneCCC:
Please apply attached patch to disable JPG output, the error appear again.
- And more informations: There are 2 types of failures:
- case 1: application 2 can’t start and report an error "FM_STATS data size wrong: 0 != 8192”
- case 2: application 2 can start, but the frame rate of both cameras will drop to 1/2.
- For example, if origin frame is 20fps, will drop to 10fps.
Please help.
Thanks.
Can reproduce the FM_STATS after remove the JPG, run about 10 times
How to check the framerate from this APP?
If using argus_camera_single
- Every frame timestamp is printed. Framerate is calculated by:
Thanks.