Mantaflow likes to throw exceptions when things go wrong, which includes a simple case of the solver not converging sufficiently. This should not be catastrophic, but cleanup of buffers is omitted when such an exception occurs. This then leads to yet another failure when the solver is stopped because of incorrect buffer refcounts. That exception bubbles up through the python layer and causes errors in the Blender integration wrapper that cause crashes. Pull Request: https://projects.blender.org/blender/blender/pulls/147527
Mantaflow
Mantaflow is an open-source framework targeted at fluid simulation research in Computer Graphics. Its parallelized C++ solver core, python scene definition interface and plugin system allow for quickly prototyping and testing new algorithms.
In addition, it provides a toolbox of examples for deep learning experiments with fluids. E.g., it contains examples how to build convolutional neural network setups in conjunction with the tensorflow framework.
For more information on how to install, run and code with Mantaflow, please head over to our home page at http://mantaflow.com
Debugging
You could export openVDB volume into mantaflow, by running Blender with:
blender --debug-value 3001
And then select Domain -> Fluid -> Cache - > Advanced -> Export Mantaflow Script.