Switching from ACCUMULATION to SINGLE raises '"Invalid FrameDim"
on BM18, when switcing acq_mode
ACCUMULATION to SINGLE with the latest 1.10.x
aka add-buffer-helper
branch
BLISS [0]: limatake(0.1, 10, det3, acq_mode="ACCUMULATION", acc_out_type="Bpp16", acc_max_expo_time=0.05, acc_operation="ACC_MEAN")
BLISS [1]: limatake(0.1, 10, det3, acq_mode="SINGLE")
[2024/05/06 10:48:56.885099] 7f2fe3fff700 *Hardware*IrisCommon::GetDefMaxNbBuffers (common/src/MemUtils.cpp:109)-Error: Invalid FrameDim: <0x1x1-Bpp8>
********* Exception(InvalidValue): Invalid FrameDim
The following code is unclear to me:
int BufferHelper::Parameters::getDefMaxNbBuffers(int size) const
{
DEB_MEMBER_FUNCT();
DEB_PARAM() << DEB_VAR1(size);
int max_nb_buffers = GetDefMaxNbBuffers(FrameDim(Size(size, 1), Bpp8)); // <--- triggers the exception
int res = int(std::round(max_nb_buffers * reqMemSizePercent / 100.0));
DEB_RETURN() << DEB_VAR1(res);
return res;
}
Edited by Samuel Debionne