We recently updated the engine for our project from 5.7 to 5.8. Both the engine and the game compile and run without any issue for most of the team, but two of our machines crash while starting the NNERuntimeORT module when loading the the editor.
I saw people have run into this crash in previous versions but the patch provided in [this [Content removed] doesn’t really apply anymore because the code has changed too much.
If we comment the call to CreateOrtEnvFromSettings in StartupModule, they are able to start the editor but this isn’t a proper fix.
Some threads suggest we should disable the NPU on the machines or update the driver to make it work, but there i no trace of it at all.
I would appreciate if you can help me fix this crash.
Version 5.8 uses a newer version of onnxruntime.dll. Based on the exception, there is likely a discrepancy between the compiled API and the loaded DLL. Can you review the property panel on the machines that crash? You are looking for 1.24.26.304. Version 5.7 shipped with 1.20. The DLL should be under Engine\Plugins\NNE\NNERuntimeORT\Binaries\ThirdParty\Onnxruntime\Win64. The DLL is loaded from the plugin’s own folder by full path so that is likely the problem.
In the case the right DLL is present, you would need to run the editor in a debugger and check the path of the loaded DLL in the modules panel.
That was it! They both had the dll from 5.7 instead of the new one. We had some version control issues so the file was probably overridden at some point after running setup.bat.
Copying the correct dll from another machine fixed the crash!