GenericMappingTools / pygmt

A Python interface for the Generic Mapping Tools.
https://www.pygmt.org
BSD 3-Clause "New" or "Revised" License
758 stars 220 forks source link

double free or corruption (out) #394

Closed tjcrone closed 4 years ago

tjcrone commented 4 years ago

Hello. I am getting some sort of segmentation-type error when running the points example:

jovyan@jupyter-tjcrone:~$ python
Python 3.7.6 | packaged by conda-forge | (default, Jan  7 2020, 22:33:48) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import pygmt
>>> 
>>> # Generate a random set of points to plot
>>> np.random.seed(42)
>>> region = [150, 240, -10, 60]
>>> x = np.random.uniform(region[0], region[1], 100)
>>> y = np.random.uniform(region[2], region[3], 100)
>>> 
>>> fig = pygmt.Figure()
>>> # Create a 6x6 inch basemap with a Cartesian projection (X) using the data region
>>> fig.basemap(region=region, projection="X6i", frame=True)
>>> # Plot using triangles (i) of 0.5 cm
>>> fig.plot(x, y, style="i0.5c", color="black")
double free or corruption (out)
Aborted (core dumped)

I'm on a Pangeo system and the output of conda list is:

(notebook) jovyan@jupyter-tjcrone:~$ conda list
# packages in environment at /srv/conda/envs/notebook:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                      0_llvm    conda-forge
adal                      1.2.2                      py_0    conda-forge
affine                    2.3.0                      py_0    conda-forge
aiohttp                   3.6.2            py37h516909a_0    conda-forge
alembic                   1.4.0                      py_0    conda-forge
altair                    4.0.1                      py_0    conda-forge
antlr-python-runtime      4.7.2                 py37_1001    conda-forge
appdirs                   1.4.3                      py_1    conda-forge
asciitree                 0.3.3                      py_2    conda-forge
asn1crypto                1.3.0                    py37_0    conda-forge
async-timeout             3.0.1                   py_1000    conda-forge
async_generator           1.10                       py_0    conda-forge
atk                       2.32.0               haf93ef1_0    conda-forge
attrdict                  2.0.1                      py_0    conda-forge
attrs                     19.3.0                     py_0    conda-forge
av                        7.0.0            py37h866369f_0    conda-forge
azure                     4.0.0                    pypi_0    pypi
azure-applicationinsights 0.1.0                    pypi_0    pypi
azure-batch               4.1.3                    pypi_0    pypi
azure-common              1.1.24                   pypi_0    pypi
azure-cosmosdb-nspkg      2.0.2                    pypi_0    pypi
azure-cosmosdb-table      1.0.6                    pypi_0    pypi
azure-datalake-store      0.0.48                   pypi_0    pypi
azure-eventgrid           1.3.0                    pypi_0    pypi
azure-graphrbac           0.40.0                   pypi_0    pypi
azure-keyvault            1.1.0                    pypi_0    pypi
azure-loganalytics        0.1.0                    pypi_0    pypi
azure-mgmt                4.0.0                    pypi_0    pypi
azure-mgmt-advisor        1.0.1                    pypi_0    pypi
azure-mgmt-applicationinsights 0.1.1                    pypi_0    pypi
azure-mgmt-authorization  0.50.0                   pypi_0    pypi
azure-mgmt-batch          5.0.1                    pypi_0    pypi
azure-mgmt-batchai        2.0.0                    pypi_0    pypi
azure-mgmt-billing        0.2.0                    pypi_0    pypi
azure-mgmt-cdn            3.1.0                    pypi_0    pypi
azure-mgmt-cognitiveservices 3.0.0                    pypi_0    pypi
azure-mgmt-commerce       1.0.1                    pypi_0    pypi
azure-mgmt-compute        4.6.2                    pypi_0    pypi
azure-mgmt-consumption    2.0.0                    pypi_0    pypi
azure-mgmt-containerinstance 1.5.0                    pypi_0    pypi
azure-mgmt-containerregistry 2.8.0                    pypi_0    pypi
azure-mgmt-containerservice 4.4.0                    pypi_0    pypi
azure-mgmt-cosmosdb       0.4.1                    pypi_0    pypi
azure-mgmt-datafactory    0.6.0                    pypi_0    pypi
azure-mgmt-datalake-analytics 0.6.0                    pypi_0    pypi
azure-mgmt-datalake-nspkg 3.0.1                    pypi_0    pypi
azure-mgmt-datalake-store 0.5.0                    pypi_0    pypi
azure-mgmt-datamigration  1.0.0                    pypi_0    pypi
azure-mgmt-devspaces      0.1.0                    pypi_0    pypi
azure-mgmt-devtestlabs    2.2.0                    pypi_0    pypi
azure-mgmt-dns            2.1.0                    pypi_0    pypi
azure-mgmt-eventgrid      1.0.0                    pypi_0    pypi
azure-mgmt-eventhub       2.6.0                    pypi_0    pypi
azure-mgmt-hanaonazure    0.1.1                    pypi_0    pypi
azure-mgmt-iotcentral     0.1.0                    pypi_0    pypi
azure-mgmt-iothub         0.5.0                    pypi_0    pypi
azure-mgmt-iothubprovisioningservices 0.2.0                    pypi_0    pypi
azure-mgmt-keyvault       1.1.0                    pypi_0    pypi
azure-mgmt-loganalytics   0.2.0                    pypi_0    pypi
azure-mgmt-logic          3.0.0                    pypi_0    pypi
azure-mgmt-machinelearningcompute 0.4.1                    pypi_0    pypi
azure-mgmt-managementgroups 0.1.0                    pypi_0    pypi
azure-mgmt-managementpartner 0.1.1                    pypi_0    pypi
azure-mgmt-maps           0.1.0                    pypi_0    pypi
azure-mgmt-marketplaceordering 0.1.0                    pypi_0    pypi
azure-mgmt-media          1.0.0                    pypi_0    pypi
azure-mgmt-monitor        0.5.2                    pypi_0    pypi
azure-mgmt-msi            0.2.0                    pypi_0    pypi
azure-mgmt-network        2.7.0                    pypi_0    pypi
azure-mgmt-notificationhubs 2.1.0                    pypi_0    pypi
azure-mgmt-nspkg          3.0.2                    pypi_0    pypi
azure-mgmt-policyinsights 0.1.0                    pypi_0    pypi
azure-mgmt-powerbiembedded 2.0.0                    pypi_0    pypi
azure-mgmt-rdbms          1.9.0                    pypi_0    pypi
azure-mgmt-recoveryservices 0.3.0                    pypi_0    pypi
azure-mgmt-recoveryservicesbackup 0.3.0                    pypi_0    pypi
azure-mgmt-redis          5.0.0                    pypi_0    pypi
azure-mgmt-relay          0.1.0                    pypi_0    pypi
azure-mgmt-reservations   0.2.1                    pypi_0    pypi
azure-mgmt-resource       2.2.0                    pypi_0    pypi
azure-mgmt-scheduler      2.0.0                    pypi_0    pypi
azure-mgmt-search         2.1.0                    pypi_0    pypi
azure-mgmt-servicebus     0.5.3                    pypi_0    pypi
azure-mgmt-servicefabric  0.2.0                    pypi_0    pypi
azure-mgmt-signalr        0.1.1                    pypi_0    pypi
azure-mgmt-sql            0.9.1                    pypi_0    pypi
azure-mgmt-storage        2.0.0                    pypi_0    pypi
azure-mgmt-subscription   0.2.0                    pypi_0    pypi
azure-mgmt-trafficmanager 0.50.0                   pypi_0    pypi
azure-mgmt-web            0.35.0                   pypi_0    pypi
azure-nspkg               3.0.2                    pypi_0    pypi
azure-servicebus          0.21.1                   pypi_0    pypi
azure-servicefabric       6.3.0.0                  pypi_0    pypi
azure-servicemanagement-legacy 0.20.6                   pypi_0    pypi
azure-storage-blob        1.5.0                    pypi_0    pypi
azure-storage-common      1.4.2                    pypi_0    pypi
azure-storage-file        1.4.0                    pypi_0    pypi
azure-storage-queue       1.4.0                    pypi_0    pypi
backcall                  0.1.0                      py_0    conda-forge
beautifulsoup4            4.8.2                    py37_0    conda-forge
blas                      1.0                         mkl    conda-forge
bleach                    3.1.0                      py_0    conda-forge
blinker                   1.4                        py_1    conda-forge
blosc                     1.17.1               he1b5a44_0    conda-forge
bokeh                     1.4.0                    py37_0    conda-forge
boost-cpp                 1.70.0               h8e57a91_2    conda-forge
boto3                     1.11.11                    py_0    conda-forge
botocore                  1.14.11                    py_0    conda-forge
bottleneck                1.3.1            py37hc1659b7_0    conda-forge
branca                    0.3.1                      py_0    conda-forge
bzip2                     1.0.8                h516909a_2    conda-forge
ca-certificates           2019.11.28           hecc5488_0    conda-forge
cachetools                3.1.1                      py_0    conda-forge
cairo                     1.16.0            hfb77d84_1002    conda-forge
cartopy                   0.17.0          py37h88e1628_1010    conda-forge
certifi                   2019.11.28               py37_0    conda-forge
certipy                   0.1.3                      py_0    conda-forge
cf-units                  2.1.3            py37hc1659b7_0    conda-forge
cffi                      1.13.2           py37h8022711_0    conda-forge
cfitsio                   3.470                hb60a0a2_2    conda-forge
cftime                    1.0.4.2          py37hc1659b7_0    conda-forge
chardet                   3.0.4                 py37_1003    conda-forge
chrpath                   0.16              h14c3975_1001    conda-forge
click                     7.0                        py_0    conda-forge
click-plugins             1.1.1                      py_0    conda-forge
cligj                     0.5.0                      py_0    conda-forge
climlab                   0.7.6            py37h7eb8c7e_0    conda-forge
climpred                  2.0.0                      py_1    conda-forge
cloudpickle               1.2.2                      py_1    conda-forge
cmocean                   2.0                        py_3    conda-forge
colorcet                  2.0.1                      py_0    conda-forge
colorspacious             1.1.2              pyh24bf2e0_0    conda-forge
configobj                 5.0.6                      py_0    conda-forge
configurable-http-proxy   4.2.0           node13_he01fd0c_2    conda-forge
croniter                  0.3.30                     py_0    conda-forge
cryptography              2.8              py37h72c5cf5_1    conda-forge
curl                      7.68.0               hf8cf82a_0    conda-forge
cycler                    0.10.0                     py_2    conda-forge
cytoolz                   0.10.1           py37h516909a_0    conda-forge
dask                      2.9.0                      py_0    conda-forge
dask-core                 2.9.0                      py_0    conda-forge
dask-gateway              0.6.1                    py37_0    conda-forge
dask-kubernetes           0.10.0                     py_0    conda-forge
dask-labextension         1.0.3                      py_0    conda-forge
datashader                0.10.0                     py_0    conda-forge
datashape                 0.5.4                      py_1    conda-forge
dbus                      1.13.6               he372182_0    conda-forge
dcw-gmt                   1.1.4                      1001    conda-forge
decorator                 4.4.1                      py_0    conda-forge
defusedxml                0.6.0                      py_0    conda-forge
descartes                 1.1.0                      py_4    conda-forge
distributed               2.9.0                      py_0    conda-forge
docker-py                 4.2.0                    py37_0    conda-forge
docker-pycreds            0.4.0                      py_0    conda-forge
docopt                    0.6.2                      py_1    conda-forge
docrep                    0.2.7                      py_0    conda-forge
docutils                  0.15.2                   py37_0    conda-forge
entrypoints               0.3                   py37_1000    conda-forge
eofs                      1.4.0                      py_0    conda-forge
erddapy                   0.5.0                      py_0    conda-forge
esmf                      8.0.0           nompi_he6d0a24_5    conda-forge
esmpy                     8.0.0           nompi_py37hf0e99fa_1    conda-forge
expat                     2.2.9                he1b5a44_2    conda-forge
fastcache                 1.1.0            py37h516909a_0    conda-forge
fasteners                 0.14.1                     py_3    conda-forge
ffmpeg                    4.1.3                h167e202_0    conda-forge
fftw                      3.3.8           nompi_h7f3a6c3_1110    conda-forge
fiona                     1.8.13           py37h900e953_0    conda-forge
folium                    0.10.1                     py_0    conda-forge
fontconfig                2.13.1            h86ecdb6_1001    conda-forge
freetype                  2.10.0               he983fc9_1    conda-forge
freexl                    1.0.5             h14c3975_1002    conda-forge
fribidi                   1.0.5             h516909a_1002    conda-forge
fsspec                    0.6.2                      py_0    conda-forge
future                    0.18.2                   py37_0    conda-forge
gcsfs                     0.6.0                      py_0    conda-forge
gdal                      3.0.4            py37hbb6b9fb_0    conda-forge
gdk-pixbuf                2.38.2               h3f25603_0    conda-forge
geopandas                 0.6.2                      py_0    conda-forge
geos                      3.8.0                he1b5a44_0    conda-forge
geotiff                   1.5.1                h38872f0_8    conda-forge
geoviews                  1.6.6                      py_1    conda-forge
geoviews-core             1.6.6                      py_1    conda-forge
gettext                   0.19.8.1          hc5be6a0_1002    conda-forge
ghostscript               9.22              hf484d3e_1001    conda-forge
giflib                    5.2.1                h516909a_1    conda-forge
glib                      2.58.3          py37h6f030ca_1002    conda-forge
gmp                       6.2.0                he1b5a44_1    conda-forge
gmpy2                     2.1.0b1          py37h04dde30_0    conda-forge
gmt                       6.0.0                hed9e446_1    conda-forge
gnuplot                   5.2.7                h0fb2448_3    conda-forge
gnutls                    3.6.5             hd3a4fd2_1002    conda-forge
gobject-introspection     1.58.2          py37h5503ade_1002    conda-forge
google-auth               1.11.0                     py_0    conda-forge
google-auth-oauthlib      0.4.1                      py_1    conda-forge
graphicsmagick            1.3.33               h40aeb3c_0    conda-forge
graphite2                 1.3.13            hf484d3e_1000    conda-forge
graphviz                  2.42.3               h0511662_0    conda-forge
gshhg-gmt                 2.3.7                      1002    conda-forge
gsl                       2.5                  h294904e_1    conda-forge
gst-plugins-base          1.14.5               h0935bb2_1    conda-forge
gstreamer                 1.14.5               h36ae1b5_1    conda-forge
gsw                       3.3.1            py37hc1659b7_1    conda-forge
gtk2                      2.24.32              h586f36d_1    conda-forge
h5netcdf                  0.8.0                      py_0    conda-forge
h5py                      2.10.0          nompi_py37h513d04c_102    conda-forge
harfbuzz                  2.4.0                h9f30f68_3    conda-forge
hdf4                      4.2.13            hf30be14_1003    conda-forge
hdf5                      1.10.5          nompi_h3c11f04_1104    conda-forge
heapdict                  1.0.1                      py_0    conda-forge
holoviews                 1.12.7                     py_0    conda-forge
hvplot                    0.5.2                      py_0    conda-forge
icu                       64.2                 he1b5a44_1    conda-forge
idna                      2.8                   py37_1000    conda-forge
imageio                   2.6.1                    py37_0    conda-forge
importlib_metadata        1.5.0                    py37_0    conda-forge
inflect                   4.1.0                    py37_0    conda-forge
intake                    0.5.4                      py_0    conda-forge
intake-esm                2019.12.13                 py_0    conda-forge
intake-stac               0.2.3                      py_0    conda-forge
intake-xarray             0.3.1                      py_0    conda-forge
ipykernel                 5.1.4            py37h5ca1d4c_0    conda-forge
ipyleaflet                0.12.2                   py37_0    conda-forge
ipython                   7.12.0           py37h5ca1d4c_0    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                7.5.1                      py_0    conda-forge
iris                      2.2.0                 py37_1003    conda-forge
isodate                   0.6.0                    pypi_0    pypi
jaraco.itertools          5.0.0                      py_0    conda-forge
jedi                      0.16.0                   py37_0    conda-forge
jinja2                    2.11.1                     py_0    conda-forge
jmespath                  0.9.4                      py_0    conda-forge
joblib                    0.14.1                     py_0    conda-forge
jpeg                      9c                h14c3975_1001    conda-forge
json-c                    0.13.1            h14c3975_1001    conda-forge
json5                     0.9.0                      py_0    conda-forge
jsonschema                3.2.0                    py37_0    conda-forge
jupyter                   1.0.0                      py_2    conda-forge
jupyter-panel-proxy       0.1.0                      py_0    conda-forge
jupyter-server-proxy      1.2.0                      py_0    conda-forge
jupyter_client            5.3.4                    py37_1    conda-forge
jupyter_console           6.0.0                      py_0    conda-forge
jupyter_core              4.6.1                    py37_0    conda-forge
jupyterhub                1.0.0                    py37_0    conda-forge
jupyterlab                1.2.4                      py_0    conda-forge
jupyterlab_server         1.0.6                      py_0    conda-forge
kealib                    1.4.10            h58c409b_1005    conda-forge
kiwisolver                1.1.0            py37hc9558a2_0    conda-forge
krb5                      1.16.4               h2fd8d38_0    conda-forge
kubernetes_asyncio        10.0.1                     py_0    conda-forge
lame                      3.100             h14c3975_1001    conda-forge
ld_impl_linux-64          2.33.1               h53a641e_8    conda-forge
libblas                   3.8.0                    14_mkl    conda-forge
libcblas                  3.8.0                    14_mkl    conda-forge
libclang                  9.0.1           default_hde54327_0    conda-forge
libcurl                   7.68.0               hda55be3_0    conda-forge
libdap4                   3.20.4               hd3bb157_0    conda-forge
libedit                   3.1.20170329      hf8c457e_1001    conda-forge
libffi                    3.2.1             he1b5a44_1006    conda-forge
libgcc-ng                 9.2.0                h24d8f2e_2    conda-forge
libgd                     2.2.5             h307a58e_1007    conda-forge
libgdal                   3.0.4                h20022a4_0    conda-forge
libgfortran-ng            7.3.0                hdf63c60_5    conda-forge
libiconv                  1.15              h516909a_1005    conda-forge
libkml                    1.3.0             h4fcabce_1010    conda-forge
liblapack                 3.8.0                    14_mkl    conda-forge
libllvm8                  8.0.1                hc9558a2_0    conda-forge
libllvm9                  9.0.1                hc9558a2_0    conda-forge
libnetcdf                 4.7.3           nompi_h9f9fd6a_101    conda-forge
libpng                    1.6.37               hed695b0_0    conda-forge
libpq                     12.1                 hd9ab2ff_0    conda-forge
libsodium                 1.0.17               h516909a_0    conda-forge
libspatialindex           1.9.3                he1b5a44_1    conda-forge
libspatialite             4.3.0a            ha48a99a_1034    conda-forge
libssh2                   1.8.2                h22169c7_2    conda-forge
libstdcxx-ng              9.2.0                hdf63c60_2    conda-forge
libtiff                   4.1.0                hc3755c2_3    conda-forge
libtool                   2.4.6             h14c3975_1002    conda-forge
libuuid                   2.32.1            h14c3975_1000    conda-forge
libuv                     1.34.0               h516909a_0    conda-forge
libwebp                   1.0.2                h56121f0_5    conda-forge
libxcb                    1.13              h14c3975_1002    conda-forge
libxkbcommon              0.9.1                hebb1f50_0    conda-forge
libxml2                   2.9.10               hee79883_0    conda-forge
libxslt                   1.1.33               h31b3aaa_0    conda-forge
llvm-openmp               9.0.1                hc9558a2_2    conda-forge
llvmlite                  0.31.0           py37h8b12597_0    conda-forge
locket                    0.2.0                      py_2    conda-forge
lxml                      4.5.0            py37h7ec2d77_0    conda-forge
lz4                       3.0.2            py37hd79334b_0    conda-forge
lz4-c                     1.8.3             he1b5a44_1001    conda-forge
mako                      1.1.0                      py_0    conda-forge
markdown                  3.1.1                      py_0    conda-forge
markupsafe                1.1.1            py37h516909a_0    conda-forge
marshmallow               3.2.1                      py_0    conda-forge
marshmallow-oneofschema   2.0.1                      py_0    conda-forge
matplotlib                3.1.3                    py37_0    conda-forge
matplotlib-base           3.1.3            py37h250f245_0    conda-forge
mechanicalsoup            0.12.0                     py_0    conda-forge
mercantile                1.1.2                      py_0    conda-forge
metpy                     0.12.0                     py_0    conda-forge
mistune                   0.8.4           py37h516909a_1000    conda-forge
mkl                       2019.5                      281    conda-forge
mkl-service               2.3.0            py37h516909a_0    conda-forge
monotonic                 1.5                        py_0    conda-forge
more-itertools            8.2.0                      py_0    conda-forge
mpc                       1.1.0             h04dde30_1006    conda-forge
mpfr                      4.0.2                he80fd80_0    conda-forge
mpmath                    1.1.0                      py_0    conda-forge
msgpack-numpy             0.4.4.3                    py_0    conda-forge
msgpack-python            0.6.2            py37hc9558a2_0    conda-forge
msrest                    0.6.11                   pypi_0    pypi
msrestazure               0.6.2                    pypi_0    pypi
multidict                 4.7.4            py37h516909a_0    conda-forge
multipledispatch          0.6.0                      py_0    conda-forge
munch                     2.5.0                      py_0    conda-forge
mypy_extensions           0.4.3                    py37_0    conda-forge
nbconvert                 5.6.1                    py37_0    conda-forge
nbformat                  5.0.4                      py_0    conda-forge
nbgitpuller               0.8.0                      py_0    conda-forge
ncurses                   6.1               hf484d3e_1002    conda-forge
netcdf-fortran            4.5.2           nompi_h09cde99_103    conda-forge
netcdf4                   1.5.3           nompi_py37hd35fb8e_102    conda-forge
nettle                    3.4.1             h1bed415_1002    conda-forge
networkx                  2.4                        py_0    conda-forge
nodejs                    13.7.0               h10a4023_0    conda-forge
notebook                  6.0.3                    py37_0    conda-forge
nspr                      4.25                 he1b5a44_0    conda-forge
nss                       3.47                 he751ad9_0    conda-forge
numba                     0.48.0           py37hb3f55d8_0    conda-forge
numcodecs                 0.6.4            py37he1b5a44_0    conda-forge
numpy                     1.18.1           py37h95a1406_0    conda-forge
oauthlib                  3.0.1                      py_0    conda-forge
olefile                   0.46                       py_0    conda-forge
ooiod                     0.0.1                    pypi_0    pypi
openh264                  1.8.0             hdbcaa40_1000    conda-forge
openjpeg                  2.3.1                h981e76c_3    conda-forge
openssl                   1.1.1d               h516909a_0    conda-forge
owslib                    0.19.1                     py_0    conda-forge
packaging                 20.1                       py_0    conda-forge
palettable                3.3.0                      py_0    conda-forge
pamela                    1.0.0                      py_0    conda-forge
pandas                    1.0.1            py37hb3f55d8_0    conda-forge
pandoc                    2.9.1.1                       0    conda-forge
pandocfilters             1.4.2                      py_1    conda-forge
panel                     0.8.0                         0    conda-forge
pango                     1.42.4               ha030887_1    conda-forge
param                     1.9.3                      py_0    conda-forge
parso                     0.6.1                      py_0    conda-forge
partd                     1.1.0                      py_0    conda-forge
patsy                     0.5.1                      py_0    conda-forge
pcre                      8.43                 he1b5a44_0    conda-forge
pendulum                  2.0.5                    py37_0    conda-forge
pexpect                   4.8.0                    py37_0    conda-forge
pickleshare               0.7.5                 py37_1000    conda-forge
pillow                    7.0.0            py37hefe7db6_0    conda-forge
pint                      0.10.1                     py_0    conda-forge
pip                       20.0.2                     py_2    conda-forge
pixman                    0.38.0            h516909a_1003    conda-forge
pooch                     1.0.0                      py_0    conda-forge
poppler                   0.67.0               h14e79db_8    conda-forge
poppler-data              0.4.9                         1    conda-forge
postgresql                12.1                 hc63931a_0    conda-forge
prefect                   0.9.3                      py_0    conda-forge
proj                      6.3.0                hc80f0dc_0    conda-forge
prometheus_client         0.7.1                      py_0    conda-forge
prompt_toolkit            2.0.10                     py_0    conda-forge
properscoring             0.1                        py_0    conda-forge
psutil                    5.6.7            py37h516909a_0    conda-forge
pthread-stubs             0.4               h14c3975_1001    conda-forge
ptyprocess                0.6.0                   py_1001    conda-forge
pyasn1                    0.4.8                      py_0    conda-forge
pyasn1-modules            0.2.7                      py_0    conda-forge
pycamhd                   0.7.0                    pypi_0    pypi
pycparser                 2.19                     py37_1    conda-forge
pyct                      0.4.6                      py_0    conda-forge
pyct-core                 0.4.6                      py_0    conda-forge
pycurl                    7.43.0.5         py37h16ce93b_0    conda-forge
pydap                     3.2.2                 py37_1000    conda-forge
pyepsg                    0.4.0                      py_0    conda-forge
pygments                  2.5.2                      py_0    conda-forge
pygmt                     0.0.1a0+69.g320a728          pypi_0    pypi
pyinterp                  0.1.1            py37h97f2665_1    conda-forge
pyjwt                     1.7.1                      py_0    conda-forge
pykdtree                  1.3.1           py37hc1659b7_1002    conda-forge
pyke                      1.1.1                 py37_1001    conda-forge
pyopenssl                 19.1.0                   py37_0    conda-forge
pyorbital                 1.5.0                      py_0    conda-forge
pyparsing                 2.4.6                      py_0    conda-forge
pyproj                    2.4.2.post1      py37h8ff28aa_1    conda-forge
pyqt                      5.12.3           py37hcca6a23_1    conda-forge
pyqt5-sip                 4.19.18                  pypi_0    pypi
pyqtwebengine             5.12.1                   pypi_0    pypi
pyresample                1.14.0           py37hb3f55d8_2    conda-forge
pyrsistent                0.15.7           py37h516909a_0    conda-forge
pyshp                     2.1.0                      py_0    conda-forge
pysocks                   1.7.1                    py37_0    conda-forge
pyspectral                0.9.5                      py_0    conda-forge
pyspharm                  1.0.9           py37h7eb8c7e_1004    conda-forge
python                    3.7.6                h357f687_2    conda-forge
python-blosc              1.8.3            py37hb3f55d8_0    conda-forge
python-box                4.0.4                      py_0    conda-forge
python-dateutil           2.7.5                      py_0    conda-forge
python-editor             1.0.4                      py_0    conda-forge
python-geotiepoints       1.1.8            py37hc1659b7_0    conda-forge
python-graphviz           0.13.2                     py_0    conda-forge
python-kubernetes         10.0.1                   py37_0    conda-forge
python-slugify            4.0.0                      py_0    conda-forge
python-snappy             0.5.4            py37hee44bf9_1    conda-forge
python-wget               3.2                        py_0    conda-forge
pytide                    1.2.2            py37h9de70de_0    conda-forge
pytz                      2019.3                     py_0    conda-forge
pytzdata                  2019.3                     py_0    conda-forge
pyviz_comms               0.7.3                      py_0    conda-forge
pywavelets                1.1.1            py37hc1659b7_0    conda-forge
pyyaml                    5.3              py37h516909a_0    conda-forge
pyzmq                     18.1.1           py37h1768529_0    conda-forge
qt                        5.12.5               hd8c4c69_1    conda-forge
qtconsole                 4.6.0                      py_0    conda-forge
rasterio                  1.1.1            py37h900e953_0    conda-forge
readline                  8.0                  hf8c457e_0    conda-forge
regionmask                0.5.0                      py_1    conda-forge
requests                  2.22.0                   py37_1    conda-forge
requests-oauthlib         1.2.0                      py_0    conda-forge
rio-cogeo                 1.1.6                      py_0    conda-forge
rsa                       4.0                        py_0    conda-forge
rtree                     0.9.3            py37h7b0cdae_0    conda-forge
ruamel.yaml               0.16.6           py37h516909a_0    conda-forge
ruamel.yaml.clib          0.2.0            py37h516909a_0    conda-forge
s3fs                      0.4.0                      py_0    conda-forge
s3transfer                0.3.2                    py37_0    conda-forge
sat-search                0.2.2                      py_0    conda-forge
sat-stac                  0.3.3                      py_0    conda-forge
satpy                     0.19.1             pyh1b696ab_0    conda-forge
scikit-image              0.16.2           py37hb3f55d8_0    conda-forge
scikit-learn              0.22.1           py37hcdab131_1    conda-forge
scipy                     1.4.1            py37h921218d_0    conda-forge
seaborn                   0.10.0                     py_1    conda-forge
send2trash                1.5.0                      py_0    conda-forge
setuptools                45.1.0                   py37_0    conda-forge
shapely                   1.7.0            py37h5d51c17_0    conda-forge
simpervisor               0.3                        py_1    conda-forge
six                       1.14.0                   py37_0    conda-forge
snappy                    1.1.8                he1b5a44_1    conda-forge
snuggs                    1.4.7                      py_0    conda-forge
sortedcontainers          2.1.0                      py_0    conda-forge
soupsieve                 1.9.4                    py37_0    conda-forge
sparse                    0.9.1                      py_0    conda-forge
sqlalchemy                1.3.13           py37h516909a_0    conda-forge
sqlite                    3.30.1               hcee41ef_0    conda-forge
statsmodels               0.11.0           py37h516909a_0    conda-forge
supermercado              0.0.5                      py_0    conda-forge
sympy                     1.5.1                    py37_1    conda-forge
tabulate                  0.8.6                      py_0    conda-forge
tbb                       2018.0.5             h2d50403_0    conda-forge
tblib                     1.6.0                      py_0    conda-forge
terminado                 0.8.3                    py37_0    conda-forge
testpath                  0.4.4                      py_0    conda-forge
text-unidecode            1.2                        py_0    conda-forge
tiledb                    1.7.0                hcde45ca_2    conda-forge
tiledb-py                 0.5.1            py37h1f275fc_0    conda-forge
tk                        8.6.10               hed695b0_0    conda-forge
toml                      0.10.0                     py_0    conda-forge
toolz                     0.10.0                     py_0    conda-forge
tornado                   6.0.3            py37h516909a_0    conda-forge
tqdm                      4.42.1                     py_0    conda-forge
traitlets                 4.3.3                    py37_0    conda-forge
traittypes                0.2.1                      py_1    conda-forge
trollimage                1.11.0                     py_0    conda-forge
trollsift                 0.3.4                      py_0    conda-forge
typing_extensions         3.7.4.1                  py37_0    conda-forge
tzcode                    2019a             h516909a_1002    conda-forge
udunits2                  2.2.27.6          h4e0c4b3_1001    conda-forge
unidecode                 1.1.1                      py_0    conda-forge
urllib3                   1.25.7                   py37_0    conda-forge
vega                      2.6.0                    py37_0    conda-forge
vega_datasets             0.8.0                      py_0    conda-forge
vincent                   0.4.4                      py_1    conda-forge
watermark                 2.0.2                      py_0    conda-forge
wcwidth                   0.1.8                      py_0    conda-forge
webencodings              0.5.1                      py_1    conda-forge
webob                     1.8.6                      py_0    conda-forge
websocket-client          0.57.0                   py37_0    conda-forge
wheel                     0.34.2                     py_1    conda-forge
widgetsnbextension        3.5.1                    py37_0    conda-forge
windspharm                1.7.0                 py37_1001    conda-forge
x264                      1!152.20180806       h14c3975_0    conda-forge
xarray                    0.15.0                     py_0    conda-forge
xerces-c                  3.2.2             h8412b87_1004    conda-forge
xesmf                     0.2.1                      py_0    conda-forge
xgcm                      0.3.0                      py_0    conda-forge
xhistogram                0.1.1                      py_0    conda-forge
xlrd                      1.2.0                      py_0    conda-forge
xorg-kbproto              1.0.7             h14c3975_1002    conda-forge
xorg-libice               1.0.10               h516909a_0    conda-forge
xorg-libsm                1.2.3             h84519dc_1000    conda-forge
xorg-libx11               1.6.9                h516909a_0    conda-forge
xorg-libxau               1.0.9                h14c3975_0    conda-forge
xorg-libxdmcp             1.1.3                h516909a_0    conda-forge
xorg-libxext              1.3.4                h516909a_0    conda-forge
xorg-libxpm               3.5.13               h516909a_0    conda-forge
xorg-libxrender           0.9.10            h516909a_1002    conda-forge
xorg-libxt                1.1.5             h516909a_1003    conda-forge
xorg-renderproto          0.11.1            h14c3975_1002    conda-forge
xorg-xextproto            7.3.0             h14c3975_1002    conda-forge
xorg-xproto               7.0.31            h14c3975_1007    conda-forge
xrft                      0.2.0                      py_0    conda-forge
xrviz                     0.1.4                      py_1    conda-forge
xskillscore               0.0.12                     py_0    conda-forge
xz                        5.2.4             h14c3975_1001    conda-forge
yaml                      0.2.2                h516909a_1    conda-forge
yarl                      1.3.0           py37h516909a_1000    conda-forge
zarr                      2.4.0                      py_0    conda-forge
zeromq                    4.3.2                he1b5a44_2    conda-forge
zict                      1.0.0                      py_0    conda-forge
zipp                      2.1.0                      py_0    conda-forge
zlib                      1.2.11            h516909a_1006    conda-forge
zstd                      1.4.4                h3b9ef0a_1    conda-forge

Any thoughts what might be causing this? Thank you for any help you can provide!

seisman commented 4 years ago

I can't reproduce your corruption locally. You can add V='d' to basemap and plot to print more debug messages, i.e.

fig.basemap(region=region, projection="X6i", frame=True, V='d')
fig.plot(x, y, style="i0.5c", color="black", V='d')
tjcrone commented 4 years ago

Thank you for the help @seisman. Here is the output with V='d':

plot [DEBUG]: Look for file 150/240/-10/60 in /home/jovyan/.gmt
plot [DEBUG]: Look for file 150/240/-10/60 in /home/jovyan/.gmt/cache
plot [DEBUG]: Look for file 150/240/-10/60 in /home/jovyan/.gmt/server
plot [DEBUG]: Look for file 150/240/-10/60 in /home/jovyan/.gmt/server/srtm1
plot [DEBUG]: Look for file 150/240/-10/60 in /home/jovyan/.gmt/server/srtm3
plot [DEBUG]: Got regular w/e/s/n for region (150/240/-10/60)
plot [INFORMATION]: Processing input table data
plot [DEBUG]: Operation will require 2 input columns [n_cols_start = 2]
plot [DEBUG]: Projected values in meters: 150 240 -10 60
plot [INFORMATION]: Map scale is 0.00590551 km per cm or 1:590.551.
plot [DEBUG]: Running in PS mode modern
plot [DEBUG]: Use PS filename /home/jovyan/.gmt/sessions/gmt6.4949/gmt_1.ps-
plot [DEBUG]: Append to hidden PS file /home/jovyan/.gmt/sessions/gmt6.4949/gmt_1.ps-
plot [DEBUG]: Got session name as pygmt-session and default graphics formats as pdf
plot [DEBUG]: api_init_import: Passed family = Data Table and geometry = Point
psxy (api_init_import): tried to free unallocated memory
plot [DEBUG]: api_init_import: Added 1 new sources
plot [DEBUG]: GMT_Init_IO: Returned first Input object ID = 0
plot [DEBUG]: GMT_Begin_IO: Mode value 1 not considered (ignored)
plot [DEBUG]: GMT_Begin_IO: Initialize record-by-record access for Input
plot [DEBUG]: api_next_io_source: Selected object 0
plot [INFORMATION]: Reading Data Table from Input memory location via vector
plot [DEBUG]: GMT_Begin_IO: Input resource access is now enabled [record-by-record]
plot [DEBUG]: GMT_End_IO: Input resource access is now disabled
plot [DEBUG]: Current size of half-baked PS file /home/jovyan/.gmt/sessions/gmt6.4949/gmt_1.ps- = 26061.
psxy (gmt_freepen): tried to free unallocated memory
psxy (gmt_freepen): tried to free unallocated memory
psxy (gmtlib_free_tmp_arrays): tried to free unallocated memory
tjcrone commented 4 years ago

I ran pygmt.test() and got a core dump on open_virtual_file:

(notebook) jovyan@jupyter-tjcrone:~$ python
Python 3.7.6 | packaged by conda-forge | (default, Jan  7 2020, 22:33:48) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygmt
>>> pygmt.test()
Loaded libgmt:
  binary dir: /srv/conda/envs/notebook/bin
  cores: 2
  grid layout: rows
  library path: /srv/conda/envs/notebook/lib/libgmt.so
  padding: 2
  plugin dir: /srv/conda/envs/notebook/lib/gmt/plugins
  share dir: /srv/conda/envs/notebook/share/gmt
  version: 6.0.0
================================================== test session starts ===================================================
platform linux -- Python 3.7.6, pytest-5.3.5, py-1.8.1, pluggy-0.12.0 -- /srv/conda/envs/notebook/bin/python
cachedir: .pytest_cache
Matplotlib: 3.1.3
Freetype: 2.10.0
rootdir: /home/jovyan
plugins: mpl-0.11
collected 212 items                                                                                                      

base_plotting.py::pygmt.base_plotting.BasePlotting._preprocess <- ../../srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/base_plotting.py PASSED [  0%]
figure.py::pygmt.figure.Figure <- ../../srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/figure.py PASSED [  0%]
clib/conversion.py::pygmt.clib.conversion._as_array <- ../../srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/clib/conversion.py PASSED [  1%]
clib/conversion.py::pygmt.clib.conversion.as_c_contiguous <- ../../srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/clib/conversion.py PASSED [  1%]
clib/conversion.py::pygmt.clib.conversion.dataarray_to_matrix <- ../../srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/clib/conversion.py PASSED [  2%]
clib/conversion.py::pygmt.clib.conversion.kwargs_to_ctypes_array <- ../../srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/clib/conversion.py PASSED [  2%]
clib/conversion.py::pygmt.clib.conversion.vectors_to_arrays <- ../../srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/clib/conversion.py PASSED [  3%]
clib/session.py::pygmt.clib.session.Session <- ../../srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/clib/session.py PASSED [  3%]
clib/session.py::pygmt.clib.session.Session._check_dtype_and_dim <- ../../srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/clib/session.py PASSED [  4%]
clib/session.py::pygmt.clib.session.Session.extract_region <- ../../srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/clib/session.py PASSED [  4%]
clib/session.py::pygmt.clib.session.Session.get_libgmt_func <- ../../srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/clib/session.py PASSED [  5%]
clib/session.py::pygmt.clib.session.Session.open_virtual_file <- ../../srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/clib/session.py Fatal Python error: Aborted

Current thread 0x00007fa769b6b740 (most recent call first):
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/clib/session.py", line 403 in destroy
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/clib/session.py", line 196 in __exit__
  File "<doctest pygmt.clib.session.Session.open_virtual_file[5]>", line 19 in <module>
  File "/srv/conda/envs/notebook/lib/python3.7/doctest.py", line 1329 in __run
  File "/srv/conda/envs/notebook/lib/python3.7/doctest.py", line 1475 in run
  File "/srv/conda/envs/notebook/lib/python3.7/doctest.py", line 1836 in run
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/doctest.py", line 235 in runtest
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/runner.py", line 134 in pytest_runtest_call
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/manager.py", line 81 in <lambda>
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/manager.py", line 87 in _hookexec
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/hooks.py", line 289 in __call__
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/runner.py", line 210 in <lambda>
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/runner.py", line 237 in from_call
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/runner.py", line 210 in call_runtest_hook
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/runner.py", line 185 in call_and_report
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/runner.py", line 99 in runtestprotocol
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/runner.py", line 84 in pytest_runtest_protocol
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/manager.py", line 81 in <lambda>
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/manager.py", line 87 in _hookexec
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/hooks.py", line 289 in __call__
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/main.py", line 271 in pytest_runtestloop
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/manager.py", line 81 in <lambda>
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/manager.py", line 87 in _hookexec
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/hooks.py", line 289 in __call__
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/main.py", line 247 in _main
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/main.py", line 197 in wrap_session
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/main.py", line 240 in pytest_cmdline_main
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/manager.py", line 81 in <lambda>
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/manager.py", line 87 in _hookexec
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pluggy/hooks.py", line 289 in __call__
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/_pytest/config/__init__.py", line 93 in main
  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/pygmt/__init__.py", line 98 in test
  File "<stdin>", line 1 in <module>
Aborted (core dumped)
tjcrone commented 4 years ago

I searched the Google machine for gmt "tried to free" memory, and got quite a few hits. Seems like a common bug varietal in various GMT modules over the years. I wonder why I am getting it when you are not @seisman. Is there an easy way that I can make sure I am using the same version of code that you are using?

tjcrone commented 4 years ago

Something else I am suspecting perhaps is the Linux kernel we are on, or the distribution, or some other library. Any suggestions you have would be greatly appreciated! Thanks.

seisman commented 4 years ago

Hard to say why it corrupts for you. pygmt is tested on macOS and Linux nightly, and we don't see any corruptions.

The pygmt.test() says Fatal Python error: Aborted. Is it possible something wrong with the Python part (i.e. other broken package)?

tjcrone commented 4 years ago

Well, pretty sure this is a segmentation fault in one of the modules. I think the key clue is:

psxy (gmt_freepen): tried to free unallocated memory
psxy (gmt_freepen): tried to free unallocated memory
psxy (gmtlib_free_tmp_arrays): tried to free unallocated memory

Would be great to know if there is a difference between the GMT library I have and the one you have. How can we check this?

seisman commented 4 years ago

Those are GMT debug messages. It doesn't mean GMT corrupts.

You can check the detailed version information with:

import pygmt
pygmt.print_clib_info()
tjcrone commented 4 years ago

Thanks! What is your output from that command?

tjcrone commented 4 years ago

@leouieda, any thoughts on this? It seems clear that psxy is trying to free unallocated memory leading to a double free, and Python does not like that. The python interpreter rarely crashes out like this, but it can do so when a C program does something bad with malloc. I wonder if the version of Python we are on is not as lenient about stuff like this as the one you are using for your tests. I am hoping to determine what versions (i.e. builds) of the GMT library you are using, as well as Python. Can you help with this? Thanks!

seisman commented 4 years ago

This is my output:

Loaded libgmt:
  binary dir: /Users/seisman/.anaconda/envs/pygmt/bin
  cores: 8
  grid layout: rows
  library path: /Users/seisman/.anaconda/envs/pygmt/lib/libgmt.dylib
  padding: 2
  plugin dir: /Users/seisman/.anaconda/envs/pygmt/lib/gmt/plugins
  share dir: /Users/seisman/.anaconda/envs/pygmt/share/gmt
  version: 6.0.0
leouieda commented 4 years ago

@tjcrone ouch. I love how interfacing with C code keeps coming back to bite us :-) The most frustrating part is that these crashes seems to be somewhat random.

I wonder if the version of Python we are on is not as lenient about stuff like this as the one you are using for your tests

That's probably not it since we test with the latest Python 3.7 from conda-forge.

I'm guessing you're running this on a Pangeo JupyterHub, right? Any idea what the underlying system is?

tjcrone commented 4 years ago

Thanks for the followup @leouieda. Currently the underlying system of Pangeo is Ubuntu Bionic. But I don't think it's the kernel or the system. I think I might have narrowed it down to an installation of PyAV, which also uses Cython, and may install incompatible libraries. I'll keep you posted if/when I find a fix. Thanks!

tjcrone commented 4 years ago

In case anyone is wondering, it was actually the pyinterp package that somehow includes something that makes gmt=6.0.0 segmentation fault. I never got to the bottom of the issue, just removed pyinterp from the OOI Pangeo notebook image, and it seems to be working okay. Thanks everyone for the help!

leouieda commented 4 years ago

Thank you for posting, Tim! That's a strange bug and probably something we didn't specify well enough in the GMT build.