microsoft / microsoft/WindowsAppSDK-Samples

Samples/WindowsML/cpp/CppConsoleDesktop[.FrameworkDependent] are not able to load providers

Open
#533 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-winml
Dominant language
PowerShell
Stars
1k
Forks
335
Avg merge
5d 1h
Merged PRs (30d)
8

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Samples/WindowsML/cpp/CppConsoleDesktop and CppConsoleDesktop.FrameworkDependent samples, then inspect WindowsML::Shared::ExecutionProviderManager::InitializeProviders and the EnsureReadyAsync call using --download --ep_policy DEFAULT. Reproduce the 0x80073D3B failure in Debug or Release and determine what allows the execution provider to load successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, machine-learning, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.