equinor / xtgeo

XTGeo Python class library for subsurface Surfaces, Cubes, Wells, Grids, Points, etc
https://xtgeo.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
109 stars 56 forks source link

Core dump when converting from "ijxyz" surfaces to "irap_binary" in some cases #1187

Closed jcrivenaes closed 3 months ago

jcrivenaes commented 3 months ago

Reported by Yusuf Harmankaya in the Auto4D team:

surf = xtgeo.surface_from_file(input, fformat="ijxyz")
surf.to_file(output, fformat="irap_binary")

This seems to function fine standalone, but when several jobs are ran in parallel, it will in some cases give this error:

double free or corruption (!prev)
(core dumped) python3 convert_map_to_irap.py -input=/scratch/auto4d/volumes/20759_4D_JS_FulRes_20au-19auP_dTS_0535_rms_EQ19231_2790-3393_2937-3367.dat -output=/scratch/auto4d/userhorizons/yuh/4D_JS_FulRes_20au-19auP_dTS_0535_rms.gri

It seems to occur a bit random

jcrivenaes commented 3 months ago

It was tested initially in version 3.4. In version 3.8, the errors were not reproduced, so issue is closed.