Yes, all these different configurations make the problem a bit confusing. I am testing on 2 different machines. Linux with a GPU, and Windows with no GPU. Here is the state of it right now in C++:
// crash results on CPU/Windows:
DUMMY_INPUT + CPU_MODEL -> no crash
REAL_INPUT + CPU_MODEL-> crash
DUMMY_INPUT + GPU_MODEL-> crash
REAL_INPUT + GPU_MODEL->crash
// crash results on GPU/Linux
DUMMY_INPUT + CPU_MODEL-> no crash
REAL_INPUT + CPU_MODEL-> no crash, wrong result
DUMMY_INPUT + GPU_MODEL-> no crash
REAL_INPUT + GPU_MODEL->ok, good result
What i call “CPU_MODEL” is the model traced using the CPU.
I do not have a specific error message other than  segmentation fault (core dumped)
Debugging with Visual C++ raises an exception in kernel_lambda.h, in this specific function in class WrapRuntimeKernelFunctor_:
auto operator()(Parameters... args) -> decltype(std::declval<FuncType>()(std::forward<Parameters>(args)...)) {

      return kernel_func_(std::forward<Parameters>(args)...);