microsoft / OnnxRuntime-UnrealEngine

Apply a Style Transfer Neural Network in real time with Unreal Engine 5 leveraging ONNX Runtime.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when model load

kidach1 opened this issue · comments

Hi,

When I drag and drop a my .onnx model into the Models folder in the Content Browser with the NNI Plugin enabled, UE 5.0.3 crashes and I receive this warnings and error:

LoginId:566104db435199706d3e599d90248b6d
EpicAccountId:3615f45d01e442e98192e379821e35a2

Assertion failed: false [File:D:\build\++UE5\Sync\Engine\Plugins\Experimental\NNI\Source\Private\ThirdPartyHelperAndDLLLoader\Private\ORTExceptionHandler.cpp] [Line: 16] ONNXRuntime threw an exception with code 6, e.what(): "Exception during initialization: D:\build\++UE5\Sync\Engine\Plugins\Experimental\NNI\Source\ThirdParty\ORT\Private\Windows\core\providers\dml\DmlExecutionProvider\src\AbiCustomRegistry.cpp(507)\UnrealEditor-ONNXRuntime.dll!00007FFC9E6917DA: (caller: 00007FFC9E69D3D1) Exception(3) tid(7e14) 80070057 The parameter is incorrect. ".

UnrealEditor_ThirdPartyHelperAndDLLLoader!FORTExceptionHandler::ThrowPseudoException() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\NNI\Source\Private\ThirdPartyHelperAndDLLLoader\Private\ORTExceptionHandler.cpp:16]
UnrealEditor_NeuralNetworkInference!Ort::ThrowOnError() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\NNI\Source\ThirdParty\ORT\Internal\core\session\onnxruntime_cxx_inline.imp:17]
UnrealEditor_NeuralNetworkInference!Ort::Session::Session() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\NNI\Source\ThirdParty\ORT\Internal\core\session\onnxruntime_cxx_inline.imp:551]
UnrealEditor_NeuralNetworkInference!UNeuralNetwork::FImplBackEndUEAndORT::Load() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\NNI\Source\NeuralNetworkInference\Private\NeuralNetworkImplBackEndUEAndORT.cpp:349]
UnrealEditor_NeuralNetworkInference!UNeuralNetwork::Load() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\NNI\Source\NeuralNetworkInference\Private\NeuralNetwork.cpp:549]
UnrealEditor_NeuralNetworkInference!UNeuralNetwork::Load() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\NNI\Source\NeuralNetworkInference\Private\NeuralNetwork.cpp:99]
UnrealEditor_NeuralNetworkInferenceEditor!UNeuralNetworkFactory::FactoryCreateFile() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\NNI\Source\NeuralNetworkInferenceEditor\Private\NeuralNetworkFactory.cpp:46]
UnrealEditor_UnrealEd!UFactory::ImportObject() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Factories\Factory.cpp:205]
UnrealEditor_AssetTools!UAssetToolsImpl::ImportAssetsInternal() [D:\build\++UE5\Sync\Engine\Source\Developer\AssetTools\Private\AssetTools.cpp:2254]
UnrealEditor_AssetTools!UAssetToolsImpl::ImportAssets() [D:\build\++UE5\Sync\Engine\Source\Developer\AssetTools\Private\AssetTools.cpp:1277]
UnrealEditor_UnrealEd!FImportFilesByPath::Run() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Subsystems\ImportSubsystem.cpp:97]
UnrealEditor_UnrealEd!UImportSubsystem::HandleNextTick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Subsystems\ImportSubsystem.cpp:171]
UnrealEditor_UnrealEd!TBaseUObjectMethodDelegateInstance<0,UImportSubsystem,void __cdecl(void),FDefaultDelegateUserPolicy>::Execute() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:594]
UnrealEditor_Engine!FTimerUnifiedDelegate::Execute() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Public\TimerManager.h:51]
UnrealEditor_Engine!FTimerManager::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\TimerManager.cpp:925]
UnrealEditor_UnrealEd!UEditorEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1402]
UnrealEditor_UnrealEd!UUnrealEdEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:474]
UnrealEditor!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5215]
UnrealEditor!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:183]
UnrealEditor!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
UnrealEditor!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
UnrealEditor!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
UnrealEditor!__scrt_common_main_seh() [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

How could I resolve this?

I found similar issues on onnxruntime repo but I'm not sure if these apply to my case.
microsoft/onnxruntime#12677
microsoft/onnxruntime#12761