Crash during IW chains with OTB 8 & 9
A crash happens during the execution of SAR_MultiSlc_IW chain with IW_EQ_IRAN2017 data, while the chain tries to execute the SARCartesianMeanEstimation
(Ground part) application :
RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /work/scratch/env/geninv/diapotb/OTB9_dl/OTB/build/ITK/src/ITK/Modules/Core/Common/src/itkMultiThreader.cxx:399:
itk::ERROR: MultiThreader(0x13695c80): Exception occurred during SingleMethodExecute
/work/scratch/env/geninv/diapotb/OTB9_dl/OTB/install/include/ITK-4.13/itkImageConstIterator.h:211:
itk::ERROR: Region ImageRegion (0x7fffc7d779d0)
Dimension: 2
Index: [2465, 1482]
Size: [3423, 657]
is outside of buffered region ImageRegion (0x28ffaf0)
Dimension: 2
Index: [2438, 1482]
Size: [3422, 791]
This crash happens with OTB8 and OTB9. It happens when the chain is executed while multithreaded. The crash does not happen if we force one thread with export ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1
With the fix added in v9_path branch (cf. this repository https://gitlab.orfeo-toolbox.org/s1-tiling/normlim_sigma0/-/tree/master?ref_type=heads), the process continues until a crash during the execution of the SARFineDeformationGrid
(DinSAR part) application :
An exception was raised in execute : Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /work/scratch/env/geninv/diapotb/OTB9_dl/OTB/build/ITK/src/ITK/Modules/Core/Common/src/itkMultiThreader.cxx:399:
itk::ERROR: MultiThreader(0x5b62d280): Exception occurred during SingleMethodExecute
/work/scratch/env/geninv/diapotb/OTB9_dl/OTB/install/include/ITK-4.13/itkImageConstIterator.h:211:
itk::ERROR: Region ImageRegion (0x7ffc07dbabf0)
Dimension: 2
Index: [2459, 1482]
Size: [3415, 723]
is outside of buffered region ImageRegion (0x32bf48c0)
Dimension: 2
Index: [2338, 1482]
Size: [3418, 1323]
After some research, the crash happens on this line : https://gitlab.orfeo-toolbox.org/remote_modules/diapotb/-/blob/master/app/otbSARCorrectionGrid.cxx?ref_type=heads#L165