Skip to content
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

None existing TRANNNC gives ERT abort which crashes ResInsight #278

Closed
hhgs opened this issue Feb 23, 2015 · 2 comments
Closed

None existing TRANNNC gives ERT abort which crashes ResInsight #278

hhgs opened this issue Feb 23, 2015 · 2 comments
Labels
Bug Bug not yet in an official release

Comments

@hhgs
Copy link
Member

hhgs commented Feb 23, 2015

Case read ok by ResInsight when NNC trans-values are not imported.

When NCC-trans-values are read, ResInsight crashes, apparently because no TRANNNC exists. This would be more user-friendly handled by giving a warning info box to the user.

The error log-file produced by ERT:

Abort called from: __hash_get_node_unlocked (/home/jenkins/resinsight/RH5/workspace/ResInsight-Master-RH5-Octave3.8.1/ThirdParty/Ert/devel/libert_util/src/hash.c:146)
__hash_get_node_unlocked: tried to get from key:TRANNNC which does not exist - aborting


#00 ???(..) in util.c:0
#1 util_abort__(..) in ??:0
#2 hash_get(..) in ??:0
#3 ???(..) in ecl_file.c:0
#4 ???(..) in ecl_nnc_export.c:0
#5 ecl_nnc_export(..) in ??:0
#6 _ZN22RifReaderEclipseOutput15transferNNCDataEPK15ecl_grid_structPK15ecl_file_structP11RigMainGrid(..) in ??:0
#7 _ZN22RifReaderEclipseOutput4openERK7QStringP11RigCaseData(..) in ??:0
#8 _ZN13RimResultCase19openEclipseGridFileEv(..) in ??:0
#9 _ZN7RimCase17openReserviorCaseEv(..) in ??:0
#10 _ZN16RimReservoirView17loadDataAndUpdateEv(..) in ??:0
#11 ZN14RiaApplication15openEclipseCaseERK7QStringS2(..) in ??:0
#12 _ZN14RiaApplication23openEclipseCaseFromFileERK7QString(..) in ??:0
#13 _ZN13RiuMainWindow21slotImportEclipseCaseEv(..) in ??:0
#14 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv(..) in ??:0
#15 _ZN7QAction9triggeredEb(..) in ??:0
#16 _ZN7QAction8activateENS_11ActionEventE(..) in ??:0
#17 ???(..) in ??:0
#18 ???(..) in ??:0
#19 _ZN7QWidget5eventEP6QEvent(..) in ??:0
#20 _ZN5QMenu5eventEP6QEvent(..) in ??:0
#21 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent(..) in ??:0
#22 _ZN12QApplication6notifyEP7QObjectP6QEvent(..) in ??:0
#23 _ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent(..) in ??:0
#24 _ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb(..) in ??:0
#25 ???(..) in ??:0
#26 _ZN12QApplication15x11ProcessEventEP7_XEvent(..) in ??:0
#27 ???(..) in ??:0
#28 g_main_context_dispatch(..) in ??:0
#29 ???(..) in ??:0
#30 g_main_context_iteration(..) in ??:0
#31 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE(..) in ??:0
#32 ???(..) in ??:0
#33 _ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE(..) in ??:0
#34 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE(..) in ??:0
#35 _ZN16QCoreApplication4execEv(..) in ??:0
#36 main(..) in ??:0
#37 __libc_start_main(..) in ??:0
#38 _ZNK9QTreeView7drawRowEP8QPainterRK20QStyleOptionViewItemRK11QModelIndex(..) in ??:0


@hhgs hhgs added the Bug Bug not yet in an official release label Feb 23, 2015
JacobStoren added a commit that referenced this issue Feb 24, 2015
See Issue #278. (Not fixing the issue, just improving code)
@joakim-hove
Copy link
Member

OK; this has been fixed in Ensembles/ert#731 and Ensembles/ert#736. With the current changes behaviour is roughly as follows:

int num_geometric_nnc = ecl_nnc_export_get_size( grid );
std::vector<ecl_nnc_type> nnc_data( num_geometric_nnc );
int num_nnc_with_tran = ecl_nnc_export( grid , init_file , nnc_data.data());

if (num_nnc_with_tran <  num_geometric_nnc) 
    Warning("Missing TRAN values - using HUGE_VAL");

@JacobStoren
Copy link
Member

The ERT changes has been migrated into ResInsight and available on the dev branch from commit a5fba8f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug not yet in an official release
Projects
None yet
Development

No branches or pull requests

3 participants