-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Summary loading crashes on mangling smspec data #251
Comments
One way to detect this scenario that will trigger the crash can be done in Python with: import resfo
smspec = resfo.read("SOMETHING_WITH_LICENSE_ERROR.SMSPEC")
if not len([val[1] for val in a if val[0] == "KEYWORDS"][0]):
print(f"There is no TIME information in the SMSPEC file: {smspec_filename}" @eivindjahren might have other ideas? |
Can't we fixed it from Then we don't need to fix it in all tools that using |
@alifbe Probably a good idea to make resdata not use The code in question is this https://github.com/eivindjahren/ecl/blob/8f443d1b2771239c9661b98c60769956ef6c0c8c/lib/resdata/rd_smspec.cpp#L1211-L1264 if it returns NULL then And then And which ends with an excption in I think it makes sense to make the signaling method for |
The lines in
https://github.com/equinor/fmu-
ensemble/blob/af1bc17a7b60b8e8ec0808412eaade73136fac8e/src/fmu/ensemble/realization.py#L983-L990
is supposed to catch summary loading failures, but if resdata exits with
util_abort()
then nothing can be done, it will not be caught byIOError
.For realizations where Eclipse has crashed with a License error, the SMSPEC files and UNSMRY files are left in a state where it will trigger an
util_abort()
. This situation is unfortunately common enough that this situation should be catched.fmu_ensemble
must then detect this situation before it happens to avoid calling the C-code that callsutil_abort
.Example of error in this scenario (reproduced with
res2csv
):The text was updated successfully, but these errors were encountered: