Closed ddasilva closed 1 year ago
I am also getting segfaults when I run it on a clean install on a Windows Subsytem for Linux installation of ubuntu
Here is a Dockerfile which reproduces the error with Ubuntu 20.04, Python 3.8.10, using the latest wheel from PyPI
Attachment: Dockerfile.txt
$ docker.exe run test
Python 3.8.10
Segmentation fault
Hi there,
Apologies for the late response, I was away from work over the Christmas period!
Thanks for reporting this bug - I can confirm that I also get the same segmentation faults on my Linux system. I am just attempting to figure out what is the problem...
Hello again,
I think I have fixed the bug in the ModelField() function. The segmentation fault appears to have originated in the wrapper code used by Python to call the C++ function - I added some arguments in C++ and forgot to update Python (whoops).
The newest version of the code is 1.1.3, which you can either upgrade using pip
or download from here: https://github.com/mattkjames7/PyGeopack/releases/tag/v1.1.3
Please do let me know whether or not that fixes the problem for you!
Cheers.
Looks good for me, thanks!
I can add some simple tests that run under github actions after each push and result in an email notification if they fail. That would help prevent breaking changes like this. Would that pull request be welcome?
Great!
That sounds like a great idea, I would be happy to include it if you decide to create a pull request.
Steps to reproduce (does not include downloading the data):
python -c "import PyGeopack; print(PyGeopack.ModelField(-3, 0, 0, Date=20130101, ut=0, CoordIn='SM', CoordOut='SM', Model='T96'))"
I am using gfortran 12.2.0 and debian sid.
Full log: