ISP AE Behavior is weird

Hello,

I’m porting my application from Jetson Nano to Jetson Xavier NX (same JetPack version), and I’ve encountered some problems with the ISP AutoExposure getting the image darker and darker until it’s completely black.
I’m also getting weird error messages from Argus:

(Autocontrol) Error BadParameter: calculated histogram index, maxRGBInt = 1960162096 crossed its limit (in src/algorithms/ae/ae_stats_utils.cpp, function NvIspAeCalcMaxRGBHistogramsFromLac1(), line 266)
(Autocontrol) Error BadParameter:  (propagating from src/algorithms/ae/plugins/aohdr/AEComputePluginAoHdr.cpp, function computeMidtoneMeter(), line 95)
(Autocontrol) Error BadParameter:  (propagating from src/algorithms/ae/plugins/aohdr/AEComputePluginAoHdr.cpp, function computeDerivedStats(), line 352)
(Autocontrol) Error BadParameter: calculated histogram index, maxRGBInt = 1960162096 crossed its limit (in src/algorithms/ae/ae_stats_utils.cpp, function NvIspAeCalcMaxRGBHistogramsFromLac1(), line 266)
(Autocontrol) Error BadParameter:  (propagating from src/algorithms/ae/plugins/aohdr/AEComputePluginAoHdr.cpp, function computeMidtoneMeter(), line 95)
(Autocontrol) Error BadParameter:  (propagating from src/algorithms/ae/plugins/aohdr/AEComputePluginAoHdr.cpp, function computeDerivedStats(), line 352)
(Autocontrol) Error BadParameter: calculated histogram index, maxRGBInt = 1950659488 crossed its limit (in src/algorithms/ae/ae_stats_utils.cpp, function NvIspAeCalcMaxRGBHistogramsFromLac1(), line 266)
(Autocontrol) Error BadParameter:  (propagating from src/algorithms/ae/plugins/aohdr/AEComputePluginAoHdr.cpp, function computeMidtoneMeter(), line 95)
(Autocontrol) Error BadParameter:  (propagating from src/algorithms/ae/plugins/aohdr/AEComputePluginAoHdr.cpp, function computeDerivedStats(), line 352)
(Autocontrol) Error BadParameter: calculated histogram index, maxRGBInt = 1960162096 crossed its limit (in src/algorithms/ae/ae_stats_utils.cpp, function NvIspAeCalcMaxRGBHistogramsFromLac1(), line 266)
(Autocontrol) Error BadParameter:  (propagating from src/algorithms/ae/plugins/aohdr/AEComputePluginAoHdr.cpp, function computeMidtoneMeter(), line 95)
(Autocontrol) Error BadParameter:  (propagating from src/algorithms/ae/plugins/aohdr/AEComputePluginAoHdr.cpp, function computeDerivedStats(), line 352)
(Autocontrol) Error BadParameter: calculated histogram index, maxRGBInt = 1960162096 crossed its limit (in src/algorithms/ae/ae_stats_utils.cpp, function NvIspAeCalcMaxRGBHistogramsFromLac1(), line 266)
(Autocontrol) Error BadParameter:  (propagating from src/algorithms/ae/plugins/aohdr/AEComputePluginAoHdr.cpp, function computeMidtoneMeter(), line 95)
(Autocontrol) Error BadParameter:  (propagating from src/algorithms/ae/plugins/aohdr/AEComputePluginAoHdr.cpp, function computeDerivedStats(), line 352)
(Autocontrol) Error BadParameter: calculated histogram index, maxRGBInt = 1960162096 crossed its limit (in src/algorithms/ae/ae_stats_utils.cpp, function NvIspAeCalcMaxRGBHistogramsFromLac1(), line 266)
(Autocontrol) Error BadParameter:  (propagating from src/algorithms/ae/plugins/aohdr/AEComputePluginAoHdr.cpp, function computeMidtoneMeter(), line 95)
(Autocontrol) Error BadParameter:  (propagating from src/algorithms/ae/plugins/aohdr/AEComputePluginAoHdr.cpp, function computeDerivedStats(), line 352)

Any idea about what can be done concerning this issue ?

Regards

hello Buanderie,

may I know which Jetpack release version you’re working with?
the error logs also looks abnormal, it seems you’re setting something out-of-range.

had you done sanity test for your driver? can you confirm the gain/exposure perform linearly?

I’m using JetPack 4.6.2. Won’t switch to 5 because I need compatibility with the legacy Nano modules (for now).

Can’t confirm that they perform linearly right now without modifying the driver.

hello Buanderie,

okay… what’s the pipeline you’re used to enable the camera stream.
is it possible to run argus_camera app and enable the AE Lock to ensure it’s AE related issue.