OpenDrift / opendrift

Open source framework for ocean trajectory modelling
https://opendrift.github.io
GNU General Public License v2.0
249 stars 120 forks source link

Segmentation fault when Plotting #1126

Closed toddChavezz closed 1 year ago

toddChavezz commented 1 year ago

Environment Info: Ubuntu 18.04 Python 3.9.16 All dependencies from environment.yml where installed with pip except for gdal which was installed with conda (gdal==3,6.2)

There is a Segmentation fault (core dumped) every time calling .plot() or .animation() for all models I tested. The same thing for all tests or examples that use these functions, for example tests.plotting.test_comparison() or examples/coastline_options.py. On the other hand, whenever .animation_profile() is called, like in examples/example_2d.py, for example, plotting works just fine.

Any help with that is highly appreciated! Let me know if you need more info on my setup.

knutfrode commented 1 year ago

Hi, There are probably some problems with combining Cartopy from pip and GDAL from conda.

We would recommend installing everything with conda/mamba, which should be faster, safer and easier: https://opendrift.github.io/install.html

toddChavezz commented 1 year ago

indeed, this helped. appears to work now. sorry for not installing according to the recommendation, I didn't think this would affect anything. Thank you!