editeodoro / Bbarolo

Bbarolo is a 3D fitting tool to derive the kinematics of galaxies from emission-line observations.
http://editeodoro.github.io/Bbarolo/
GNU General Public License v2.0
30 stars 8 forks source link

zsh: abort issue running 3DBarolo #30

Closed siangphillips closed 10 months ago

siangphillips commented 1 year ago

Hi, I have installed 3DBarolo on Mac and it appears the installation worked correctly; when I type 'bbarolo' in terminal the quick start guide appears as expected. However when I attempt to run it, whether with or without a parameter file, including on the example data, the parameters are printed out in the terminal and then the error 'zsh: abort' immediately appears before any fitting is performed. Do you have any idea why this might be happening and what I can do to solve the issue? Thanks.

editeodoro commented 1 year ago

Did you upgrade the OS to the latest version?

siangphillips commented 1 year ago

Yes, after having encountered this problem I updated my OS to the latest version and the problem persisted.

editeodoro commented 1 year ago

I think I have already seen this problem, but right now I can't recall what was the cause. Can you give me information about your system, i.e. OS version, all library versions, python version, etc?

siangphillips commented 1 year ago

My OS version is Ventura 13.2.1, python version is 3.9.7, cfitsio 4.2.0, wcslib 7.12, FFTW 3.3.10, Bbarolo 1.6

editeodoro commented 1 year ago

Are you using a pre-compiled version of BBarolo or did you compile it yourself? Does it give the same problem when run on bash instead of zsh?

siangphillips commented 1 year ago

I've tried both the pre-compiled BBarolo and compiling it myself, and on bash I get the same problem, it gives an error 'Abort trap: 6'. How best can I go about debugging this?

editeodoro commented 1 year ago

Sorry, I am not sure how to help you out here without digging into your system. My best guess is that it is a problem with the cfitsio library. The only thing I may suggest is to try to uninstall all the libraries, reinstall them from scratch and try to recompile the code. Please, let me know if you figure this out.

siangphillips commented 1 year ago

Thanks for your time so far. I tried a different approach of using Docker to run BBarolo within a container, and this is almost working - when I run 3DFIT the code fits each ring and progresses through producing the outputs as far as writing the kinematic maps; however on the last step, producing the plots, I get an error message 'Something went wrong! Check plotting scripts in the output folder.' I am using the example data downloaded from the 3DBarolo website, so the problem cannot be an error with the input data or .par file. I think I have installed all relevant dependencies in the container (python 3.9, gnuplot, astropy, scipy, matplotlib, pandas, numpy, scikit-image, lmfit, pyparsing, pyyaml, emcee, corner) and I have checked in the plotting scripts that the output path makes sense. Do you have any idea what might cause this issue?

editeodoro commented 1 year ago

Yeah, that seems a problem with python, I have never tried it in a Docker. Anyway, does it produce the plots if you run the plotting scripts after the BBarolo's run? Basically:

python output/youraoutputdir/plotscripts/plot_all.py

does it give any error?

editeodoro commented 10 months ago

Closing for inactivity.