equinor / equinor/resdata

Error loading EGRID file using res2df and resdata

Open
#1,041 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
127
Forks
103
Avg merge
2d 5h
Merged PRs (30d)
18

Description

Hello @here, I hope you can help me with this issue while I try to load an EGRID file using res2df and resdata.

ERROR:

`Abort called from: rd_type_create_from_name (/Users/runner/work/resdata/resdata/lib/resdata/rd_type.cpp:115)

Error message: rd_type_create_from_name: unrecognized type name:E7� `

LOG:

`--------------------------------------------------------------------------------
Stack trace (most recent call last):
#24 Object "python3.12", at 0x1021b4fff, in main + 55
#23 Object "python3.12", at 0x102418be3, in pymain_main + 551
#22 Object "python3.12", at 0x1024178ab, in Py_RunMain + 1123
#21 Object "python3.12", at 0x10241823b, in pymain_run_file + 71
#20 Object "python3.12", at 0x102418877, in pymain_run_file_obj + 179
#19 Object "python3.12", at 0x1023eea8f, in _PyRun_AnyFileObject + 79
#18 Object "python3.12", at 0x1023ef19b, in _PyRun_SimpleFileObject + 287
#17 Object "python3.12", at 0x1023ef7cf, in pyrun_file + 155
#16 Object "python3.12", at 0x1023efa53, in run_mod + 287
#15 Object "python3.12", at 0x10234a643, in PyEval_EvalCode + 259
#14 Object "python3.12", at 0x10237b6b7, in _PyEval_EvalFrameDefault + 192067
#13 Object "python3.12", at 0x1022b6f83, in type_call + 147
#12 Object "python3.12", at 0x1022c1c7b, in slot_tp_init + 543
#11 Object "python3.12", at 0x10237b6b7, in _PyEval_EvalFrameDefault + 192067
#10 Object "python3.12", at 0x1022be22f, in slot_tp_call + 131
#9 Object "python3.12", at 0x10222da37, in _PyObject_Call_Prepend + 155
#8 Object "python3.12", at 0x10237fa17, in _PyEval_EvalFrameDefault + 209315
#7 Object "_ctypes.cpython-312-darwin.so", at 0x1028e5f8b, in PyCFuncPtr_call + 231
#6 Object "_ctypes.cpython-312-darwin.so", at 0x1028ec10f, in _ctypes_callproc + 755
#5 Object "libffi.8.dylib", at 0x102909833, in ffi_call_int + 1403
#4 Object "libffi.8.dylib", at 0x10290c04b, in ffi_call_SYSV + 75
#3 Object "libresdata.dylib", at 0x102fe1c1b, in rd_file_open + 263
#2 Object "libresdata.dylib", at 0x102fc70cf, in rd_kw_fread_header + 503
#1 Object "libresdata.dylib", at 0x102feb99b, in rd_type_create_from_name + 307
#0 Object "libresdata.dylib", at 0x102f8274b, in util_abort__ + 139
--------------------------------------------------------------------------------`

I found the error rises in this py,

[resdata](https://github.com/equinor/resdata/tree/3780e5a31afc3de81246976dd67065b55a265c15)/[lib](https://github.com/equinor/resdata/tree/3780e5a31afc3de81246976dd67065b55a265c15/lib)/[resdata](https://github.com/equinor/resdata/tree/3780e5a31afc3de81246976dd67065b55a265c15/lib/resdata)
/rd_type.cpp

in the function that tries to read the data type rd_data_type rd_type_create_from_name, and have no clue what could be causing the error and how to solve it.

Hope you can help me.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.