Closed n01r closed 1 month ago
Is it possible to implement error handling and pass that error to the user as well as terminate the execution?
This might be related with this other issue https://github.com/optimas-org/optimas/issues/218, which also freezes instead of crashing.
In that case, the freezing problem was also observed when using TemplateEvaluator
.
This is a bug with gen_on_manager
where the manager waits on the thread shutting down too soon creating a deadlock. Should be fixed by https://github.com/Libensemble/libensemble/pull/1348
Our fix is now in the released libEnsemble from v1.4.0
Perfect, the error passing is working now. :)
If you have a
FunctionEvaluator
(and possibly other evaluator types, too?) and inside the function an error occurs, e.g., when a variable is uninitialized (for instance due to a typo) the execution of an optimas script will just freeze and there is no crash or backtrace that can tell a user what went wrong.Reproducer: use an example from the docs and print an uninitialized variable.
Should give the error
but instead the execution just freezes.