-
Notifications
You must be signed in to change notification settings - Fork 243
Closed
Labels
bugSomething isn't workingSomething isn't workingupstreamBug or missing feature of upstream core GMTBug or missing feature of upstream core GMT
Milestone
Description
Description of the problem
When calling fig.meca(data, scale=".3") where data is a pandas DataFrame with a column called "event_name", a segmentation fault occurs.
Minimal Complete Verifiable Example
import pandas as pd
import pygmt
R = [-125, -122.25, 46, 48.5]
J = "M5c"
dat = pd.DataFrame(
{"longitude": [-122.597],
"latitude": [47.014],
"depth": [50.0],
"strike": [14.0],
"dip": [82.0],
"rake": [-135.0],
"magnitude": [6.7],
"year": [1949],
"size": [0.67],
"event_name": ["1949 M6.7"]
}
)
fig = pygmt.Figure()
fig.meca(dat, scale=".3", region=R, projection=J)
Full error message
free(): double free detected in tcache 2
Aborted (core dumped)
System information
PyGMT information:
version: v0.9.0
System information:
python: 3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]
executable: /home/xxx/.conda/envs/gmt/bin/python
machine: Linux-5.4.0-121-generic-x86_64-with-glibc2.31
Dependency information:
numpy: 1.24.3
pandas: 2.0.1
xarray: 2023.4.2
netCDF4: 1.6.3
packaging: 23.1
contextily: None
geopandas: None
ghostscript: 9.54.0
GMT library information:
binary version: 6.4.0
cores: 32
grid layout: rows
image layout:
library path: /home/xxx/.conda/envs/gmt/lib/libgmt.so
padding: 2
plugin dir: /home/xxx/.conda/envs/gmt/lib/gmt/plugins
share dir: /home/xxx/.conda/envs/gmt/share/gmt
version: 6.4.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingupstreamBug or missing feature of upstream core GMTBug or missing feature of upstream core GMT