WindowsAppSDK-Samples
WindowsAppSDK-Samples copied to clipboard
Samples/WindowsML/cpp/CppConsoleDesktop[.FrameworkDependent] are not able to load providers
I installed WindowsAppSDK v1.8.1 from this page https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads
When I launch either CppConsoleDesktop or CppConsoleDesktop.FrameworkDependent with the arguments --download --ep_policy DEFAULT in either Debug or Release Mode, I have thiese errors in the debug logs
Exception thrown at 0x00007FF99FC566CA (KernelBase.dll) in CppConsoleDesktop.exe: WinRT originate error - 0x80073D3B : 'Deployment Add operation with target volume on Package Windows.Workload.ExecutionProvider.OpenVino.amd64 from: (Windows.Workload.ExecutionProvider.OpenVino.amd64) failed with error 0x80073D3B. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.'.
'CppConsoleDesktop.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Symbol loading disabled by Include/Exclude setting.
C:\__w\1\s\dev\PackageManager\API\M.W.M.D.PackageDeploymentManager.cpp(1989)\Microsoft.WindowsAppRuntime.dll!00007FF869C6DFEE: (caller: 00007FF869CC65DF) ReturnHr(1) tid(8ba4) 80073D3B The product is not applicable or cannot be found.
Msg:[ExtendedError:0x80073D3B PackageFamilyName:MicrosoftCorporationII.WinML.Intel.OpenVINO.EP.1.8_8wekyb3d8bbwe PackageUri:uup://Product/Windows.Workload.ExecutionProvider.OpenVino.amd64 : Deployment Add operation with target volume on Package Windows.Workload.ExecutionProvider.OpenVino.amd64 from: (Windows.Workload.ExecutionProvider.OpenVino.amd64) failed with error 0x80073D3B. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.] CallContext:[\EnsurePackageSetReadyAsync]
C:\__w\1\s\dev\PackageManager\API\M.W.M.D.PackageDeploymentManager.cpp(499)\Microsoft.WindowsAppRuntime.dll!00007FF869CC6646: (caller: 00007FF869BC78DF) LogHr(1) tid(8ba4) 80073D3B The product is not applicable or cannot be found.
Msg:[Error:0x00000000 (0x00000000) PackageFamilyName:MicrosoftCorporationII.WinML.Intel.OpenVINO.EP.1.8_8wekyb3d8bbwe PackageUri:uup://Product/Windows.Workload.ExecutionProvider.OpenVino.amd64 : ] CallContext:[\EnsurePackageSetReadyAsync]
Exception thrown at 0x00007FF99FC566CA (KernelBase.dll) in CppConsoleDesktop.exe: WinRT originate error - 0x80073D3B : 'The product is not applicable or cannot be found.'.
C:\__w\1\s\src\Microsoft.Windows.AI.MachineLearning\PackageDeploymentHelper.cpp(174)\Microsoft.Windows.AI.MachineLearning.dll!00007FF924FCAFF3: LogHr(1) tid(81a8) 80073D3B The product is not applicable or cannot be found.
Exception thrown at 0x00007FF99FC566CA in CppConsoleDesktop.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x00000090458FF800.
the call stack of the main thread is :
> [Inline Frame] CppConsoleDesktop.exe!winrt::impl::wait_for_completed(const winrt::Windows::Foundation::IAsyncOperationWithProgress<winrt::Microsoft::Windows::AI::MachineLearning::ExecutionProviderReadyResult,double> &) Line 3415 C++
CppConsoleDesktop.exe!winrt::impl::wait_get<winrt::Windows::Foundation::IAsyncOperationWithProgress<winrt::Microsoft::Windows::AI::MachineLearning::ExecutionProviderReadyResult,double>>(const winrt::Windows::Foundation::IAsyncOperationWithProgress<winrt::Microsoft::Windows::AI::MachineLearning::ExecutionProviderReadyResult,double> & async) Line 3444 C++
[Inline Frame] CppConsoleDesktop.exe!winrt::impl::consume_Windows_Foundation_IAsyncOperationWithProgress<winrt::Windows::Foundation::IAsyncOperationWithProgress<winrt::Microsoft::Windows::AI::MachineLearning::ExecutionProviderReadyResult,double>,winrt::Microsoft::Windows::AI::MachineLearning::ExecutionProviderReadyResult,double>::get() Line 3602 C++
CppConsoleDesktop.exe!WindowsML::Shared::ExecutionProviderManager::InitializeProviders(bool allowDownload) Line 41 C++
CppConsoleDesktop.exe!RunInferenceAsync$_ResumeCoro$1() Line 24 C++
[Inline Frame] CppConsoleDesktop.exe!RunInferenceAsync(const WindowsML::Shared::CommandLineOptions &) Line 120 C++
CppConsoleDesktop.exe!wmain(int argc, wchar_t * * argv) Line 120 C++
[Inline Frame] CppConsoleDesktop.exe!invoke_main() Line 90 C++
CppConsoleDesktop.exe!__scrt_common_main_seh() Line 288 C++
basically the provider.EnsureReadyAsync() is failing.
Acknowledged. To consolidate the troubleshooting, I propose using the related issue filed in the WindowsAppSDK repository and we update this one with any findings.