equinor / ert

ERT - Ensemble based Reservoir Tool - is designed for running ensembles of dynamical models such as reservoir models, in order to do sensitivity analysis and data assimilation. ERT supports data assimilation using the Ensemble Smoother (ES), Ensemble Smoother with Multiple Data Assimilation (ES-MDA) and Iterative Ensemble Smoother (IES).
https://ert.readthedocs.io/en/latest/
GNU General Public License v3.0
103 stars 107 forks source link

None arglist gives AttributeError, should give ConfigValidationError #5767

Closed eivindjahren closed 1 year ago

eivindjahren commented 1 year ago

The following condition can apparently happening, although we don't have a way of reproducing it yet:

ERT crashed unexpectedly with "'NoneType' object has no attribute 'append'"
Traceback (most recent call last):
File ".../ert/__main__.py", line 599, in main
args.func(args, context.plugin_manager)
File ".../ert/__main__.py", line 199, in run_gui_wrapper
run_gui(args, ert_plugin_manager)
File ".../ert/gui/main.py", line 52, in run_gui
window, ens_path, ensemble_size, parameter_config = _start_initial_gui_window(
File ".../ert/gui/main.py", line 128, in _start_initial_gui_window
ert_config = ErtConfig.from_file(args.config)
File ".../ert/_c_wrappers/enkf/ert_config.py", line 96, in from_file
user_config_dict = ErtConfig.read_user_config(
File ".../ert/_c_wrappers/enkf/ert_config.py", line 295, in read_user_config
return lark_parse(
File ".../ert/parsing/lark_parser.py", line 535, in parse
config_dict = _tree_to_dict(
File "...ert/parsing/lark_parser.py", line 224, in _tree_to_dict
arglist.append(value_list)
AttributeError: 'NoneType' object has no attribute 'append'
oysteoh commented 1 year ago

Think this duplicates #5711 and should have been patched in 2023.06.04