-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Error installing multiple packages in parallel using COM API #4587
Copy link
Copy link
Closed
Labels
Issue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.
Milestone
Description
Brief description of your issue
From Dev Home, when calling the COM API during installation from multiple threads running in parallel, often an exception occurs for one of the calls.
Dev Home logs
System.Runtime.InteropServices.COMException (0x8007139F)
at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr)
at ABI.Microsoft.Management.Deployment.ICatalogPackageMethods.get_DefaultInstallVersion(IObjectReference _obj)
at Microsoft.Management.Deployment.CatalogPackage.get_DefaultInstallVersion()
at DevHome.Services.WindowsPackageManager.Services.WinGetPackageInstaller.InstallPackageInternalAsync(CatalogPackage package, String version, Guid activityId)
AppInstaller logs
2024-06-26 10:00:53.540 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\SQLiteIndexSource.cpp(24)\WindowsPackageManager.dll!00007FFB8CE49D82: (caller: 00007FFB8CE7372E) Exception(2) tid(6288) 8007139F The group or resource is not in the correct state to perform the requested operation.
2024-06-26 10:00:53.541 [FAIL] WindowsPackageManager.dll!00007FFB8CF09106: ReturnHr(2) tid(6288) 8007139F The group or resource is not in the correct state to perform the requested operation.
Msg:[C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\SQLiteIndexSource.cpp(24)\WindowsPackageManager.dll!00007FFB8CE49D82: (caller: 00007FFB8CE7372E) Exception(2) tid(6288) 8007139F The group or resource is not in the correct state to perform the requested operation.
]
Steps to reproduce
From Dev Home, attempt to install:
- Notepad++.Notepad++
- Vim.Vim
Expected behavior
Ability to call the API from multiple threads
Actual behavior
At least one call will throw an exception (logs above)
Environment
Windows Package Manager (Preview) v1.9.1763-previewReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.