jacopo-chevallard / BEAGLE-general

Basic information to get started with the galaxy spectral modelling tool Beagle
https://www.iap.fr/beagle/
9 stars 0 forks source link

Problem in using the Calzetti extinction law #59

Closed steveschulze closed 7 years ago

steveschulze commented 7 years ago

Hi,

I run BEAGLE version 0.15.0 on Mac OS 10.11 (16 GB RAM) and version 0.17.1 on Ubuntu 16.10 (32 GB RAM).

I wanted to fit the BEAGLE example SEDs with a Calzetti extinction law. I used the parameter file fit_photometry_example.txt and changed attenuation_type to Calzetti. The parameter file for version 0.17.1 is attached. Unfortunately, BEAGLE crashed with a segmentation error. Other extinction models worked fine.

BEAGLE was executed with the commands:

docker run --rm -it -v $HOME/BEAGLE-general:/BEAGLE_virtual_workdir --env-file BEAGLE-general/env.list beagletool/beagle:0.15.0 --parameter-file /BEAGLE_virtual_workdir/params/fit_photometry_example.param --fit

docker run --rm -it -v $HOME/BEAGLE-general:/BEAGLE_virtual_workdir --env-file BEAGLE-general/env.list beagletool/beagle:0.17.1 --parameter-file /BEAGLE_virtual_workdir/params/fit_photometry_example.param --fit

As Jacopo suggested, I increased the RAM allocation to 8 GB on the Mac. The problem remained. The same problem occurred on the linux machine. This is particularly strange because the available free RAM is ~23 GB. BEAGLE only used 3 GB tops. Problems with other extinction models did not occur on the Linux machine.

I ran the programme with a verbosity level of 3 to get more information about the error. Nothing really popped up (log file is attached).

Do you have suggestions what I could try?

Cheers

Steve

beagle_v0171_calzetti.txt fit_spectrum_example.txt

jacopo-chevallard commented 7 years ago

I could reproduce the error with Docker, but strangely the error doesn't appear when using a compiled version of Beagle (same ver 0.17.1)...

steveschulze commented 7 years ago

Ohhh...it's correct that one can only use Beagle through docker, or is there also a source code version?

jacopo-chevallard commented 7 years ago

It is fixed from ver >= 0.18.1, as soon as I push it to Docker Hub I'll let you know

steveschulze commented 7 years ago

Thanks a lot.

jacopo-chevallard commented 7 years ago

ver 0.18.2 is on Docker Hub, let me know if it solves the issue

steveschulze commented 7 years ago

Thanks Jacopo. There is a new issue:

docker run --rm -it -v $HOME/BEAGLE-general:/BEAGLE_virtual_workdir --env-file BEAGLE-general/env.list beagletool/beagle:0.18.2 --parameter-file /BEAGLE_virtual_workdir/params/fit_photometry_example.param --fit

/data/install/bin/BEAGLE: error while loading shared libraries: libcfitsio.so.2: cannot open shared object file: No such file or directory

It seems to be connected to the image.