pythonprop icon indicating copy to clipboard operation
pythonprop copied to clipboard

Segmentation Fault when Plotting Area

Open toomanycats opened this issue 3 years ago • 1 comments

Ubuntu 20.04

When I try to plot an area I get a seg fault. I've not been successful in getting the core dump to actually show up.

I have nailed down in the source where this happens: voaAreaPlot.py

            ax.set_extent([area_rect.get_sw_lon(),
                    area_rect.get_ne_lon(),
                    area_rect.get_sw_lat(),
                    area_rect.get_ne_lat()], projection)

The seg fault does not occur if i comment out the projection. I suspect something is wrong with my GEOS installation.

cat Version.txt

# GEOS Versions
GEOS_VERSION_MAJOR=3
GEOS_VERSION_MINOR=11
GEOS_VERSION_PATCH=0

# OPTIONS: "", "dev", "rc1" etc.
GEOS_PATCH_WORD=dev

# GEOS CAPI Versions
#
# - For a release with no interface changes just bump REVISION.
#   ( Even if *nothing* changed in CAPI )
# - Adding interfaces, bump CURRENT/AGE, set REVISION to 0.
# - Deleting interfaces / compatibility issues - bump CURRENT, others to zero
#   ( THIS MUST BE CAREFULLY AVOIDED )
#
CAPI_INTERFACE_CURRENT=17
CAPI_INTERFACE_REVISION=0
CAPI_INTERFACE_AGE=16

# JTS Port
JTS_PORT=1.18.0

toomanycats avatar May 28 '22 20:05 toomanycats

I don't understand why this works, but it did:

https://stackoverflow.com/questions/52374356/cartopy-examples-produce-a-segmentation-fault

toomanycats avatar May 28 '22 21:05 toomanycats