astrorama / SourceXtractorPlusPlus

SourceXtractor++, the next generation SExtractor
https://astrorama.github.io/SourceXtractorPlusPlus/
GNU Lesser General Public License v3.0
72 stars 9 forks source link

Keep the FileManager alive #509

Closed ayllon closed 2 years ago

ayllon commented 2 years ago

The crash that Martin reported happened at exiting. The FileManager was getting destroyed first, and then the CheckImages. When the latter tried to flush the tiles, the program crashed when trying to obtain a file descriptor.

FitsImageSource should keep the manager alive as long as it exists so it can flush the tiles into disk.