Monteverdi crash with this image
Mantis Issue 1298, reported by sdinot, assigned to gpasero, created: 2016-10-11
Crash when opening this tif image. 5.8.0 from todays nightly linux standalone package
1476200396 - poughovTerminal output includes:
terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc /home/poughov/Téléchargements/OTB-5.8.0-Linux64/monteverdi.sh: line 8: 7690 Aborted (core dumped) /home/poughov/Téléchargements/OTB-5.8.0-Linux64/bin/monteverdi "$@"
1477563382 - grizonnetmI can reproduce the issue. The crash is located in Histogram computation (in OTB or ITK I'm not sure yet).
I suspect that is because pixels in the image are all equal to the same value. Here 1.9960018639594e+20.
gdb backtrace:
Thread 15 "mvd::Background" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffa951a700 (LWP 25896)] 0x00007ffff77c471b in itk::Statistics::Histogram<double, itk::Statistics::DenseFrequencyContainer2>::GetIndex (this=0x7fffb405a310, measurement=..., index=...) at /home/grizonnetm/projets/otb/src/ITK/Modules/Numerics/Statistics/include/itkHistogram.hxx:296 296 if ( tempMeasurement < m_Min[dim][beg